SQLite db can't be opened
See original GitHub issueDescribe the bug The below error is displayed in the web interface:
Server error Error during initializing SQL falling back temporally to memory DB Details: “Error: SQLITE_CANTOPEN: unable to open database file”
If no sqlite.db exists in the location set in the docker run command, a folder is created in that location and the error above occurs. If an sqlite.db is manually created using sqlite3 in the location to be mounted, or touch sqlite.db
is used, the following error occurs instead:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:424: container init caused \"rootfs_linux.go:58: mounting \\\"/home/pi/pigallery2/db/sqlite.db\\\" to rootfs \\\"/var/lib/docker/overlay2/9409c7d340036daa88b86c8e38c84777542aa6cf4509f0d8d8914ae3ceff8ec8/merged\\\" at \\\"/var/lib/docker/overlay2/9409c7d340036daa88b86c8e38c84777542aa6cf4509f0d8d8914ae3ceff8ec8/merged/pigallery2-release/sqlite.db\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.
I may be doing this entirely incorrectly - I don’t know what other kind of file or directory should be provided instead of what I have tried already.
Enviroment (please complete the following information):
- OS: Raspberry Pi Docker container, MacOS browser
- Browser: Firefox
Used app version: docker image built from - /master/docker/arm32v7/debian/stretch/Dockerfile
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top GitHub Comments
I don’t have the same issue with the config JSON nor the images folder. The config JSON is correctly filled and saves preferences. I haven’t tried running it without setting the sqlite db. Thanks for the suggestions - I don’t have time now, but I’ll get back tomorrow or the day after with my results.
Thanks for the rapid responses!
closing this due to inactivity