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

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

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
permanent link

answered 17 Jul '19, 14:20

jdvjdv82's gravatar image

jdvjdv82
111
accept rate: 0%

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
×263

question asked: 04 Feb '17, 10:29

question was seen: 3,019 times

last updated: 17 Jul '19, 14:20

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