Replies: 1 comment
-
The process stops when https://osm2pgsql.org/ imports data into Postgresql. Usually it's either running out of RAM, or the database server connection stops (e.g. network issue). Giving Postgresql more memory can have an adverse affect The most straight-forward approach, when using virtual cloud servers, is trying a machine setup with more RAM and reduce the RAM after the import is finished. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello All,
I was trying to import Europe map into Nominatim docker using a VM from Google (e2-standard-16) it would be 16 CPUs and 64 G RAM, despite I have set a bunch of resources container is exited after a while with not clear error message.
`+ trap stopServices TERM
Skipping optional Wikipedia importance import
Skipping optional GB postcode import
Skipping optional US postcode import
Reading OSM extract from /nominatim/data/europe-latest.osm.pbf
ALTER ROLE
ALTER ROLE
DROP DATABASE
2022-02-08 11:07:42: Using project directory: /nominatim
2022-02-08 11:07:43: Creating database
2022-02-08 11:07:44: Setting up country tables
2022-02-08 11:07:46: Importing OSM data file
2022-02-08 11:07:46 osm2pgsql version 1.5.1
2022-02-08 11:07:46 Database version: 12.9 (Ubuntu 12.9-0ubuntu0.20.04.1)
2022-02-08 11:07:46 PostGIS version: 3.0
2022-02-08 11:07:46 Parsing gazetteer style file '/usr/local/etc/nominatim/import-full.style'.
NOTICE: table "place" does not exist, skipping`
I have tried to change memory for Postgres and either set some fix configs for container but I have always same outcome. Im lacking out ideas, since I already created a local volume and bind it with the docker, either way Im trying to use flatnode and PBF is download on machine too.
docker run -it --rm -e PBF_PATH=/nominatim/data/europe-latest.osm.pbf -e IMPORT_WIKIPEDIA=false -e NOMINATIM_PASSWORD=geotab_nominatim -v /startup/nominatim-data/postgres:/var/lib/postgresql/12/main/ -v /startup/nominatim-data/flatnode:/nominatim/flatnode -e NOMINATIM_FLATNODE_FILE=/nominatim/flatnode/flatnode.file -v /startup/nominatim-data/osm-maps:/nominatim/data -e POSTGRES_MAINTAINENCE_WORK_MEM=10GB -e POSTGRES_WORK_MEM=50MB -e POSTGRES_EFFECTIVE_CACHE_SIZE=24GB -e POSTGRES_SHARED_BUFFERS=50GB --shm-size=60G -p 8080:8080 --name nominatim --oom-kill-disable mediagis/nominatim:4.0
Anyone can help?
Beta Was this translation helpful? Give feedback.
All reactions