Closed nitobuendia closed 1 year ago
Sounds like this is probably one of the Known Issues, my bad:
Some mounted filesystems including NFS, CIFS and AFP do not support file locks and database access will fail on them.
To fix, use the parameter –db-path to specify a location for your DB on the local disk. This will perform better anyway.
I will experiment and reopen if that's not the case.
👍
@nitobuendia can you please show me your whole "docker run" command you are using now? Because I have same error.
Thank you very much.
docker-compose.yaml
services:
gphotos:
image: ghcr.io/gilesknap/gphotos-sync:3.1.0
container_name: gphotos
restart: "no"
stdin_open: true
tty: true
command: >-
/storage
--progress
--db-path /db
--albums-path /storage/albums
--use-hardlinks
--omit-album-date
--album-date-by-first-photo
--photos-path /storage/photos
--start-date $START_DATE
environment:
- TZ=Asia/Singapore
ports:
- 'XX80:8080'
volumes:
- ./config:/config
- ./db:/db
- ./photos:/storage
Run with:
START_DATE=$(date +"%F" --date="1 month ago") docker-compose up
Issue
When trying to run gphotos-sync, it stops because the sqllite database is locked.
Running
I normally use docker-compose up, but I was experimenting with a few links.
Logs
Troubleshooting
I think this happened because I tried running the container a couple of times by accident or perhaps stopped one unexpectedly, but after that I was unable to solve the lock.
What I've tried:
docker run
).:3.04
tag instead of:3.1.0
.gphotos.lock
,gphotos.sqlite
,gphotos.sqlite-journal
,gphotos.trace
./storage
is located).--db-path /storage/new
where /storage/new is an empty folder/mnt/nas/Google/Photos/new
--progress --use-hardlinks --start-date ${start_date}
- e.g.--progress
only, or--index-only
.All lead to the same persistent error.
This definitely feels like a user error, but I cannot find a good fix on Stackoverflow or alike either.