[2.3.3] Docker: Can't install with postgres database folder pointing to a share #5370
Replies: 4 comments 5 replies
-
That doesn't have to do with folder or permissions. It's a networking error. Either the containers are not on the same network, DNS resolution isn't working, or perhaps the database isn't named db. |
Beta Was this translation helpful? Give feedback.
-
I have the same Problem, how do you fixed your problem? |
Beta Was this translation helpful? Give feedback.
-
I'm having the same bad luck. Looks like postgress (db-1) is not built to utilize the uid/gid mapping as the webserver and it locks permissions to only allow the postgres user (uid/gid 999) to read/write, etc. The solution for me is to create a separate mount for the db that is not in the same folder/share as the other mounted shares. |
Beta Was this translation helpful? Give feedback.
-
I bit my teeth out on this as well. My takeaway was that this is basically postgres signaling to me that it doesn't like to run on CIFS/SMB/NFS shares due to the risk of data loss. I read up a bit on soft vs. hard mounts (e.g. https://kb.netapp.com/on-prem/ontap/da/NAS/NAS-KBs/What_are_the_differences_between_hard_mount_and_soft_mount), and then decided to have all folders locally and backup them to the network share separately. |
Beta Was this translation helpful? Give feedback.
-
I'm still playing with paperless-ngx. I had a test installation (docker) with default local path (except the consume folder, which pointed to a SMB share). Everything was fine.
For better backup and file access reasons, I wanted now to try to reinstall everything from scratch, but with all other path (media, data and database) also pointing to a SMB share.
It seems, media and data works, but the database path has an issue.
Here are my mount points:
/mnt/paperless/data
/mnt/paperless/media
/mnt/paperless/database
/mnt/paperless_consume (this is a share on another NAS)
The docker user has full rights to all these folders.
When installing with the docker installation script, I get the following output (and error at the end):
(When leaving the database folder as default, it works. So it's only affected to the db path.)
Beta Was this translation helpful? Give feedback.
All reactions