NOTICE: is being shutdown on 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/": 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

accept rate: 50%

There has been a similar problem here: 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

permanent link

answered 16 May '17, 12:46

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 16 May '17, 10:34

question was seen: 3,057 times

last updated: 16 May '17, 12:46

NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum