I get the following error when I try to import pdf file: ERROR: could not access file "/srv/nominatim/Nominatim/build/module/nominatim.so": Permission denied ERROR: pgsql returned with error code (3) pgsql returned with error code (3) I have already checked other threads regarding this issue and non of them could help me to fix the problem. I don't use root for installation and have given all permissions to postgres user. I can even edit the file with postgres user. Postgres has access to all parent directories as well. I use Fedora 24. |
Check if you have SELinux on, and if yes, switch it off before retrying. If that fixes the problem, you can work on defining a more fine-grained permission for SELinux to allow PostgreSQL to load the .so file. See https://docs.fedoraproject.org/en-US/Fedora/12/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-Enabling_and_Disabling_SELinux.html |
There has been a similar problem here: https://help.openstreetmap.org/questions/13825/permission-issue-of-so-file-in-nominatim-osm-postgres-db Please re-check that the file and each directory in the path has read and execute permissions for the user or group your pgsql process is running with. If in doubt login as root, switch to the psql user and then try to access the file yourself.