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

Import osm-file nominatim error - Permission denied

0

Hi,

I hope I have installed nominatim successfully. But when I try to import the osm.pbf data, it gives the following error

nominatim@byk-ubuntu:~/Nominatim/build$ ./utils/setup.php --osm-file /home/ybalasubramanian/Documents/germany-latest.osm.pbf --all 2>&1 | tee setup.log
WARNING: resetting threads to 1
Create DB
Setup DB
Postgres version found: 9.5
CREATE EXTENSION
CREATE EXTENSION
Postgis version found: 2.2
SET
SET
SET
SET
SET
SET
SET
SET
SET
CREATE TABLE
COPY 250
CREATE INDEX
SET
SET
SET
SET
SET
SET
SET
SET
SET
CREATE TABLE
COPY 229
CREATE INDEX
CREATE INDEX
SET
SET
SET
SET
SET
SET
SET
SET
SET
CREATE TABLE
COPY 25477
CREATE INDEX
SET
SET
SET
SET
SET
SET
SET
SET
SET
CREATE TABLE
WARNING: external UK postcode table not found.
SET
SET
SET
SET
SET
SET
SET
SET
SET
CREATE TABLE
COPY 32387
CREATE TABLE
CREATE TYPE
Import
sh: 1: /srv/nominatim/Nominatim/build/osm2pgsql: Permission denied
ERROR: Error executing external command: /srv/nominatim/Nominatim/build/osm2pgsql -lsc -O gazetteer --hstore --number-processes 1 -C 2676 -P 5432 -d nominatim /home/ybalasubramanian/Documents/germany-latest.osm.pbf
Error executing external command: /srv/nominatim/Nominatim/build/osm2pgsql -lsc -O gazetteer --hstore --number-processes 1 -C 2676 -P 5432 -d nominatim /home/ybalasubramanian/Documents/germany-latest.osm.pbf

I am running as the nominatim user as per the documentation. All the files inside the above folder has rights with nominatim user. I have no idea why the permission is denied

asked 04 Feb '17, 10:29

3yK's gravatar image

3yK
11448
accept rate: 0%

edited 06 Feb '17, 13:37

1
(06 Feb '17, 20:42) mtmail

One Answer:

0

hi, i had the same problem on ubuntu 18.04 try fist create db nominatim via ./utils/setup.php ended with error

then "append" created db with data like this

/srv/nominatim/Nominatim/build/osm2pgsql/osm2pgsql -S /srv/nominatim/Nominatim/settings/import-full.style -lsc -O gazetteer --hstore --number-processes 1 -C 2676 -P 5432 -d nominatim /home/ybalasubramanian/Documents/germany-latest.osm.pbf

answered 17 Jul '19, 14:20

jdvjdv82's gravatar image

jdvjdv82
111
accept rate: 0%

Source code available on GitHub .