cyclestreets / nominatim-install

Bash script to install Nominatim
67 stars 31 forks source link

psql: FATAL: database "nominatim" does not exist #12

Open hichamat opened 10 years ago

hichamat commented 10 years ago

Hi and thank you for your script.

I get this error when trying to install Nominatim for the first time in Ubuntu 12 with 4GO RAM and 320 GB of disk space. I want just use it for one or two countries.

The installation gives me this error:

Allocating memory for sparse node cache Out of memory for sparse node cache, reduce --cache size Error occurred, cleaning up ERROR: Error executing external command: /home/nominatim/Nominatim/osm2pgsql/osm2pgsql -lsc -O gazetteer --hstore -C 3207 -P 5432 -d nominatim /home/nominatim/Nominatim/data/europe/andorra-latest.osm.pbf

So I modified : .config.sh > [osm2pgsqlcache="--osm2pgsql-cache 2000"] for 2000MB only.

After reexecuting run.sh I get this error:

Makefile:10: warning: overriding commands for target install' /usr/lib/postgresql/9.1/lib/pgxs/src/makefiles/pgxs.mk:116: warning: ignoring old commands for targetinstall' DROP DATABASE psql: FATAL: database "nominatim" does not exist

The content of mu .config.sh file is the following: http://codepad.org/HVH8Ec3e

Please advice.

nisaacson commented 9 years ago

The warning of not having a database nominatim is normal and can be safely ignored.

The error that is relevant here is an out of memory error

Out of memory for sparse node cache, reduce --cache size

Did the rest of the installation complete correctly?