Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error during planet installation #1168

Closed
llomgui opened this issue Sep 9, 2018 · 3 comments
Closed

An error during planet installation #1168

llomgui opened this issue Sep 9, 2018 · 3 comments

Comments

@llomgui
Copy link

llomgui commented Sep 9, 2018

Hey,

I was doing a planet installation and 24 hours later, I got an error:

╰─➤ tail -f setup.log
Done 44742726 in 44159 @ 1013.218750 per second - Rank 26 ETA (seconds): 24107.109375
Done 44743218 in 44160 @ 1013.206970 per second - Rank 26 ETA (seconds): 24106.904297
Done 44744024 in 44161 @ 1013.202209 per second - Rank 26 ETA (seconds): 24106.222656
index_placex: UPDATE failed: ERROR: buffer 82340 is not owned by resource owner Portal
CONTEXT: SQL statement "INSERT INTO search_name_88 (place_id, search_rank, address_rank, name_vector, centroid)
values (in_place_id, in_rank_search, in_rank_address, in_name_vector, in_geometry)"
PL/pgSQL function insertsearchname(integer,bigint,character varying,integer[],integer[],integer,integer,double precision,geometry,geometry) line 247 at SQL statement
PL/pgSQL function placex_update() line 681 at assignment
ERROR: error status 1 running nominatim!
error status 1 running nominatim!

Can you tell me what I missed?

@lonvia
Copy link
Member

lonvia commented Sep 9, 2018

I've seen the error before but it's not very clear where it comes from. It looks like a Postgres-internal problem. You can simply continue the import with ./utils/setup.php --index --create-search-indices --create-country-names --index-noanalyse. You might want to add --threads <n> to reduce the number of threads a bit.

@mtmail
Copy link
Collaborator

mtmail commented Sep 9, 2018

I've seen the "not owned by resource owner" before. I'm afraid it turned out to be a hardware issue, likely CPU. Eventually, after 10 restarts of the import command it finished. I did RAM and file system checks and they were fine. Nominatim version and Postgresql version made no difference, smaller imports always ran fine, only the heavy CPU load of a full planet caused the issues after many hours. Postgresql forum posts (internet search) pointed to issues in multithreading (or hyperthreading with my CPU).

You can try running the import with less threads and check if you have all microcode upgrades for the CPU applied. If it's easy in your infrastructure (cloud vs shared hosting vs leased hardware etc) the easiest solution might be to try a different server.

@llomgui
Copy link
Author

llomgui commented Sep 10, 2018

Thanks for your replies, The command to continue the import worked.

I didn't try to reduce the number of threads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants