Nominatim Docker 4.0 error while importing country file to database #338
Unanswered
cormanttech
asked this question in
Q&A
Replies: 3 comments 3 replies
-
It looks like osm2pgsql is running out of memory. How much do you have? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Sir, This is the total memory, the available is only 1GB We just need the Philippines map, is that enough for a 475 MB of .osm.pbf data? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think you need at least 2GB of RAM. With 1GB of RAM I wasn't able to import Monaco and that country is less than 1 megabyte of *.pbf data. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I am getting this error when the automatic import process is on importing the country file to the database,
nominatim@ip-172-31-1-226:~/nominatim-docker/4.0$ sudo docker run -it --rm \
Skipping optional Wikipedia importance import
Skipping optional GB postcode import
Skipping optional US postcode import
Skipping optional Tiger addresses import
Downloading OSM extract from https://download.geofabrik.de/asia/philippines-latest.osm.pbf
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 475M 100 475M 0 0 8373k 0 0:00:58 0:00:58 --:--:-- 8611k
ALTER ROLE
ALTER ROLE
NOTICE: database "nominatim" does not exist, skipping
DROP DATABASE
2022-07-04 01:56:05: Using project directory: /nominatim
2022-07-04 01:56:05: Creating database
2022-07-04 01:56:07: Setting up country tables
2022-07-04 01:56:09: Importing OSM data file
2022-07-04 01:56:09 osm2pgsql version 1.5.1
2022-07-04 01:56:09 Database version: 12.11 (Ubuntu 12.11-0ubuntu0.20.04.1)
2022-07-04 01:56:09 PostGIS version: 3.0
2022-07-04 01:56:09 Parsing gazetteer style file '/usr/local/etc/nominatim/import-full.style'.
NOTICE: table "place" does not exist, skipping
Processing: Node(10360k 647.5k/s) Way(0k 0.00k/s) Relation(0 0.0/s)Traceback (most recent call last):
File "/usr/local/bin/nominatim", line 11, in
exit(cli.nominatim(module_dir='/usr/local/lib/nominatim/module',
File "/usr/local/lib/nominatim/lib-python/nominatim/cli.py", line 235, in nominatim
return parser.run(**kwargs)
File "/usr/local/lib/nominatim/lib-python/nominatim/cli.py", line 96, in run
return args.command.run(args)
File "/usr/local/lib/nominatim/lib-python/nominatim/clicmd/setup.py", line 77, in run
database_import.import_osm_data(files,
File "/usr/local/lib/nominatim/lib-python/nominatim/tools/database_import.py", line 98, in import_osm_data
run_osm2pgsql(options)
File "/usr/local/lib/nominatim/lib-python/nominatim/tools/exec_utils.py", line 139, in run_osm2pgsql
subprocess.run(cmd, cwd=options.get('cwd', '.'),
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/local/lib/nominatim/osm2pgsql', '--hstore', '--latlon', '--slim', '--with-forward-dependencies', 'false', '--log-progress', 'true', '--number-processes', '1', '--cache', '730', '--output', 'gazetteer', '--style', '/usr/local/etc/nominatim/import-full.style', '--create', '/nominatim/data.osm.pbf']' died with <Signals.SIGKILL: 9>.
nominatim@ip-172-31-1-226:~/nominatim-docker/4.0$
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions