matze / matze/wastebin

Error: sqlite error: unable to open database file: /data/state.db

Open
#195 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
860
Forks
63
Avg merge
10h 47m
Merged PRs (30d)
1

Description

Unable to start via docker compose when using a docker named volume. Assume its related to UID 10001 not being set but this is a docker named volume, not a bind mount.

wastebin:
    container_name: wastebin
    image: quxfoo/wastebin:latest
    volumes:
      - wastebin_data:/data
    environment:
      - WASTEBIN_DATABASE_PATH=/data/state.db
      - WASTEBIN_BASE_URL=https://wastebin.xxx.dev
      - WASTEBIN_PASSWORD_SALT=xxx
      - WASTEBIN_SIGNING_KEY=xxx
    networks:
       - docker
    ports:
      - 8088:8088
    restart: unless-stopped

volumes:
  wastebin_data:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided Docker Compose configuration with the wastebin_data named volume and WASTEBIN_DATABASE_PATH=/data/state.db, then inspect the container's /data ownership and startup output. Done means the container starts successfully and can create or open /data/state.db using the named volume.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, rust, sqlite
Domain
database, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.