Synology-Docker Calibre-web cannot write to /books directory

Hi everyone,
For some reason, the calibre-web container doesn’t have permissions or doesn’t write the .db file on the /books directory.
I do setup an environment variable PUID =1000 & PGID = 1000 no luck, I checked my own IDs
uid=1024(admin) gid=100(users) groups=100(users),25(smmsp),101(administrators)
started a new container with PUID=1024 and PGID=101 no luck.

am I missing something?
Thanks for your help
Chris

Log

Blockquote
|date|stream|content|
|—|---|—|
|2020-03-25 20:39:22|stdout|[services.d] done.|
|2020-03-25 20:39:22|stdout|[services.d] starting services|
|2020-03-25 20:39:22|stdout|[cont-init.d] done.|
|2020-03-25 20:39:22|stdout|[cont-init.d] 99-custom-scripts: exited 0.|
|2020-03-25 20:39:22|stdout|[custom-init] no custom files found exiting…|
|2020-03-25 20:39:22|stdout|[cont-init.d] 99-custom-scripts: executing… |
|2020-03-25 20:39:22|stdout|[cont-init.d] 30-config: exited 0.|
|2020-03-25 20:39:09|stdout|[cont-init.d] 30-config: executing… |
|2020-03-25 20:39:09|stdout|[cont-init.d] 10-adduser: exited 0.|
|2020-03-25 20:39:09|stdout||
|2020-03-25 20:39:09|stdout|-------------------------------------|
|2020-03-25 20:39:09|stdout|User gid: 1000|
|2020-03-25 20:39:09|stdout|User uid: 1000|
|2020-03-25 20:39:09|stdout||
|2020-03-25 20:39:09|stdout|-------------------------------------|
|2020-03-25 20:39:09|stdout|GID/UID|
|2020-03-25 20:39:09|stdout|-------------------------------------|
|2020-03-25 20:39:09|stdout|https://www.linuxserver.io/donate/|
|2020-03-25 20:39:09|stdout|We gratefully accept donations at:|
|2020-03-25 20:39:09|stdout|Brought to you by linuxserver.io|
|2020-03-25 20:39:09|stdout||
|2020-03-25 20:39:09|stdout||
|2020-03-25 20:39:09|stdout| || |/ || _/|
|2020-03-25 20:39:09|stdout| | | __ \ | | | () ||
|2020-03-25 20:39:09|stdout| | | / __| | | / \ |
|2020-03-25 20:39:09|stdout| | | ___ _ |
|2020-03-25 20:39:09|stdout| _ ()|
|2020-03-25 20:39:09|stdout|-------------------------------------|
|2020-03-25 20:39:09|stdout||
|2020-03-25 20:39:09|stdout|usermod: no changes|
|2020-03-25 20:39:09|stdout|[cont-init.d] 10-adduser: executing… |
|2020-03-25 20:39:09|stdout|[cont-init.d] 01-envfile: exited 0.|
|2020-03-25 20:39:09|stdout|[cont-init.d] 01-envfile: executing… |
|2020-03-25 20:39:09|stdout|[cont-init.d] executing container initialization scripts…|
|2020-03-25 20:39:09|stdout|[fix-attrs.d] done.|
|2020-03-25 20:39:09|stdout|[fix-attrs.d] applying ownership & permissions fixes…|
|2020-03-25 20:39:09|stdout|[s6-init] ensuring user provided files have correct perms…exited 0.|
|2020-03-25 20:39:08|stdout|[s6-init] making user provided files available at /var/run/s6/etc…exited 0.|
|2020-03-24 15:48:35|stdout|[s6-finish] sending all processes the KILL signal and exiting.|
|2020-03-24 15:48:32|stdout|[s6-finish] sending all processes the TERM signal.|
|2020-03-24 15:48:30|stdout|[s6-finish] waiting for services.|
|2020-03-24 15:48:30|stdout|[cont-finish.d] done.|
|2020-03-24 15:48:30|stdout|[cont-finish.d] executing container finish scripts…|
|2020-03-24 15:46:58|stdout|[services.d] done.|
|2020-03-24 15:46:58|stdout|[services.d] starting services|
|2020-03-24 15:46:58|stdout|[cont-init.d] done.|
|2020-03-24 15:46:58|stdout|[cont-init.d] 99-custom-scripts: exited 0.|
|2020-03-24 15:46:58|stdout|[custom-init] no custom files found exiting…|
|2020-03-24 15:46:58|stdout|[cont-init.d] 99-custom-scripts: executing… |
|2020-03-24 15:46:58|stdout|[cont-init.d] 30-config: exited 0.|
|2020-03-24 15:46:58|stdout|[cont-init.d] 30-config: executing… |
|2020-03-24 15:46:58|stdout|[cont-init.d] 10-adduser: exited 0.|
|2020-03-24 15:46:58|stdout||
|2020-03-24 15:46:58|stdout|-------------------------------------|
|2020-03-24 15:46:58|stdout|User gid: 1000|
|2020-03-24 15:46:58|stdout|User uid: 1000|
|2020-03-24 15:46:58|stdout||
|2020-03-24 15:46:58|stdout|-------------------------------------|
|2020-03-24 15:46:58|stdout|GID/UID|
|2020-03-24 15:46:58|stdout|-------------------------------------|
|2020-03-24 15:46:58|stdout|https://www.linuxserver.io/donate/|
|2020-03-24 15:46:58|stdout|We gratefully accept donations at:|
|2020-03-24 15:46:58|stdout|Brought to you by linuxserver.io|
|2020-03-24 15:46:58|stdout||
|2020-03-24 15:46:58|stdout||
|2020-03-24 15:46:58|stdout| || |
/ || _/|
|2020-03-24 15:46:58|stdout| | | __ \ | | | () ||
|2020-03-24 15:46:58|stdout| | | / __| | | / \ |
|2020-03-24 15:46:58|stdout| | | ___ _ |
|2020-03-24 15:46:58|stdout| _ ()|
|2020-03-24 15:46:58|stdout|-------------------------------------|
|2020-03-24 15:46:58|stdout||
|2020-03-24 15:46:57|stdout|[cont-init.d] 10-adduser: executing… |
|2020-03-24 15:46:57|stdout|[cont-init.d] 01-envfile: exited 0.|
|2020-03-24 15:46:57|stdout|[cont-init.d] 01-envfile: executing… |
|2020-03-24 15:46:57|stdout|[cont-init.d] executing container initialization scripts…|
|2020-03-24 15:46:57|stdout|[fix-attrs.d] done.|
|2020-03-24 15:46:57|stdout|[fix-attrs.d] applying ownership & permissions fixes…|
|2020-03-24 15:46:57|stdout|[s6-init] ensuring user provided files have correct perms…exited 0.|
|2020-03-24 15:46:57|stdout|[s6-init] making user provided files available at /var/run/s6/etc…exited 0.|
|2020-03-24 15:46:17|stdout|[s6-finish] sending all processes the KILL signal and exiting.|
|2020-03-24 15:46:14|stdout|[s6-finish] sending all processes the TERM signal.|
|2020-03-24 15:46:12|stdout|[s6-finish] waiting for services.|
|2020-03-24 15:46:12|stdout|[cont-finish.d] done.|
|2020-03-24 15:46:12|stdout|[cont-finish.d] executing container finish scripts…|
|2020-03-24 15:42:58|stdout||
|2020-03-24 15:41:49|stdout|[services.d] done.|
|2020-03-24 15:41:49|stdout|[services.d] starting services|
|2020-03-24 15:41:49|stdout|[cont-init.d] done.|
|2020-03-24 15:41:49|stdout|[cont-init.d] 99-custom-scripts: exited 0.|
|2020-03-24 15:41:49|stdout|[custom-init] no custom files found exiting…|
|2020-03-24 15:41:49|stdout|[cont-init.d] 99-custom-scripts: executing… |
|2020-03-24 15:41:49|stdout|[cont-init.d] 30-config: exited 0.|
|2020-03-24 15:41:46|stdout|cp: cannot stat ‘/app/calibre-web/gdrive.db’: No such file or directory|
|2020-03-24 15:41:45|stdout|[cont-init.d] 30-config: executing… |
|2020-03-24 15:41:45|stdout|[cont-init.d] 10-adduser: exited 0.|
|2020-03-24 15:41:45|stdout||
|2020-03-24 15:41:45|stdout|-------------------------------------|
|2020-03-24 15:41:45|stdout|User gid: 101|
|2020-03-24 15:41:45|stdout|User uid: 1024|
|2020-03-24 15:41:45|stdout||
|2020-03-24 15:41:45|stdout|-------------------------------------|
|2020-03-24 15:41:45|stdout|GID/UID|
|2020-03-24 15:41:45|stdout|-------------------------------------|
|2020-03-24 15:41:45|stdout|https://www.linuxserver.io/donate/|
|2020-03-24 15:41:45|stdout|We gratefully accept donations at:|
|2020-03-24 15:41:45|stdout|Brought to you by linuxserver.io|
|2020-03-24 15:41:45|stdout||
|2020-03-24 15:41:45|stdout||
|2020-03-24 15:41:45|stdout| || |
/ || _/|
|2020-03-24 15:41:45|stdout| | | __ \ | | | () ||
|2020-03-24 15:41:45|stdout| | | / __| | | / \ |
|2020-03-24 15:41:45|stdout| | | ___ _ __|
|2020-03-24 15:41:45|stdout| _ ()|
|2020-03-24 15:41:45|stdout|-------------------------------------|
|2020-03-24 15:41:45|stdout||
|2020-03-24 15:41:44|stdout|[cont-init.d] 10-adduser: executing… |
|2020-03-24 15:41:44|stdout|[cont-init.d] 01-envfile: exited 0.|
|2020-03-24 15:41:44|stdout|[cont-init.d] 01-envfile: executing… |
|2020-03-24 15:41:44|stdout|[cont-init.d] executing container initialization scripts…|
|2020-03-24 15:41:44|stdout|[fix-attrs.d] done.|
|2020-03-24 15:41:44|stdout|[fix-attrs.d] applying ownership & permissions fixes…|
|2020-03-24 15:41:44|stdout|[s6-init] ensuring user provided files have correct perms…exited 0.|
|2020-03-24 15:41:44|stdout|[s6-init] making user provided files available at /var/run/s6/etc…exited 0.|

is /books owned by whatever user and group are uid/gid 1000?

/books is owned by admin/administrators which is 1024/101, still doesn’t work :frowning:

Sorry i was a little confused because the first two times, you use a uid and gid of 1000; your 3rd set uses a gid of 101 and uid of 1024.

is the calibre database on an smb or nfs mount?

That’s maybe the issue, I have no Calibre database since the container doesn’t have permissions to build one on /books I guess. Or, do I need the Calibre instance to be running along Calibre web?

you need a database already created for calibre-web; once you have one, you dont need calibre anymore, afaik. (could be wrong there though)

calibre-web interacts with an existing database