Error: sqlite error: unable to open database file: /data/state.db
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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