This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Nominatim installation - Permission denied

0

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.

asked 16 May '17, 10:34

khamooshi's gravatar image

khamooshi
146111219
accept rate: 50%

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.

(16 May '17, 12:33) scai ♦

One Answer:

1

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

answered 16 May '17, 12:46

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .