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

nominatim setup problem

0

Hi everyone.

I tried to install nominatim using ./utils/setup.php --osm-file <your planet="" file=""> --all I changed CONST pathes to(where all except osmosis are located)

 @define('CONST_Postgresql_Version', '8.4');
    @define('CONST_Path_Postgresql_Contrib', '/usr/share/postgresql/'.CONST_Postgresql_Version.'/contr$
    @define('CONST_Path_Postgresql_Postgis', CONST_Path_Postgresql_Contrib.'');
    @define('CONST_Osm2pgsql_Binary','/bin/osm2pgsql/osm2pgsql');
    @define('CONST_Osmosis_Binary', CONST_BasePath.'/osmosis-0.38/bin/osmosis');

And got strange answer from nominatim

.........
SET
CREATE TABLE
SET
SET
SET
SET
SET
SET
SET
SET
CREATE TABLE
ALTER TABLE
Import
Using projection SRS 4326 (Latlong)
NOTICE:  table "place" does not exist, skipping
NOTICE:  type "keyvalue" does not exist, skipping
NOTICE:  type "wordscore" does not exist, skipping
NOTICE:  type "stringlanguagetype" does not exist, skipping
NOTICE:  type "keyvaluetype" does not exist, skipping
NOTICE:  function get_connected_ways(pg_catalog.int4[]) does not exist, skipping
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Out of memory for dense node cache, reduce --cache size
Error occurred, cleaning up
osm2pgsql SVN version 0.80.0 (32bit id space)

ERROR: No Data

Also for planet_osm db I used to have 900913 projection. How can I manage with this problem?

asked 11 Apr '12, 14:02

zzzzteph's gravatar image

zzzzteph
30557
accept rate: 0%


One Answer:

1

That error has two possible causes:

  1. You are running out of physical memory. Supply more swap space. When importing the planet, RAM + swap should amount to at least 30GB. If you are importing something smaller, you might try to reduce osm2pgsql's cache. In the most recent version of Nominatim, you can add the --osm2pgsql-cache parameter when calling setup.php. The default is 15000 (MB), try something smaller.
  2. You have compiled osm2pgsql in 32-bit mode and now you are running out of virtual memory. Check the output of: file osm2pgsql. If it says ELF 32-bit, you need to recompile osm2pgsql.

answered 12 Apr '12, 07:43

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

Source code available on GitHub .