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

Hello,

When I try to install new osm file in my nominatim server.

With the setup.php (10666 = 2/3 of 16G RAM) :

cd /srv/nominatim/build/ && ./utils/setup.php --osm-file /srv/nominatim/Nominatim-3.4.1/data/france-latest.osm --all --osm2pgsql-cache 10666

I have some errors :

Done 9254119 in 55677 @ 166.210800 per second - Rank 30 ETA (seconds): 8.447104
  Done 9254226 in 55679 @ 166.206757 per second - Rank 30 ETA (seconds): 7.803534
  Done 9254333 in 55680 @ 166.205688 per second - Rank 30 ETA (seconds): 7.159803
  Done 9254458 in 55681 @ 166.204956 per second - Rank 30 ETA (seconds): 6.407751
  Done 9254596 in 55682 @ 166.204453 per second - Rank 30 ETA (seconds): 5.577468
  Done 9254744 in 55683 @ 166.204117 per second - Rank 30 ETA (seconds): 4.687008
  Done 9254913 in 55684 @ 166.204163 per second - Rank 30 ETA (seconds): 3.670185
  Done 9255092 in 55685 @ 166.204407 per second - Rank 30 ETA (seconds): 2.593192
  Done 9255256 in 55686 @ 166.204361 per second - Rank 30 ETA (seconds): 1.606456
  Done 9255349 in 55688 @ 166.200058 per second - Rank 30 ETA (seconds): 1.046931
  Done 9255508 in 55689 @ 166.199936 per second - Rank 30 ETA (seconds): 0.090253
  Done 9255523 in 55689 @ 166.200195 per second - ETA (seconds): 0.000000
  Done 9255523 in 55689 @ 166.200195 per second - FINISHED

2020-09-10 09:07:48 == Index postcodes
2020-09-10 09:09:32 == Create Search indices
ERROR:  out of memory
DETAIL:  Failed on request of size 10737418200.
ERROR: pgsql returned with error code (3)
string(34) "pgsql returned with error code (3)"

I've change many times the --osm2pgsql-cache parameters with some values : Same errors :(

My configuration :

~$ df -h
Filesystem         Size  Used Avail Use% Mounted on
/dev/ploop41196p1  296G  167G  117G  59% /

:~$ free -h
              total        used        free      shared  buff/cache   available
Mem:            16G         56M         14G        1.2G        1.5G         14G
Swap:          256M        256M

Have you some ideas please ? Thanks

F.

asked 10 Sep '20, 12:42

__fabrice's gravatar image

__fabrice
11113
accept rate: 0%

edited 10 Sep '20, 12:44


osm2pgsql imports the *.pbf file into the database. Then follows the indexing "Done 9254458 in 55681 @ 166.204956 per second". Changing "osm2pgsql-cache" has no effect on the indexing.

It looks like postgresql ran out of RAM when creating an index. The postgresql log file might have more information. You can repeat the step: "./utils/setup.php --index --create-search-indices --create-country-names"

permanent link

answered 10 Sep '20, 16:01

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

I restart the setup.php command, and I'll run : "./utils/setup.php --index --create-search-indices --create-country-names" after. And so, I'll post the result. Thanks.

(10 Sep '20, 16:09) __fabrice

Hi. I've run "./utils/setup.php --index --create-search-indices --create-country-names", and I've the same error "pgsql returned with error code (3)", out of memory. So, I check the configuration for postgresql, and all is ok. For example : "maintenance_work_mem = 10GB". Have you an another idea please ?

(14 Sep '20, 09:50) __fabrice

You need to monitor the RAM usage while the script is running. Assessing after the script ended if memory was low doesn't work. Most likely you need a server with more RAM.

(14 Sep '20, 12:20) mtmail

Thanks. I've 16G of RAM, it's not good enough ?. I'm just re-run the script and check memory with "htop" command.

(14 Sep '20, 13:51) __fabrice

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:

×710
×689
×263
×7
×6

question asked: 10 Sep '20, 12:42

question was seen: 1,561 times

last updated: 14 Sep '20, 13:51

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