NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 ♦

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

permanent link

answered 16 May '17, 12:46

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×15
×2

question asked: 16 May '17, 10:34

question was seen: 3,385 times

last updated: 16 May '17, 12:46

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum