-
Notifications
You must be signed in to change notification settings - Fork 449
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
Replication / catch-up Processing: Node(3800k 111.8k/s)
stuck forever
#601
Comments
OK , that seems to be a fail ... Finally it's stuck again at :
I gonna wait for few hours to be sure and just stop the catch-up... @lonvia have you got any ideas? Here is the
The stuck queries : nominatim=# select *
from pg_stat_activity;
datid | datname | pid | leader_pid | usesysid | usename | application_name | client_addr | client_hostname | client_port | backend_start | xact_start | query_start | state_change | wait_event_type | wait_event | state | backend_xid | backend_xmin | query_id |
query
| backend_type
-------+-----------+-----+------------+----------+-----------+----------------------------+-------------+-----------------+-------------+-------------------------------+-------------------------------+-------------------------------+-------------------------------+-----------------+---------------------+--------+-------------+--------------+----------+-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------+------------------------------
| | 41 | | | | | | | | 2025-02-16 15:58:27.770721+00 | | | | Activity | AutoVacuumMain | | | | |
| autovacuum launcher
| | 43 | | 10 | postgres | | | | | 2025-02-16 15:58:27.773022+00 | | | | Activity | LogicalLauncherMain | | | | |
| logical replication launcher
16386 | nominatim | 93 | | 16385 | www-data | | | | -1 | 2025-02-16 15:58:34.5023+00 | | 2025-02-16 17:16:40.480283+00 | 2025-02-16 17:16:40.480297+00 | Client | ClientRead | idle | | | | DEALLOCATE pdo_stmt_00002174
| client backend
16386 | nominatim | 107 | | 16384 | nominatim | | | | -1 | 2025-02-16 15:58:52.771189+00 | 2025-02-16 17:15:30.890635+00 | 2025-02-16 17:15:31.109418+00 | 2025-02-16 17:15:31.109428+00 | | | active | | 21515079 | | SELECT places.place_id, places.osm_type, places.osm_id, places.name, places.class, places.type
, places.address, places.extratags, places.housenumber, places.postcode, places.country_code, places.importance, places.wikipedia, places.parent_place_id, places.rank_address, places.rank_search, ST_AsEWKB(places.centroid) AS centroid, places.linked_place_id, places.admin_level, places.distance AS distance, ST_AsEWKB(ST_Expand(places.geometry, $1::integer)) AS bbox
+| client backend
| | | | | | | | | | | | | | | | | | | | FROM (SELECT placex.place_id AS place_id, placex.parent_place_id AS parent_place_id, placex.li
nked_place_id AS linked_place_id, placex.importance AS importance, placex.indexed_date AS indexed_date, placex.rank_address AS rank_address, placex.rank_search AS rank_search, placex.indexed_status AS indexed_status, placex.osm_type AS osm_type, placex.osm_id AS osm_id, placex.class AS class, placex.type AS type, placex.admin_level AS admin_level, placex.name AS name, placex.address AS address, placex.extratags AS extratags, placex.geometry AS g
eometry, placex.w |
16386 | nominatim | 100 | | 16385 | www-data | | | | -1 | 2025-02-16 15:58:49.25316+00 | | 2025-02-16 17:16:14.405678+00 | 2025-02-16 17:16:14.405692+00 | Client | ClientRead | idle | | | | DEALLOCATE pdo_stmt_000024ec
| client backend
16386 | nominatim | 102 | | 16385 | www-data | | | | -1 | 2025-02-16 15:58:50.665152+00 | | 2025-02-16 17:16:43.246838+00 | 2025-02-16 17:16:43.246853+00 | Client | ClientRead | idle | | | | DEALLOCATE pdo_stmt_00001c6f
| client backend
16386 | nominatim | 103 | | 16385 | www-data | | | | -1 | 2025-02-16 15:58:50.924787+00 | | 2025-02-16 17:16:20.59576+00 | 2025-02-16 17:16:20.59577+00 | Client | ClientRead | idle | | | | DEALLOCATE pdo_stmt_000026e8
| client backend
16386 | nominatim | 385 | | 16384 | nominatim | psql | | | -1 | 2025-02-16 17:13:57.451952+00 | 2025-02-16 17:16:45.544424+00 | 2025-02-16 17:16:45.544424+00 | 2025-02-16 17:16:45.544426+00 | | | active | | 21515079 | | select *
+| client backend
| | | | | | | | | | | | | | | | | | | | from pg_stat_activity;
|
16386 | nominatim | 109 | | 16385 | www-data | | | | -1 | 2025-02-16 15:59:11.492118+00 | | 2025-02-16 17:16:26.735871+00 | 2025-02-16 17:16:26.735882+00 | Client | ClientRead | idle | | | | DEALLOCATE pdo_stmt_00001980
| client backend
16386 | nominatim | 119 | | 16385 | www-data | | | | -1 | 2025-02-16 15:59:16.575469+00 | | 2025-02-16 17:16:13.230474+00 | 2025-02-16 17:16:13.230493+00 | Client | ClientRead | idle | | | | DEALLOCATE pdo_stmt_00001d22
| client backend
16386 | nominatim | 128 | | 16385 | www-data | | | | -1 | 2025-02-16 16:01:02.902487+00 | | 2025-02-16 17:16:33.617858+00 | 2025-02-16 17:16:33.617875+00 | Client | ClientRead | idle | | | | DEALLOCATE pdo_stmt_0000209b
| client backend
16386 | nominatim | 142 | | 16385 | www-data | | | | -1 | 2025-02-16 16:02:25.208052+00 | | 2025-02-16 17:16:33.646449+00 | 2025-02-16 17:16:33.646462+00 | Client | ClientRead | idle | | | | DEALLOCATE pdo_stmt_00001e23
| client backend
16386 | nominatim | 231 | | 16385 | www-data | | | | -1 | 2025-02-16 16:15:18.310248+00 | | 2025-02-16 17:16:20.491731+00 | 2025-02-16 17:16:20.491744+00 | Client | ClientRead | idle | | | | DEALLOCATE pdo_stmt_000019da
| client backend
16386 | nominatim | 249 | | 16384 | nominatim | | | | -1 | 2025-02-16 16:21:56.987964+00 | | 2025-02-16 16:21:57.053278+00 | 2025-02-16 16:21:57.075199+00 | Client | ClientRead | idle | | | | COMMIT
| client backend
16386 | nominatim | 253 | | 16384 | nominatim | osm2pgsql.middle.main/C1 | | | -1 | 2025-02-16 16:21:57.297905+00 | 2025-02-16 17:04:05.849981+00 | 2025-02-16 17:05:00.318051+00 | 2025-02-16 17:05:00.318053+00 | | | active | 21515079 | 21515079 | |
+| client backend
| | | | | | | | | | | | | | | | | | | | INSERT INTO osm2pgsql_changed_ways
+|
| | | | | | | | | | | | | | | | | | | | SELECT w.id
+|
| | | | | | | | | | | | | | | | | | | | FROM "public"."planet_osm_ways" w, osm2pgsql_changed_nodes n
+|
| | | | | | | | | | | | | | | | | | | | WHERE w.nodes && ARRAY[n.id]
+|
| | | | | | | | | | | | | | | | | | | |
|
16386 | nominatim | 255 | | 16384 | nominatim | osm2pgsql.copy/C2 | | | -1 | 2025-02-16 16:21:57.318666+00 | | 2025-02-16 16:21:57.329322+00 | 2025-02-16 16:21:57.32935+00 | Client | ClientRead | idle | | | | SET enable_seqscan = off
| client backend
16386 | nominatim | 256 | | 16384 | nominatim | osm2pgsql.middle.query/C3 | | | -1 | 2025-02-16 16:21:57.509632+00 | | 2025-02-16 16:21:57.526601+00 | 2025-02-16 16:21:57.526815+00 | Client | ClientRead | idle | | | | PREPARE get_rel(int8) AS SELECT members, tags FROM "public"."planet_osm_rels" WHERE id = $
1
| client backend
16386 | nominatim | 257 | | 16384 | nominatim | osm2pgsql.out.flex.main/C4 | | | -1 | 2025-02-16 16:21:57.528286+00 | | 2025-02-16 16:21:57.540646+00 | 2025-02-16 16:21:57.543175+00 | Client | ClientRead | idle | | | | DROP TABLE IF EXISTS "public"."place_tmp"
| client backend
16386 | nominatim | 259 | | 16384 | nominatim | osm2pgsql.copy/C5 | | | -1 | 2025-02-16 16:21:57.540234+00 | 2025-02-16 17:09:55.730989+00 | 2025-02-16 17:09:55.730989+00 | 2025-02-16 17:09:55.73099+00 | Client | ClientRead | active | | 21515079 | | COPY "public"."place" ("osm_type","osm_id","class","type","admin_level","name","address","extr
atags","geometry") FROM STDIN
| client backend
16386 | nominatim | 297 | | 16385 | www-data | | | | -1 | 2025-02-16 16:38:24.66256+00 | | 2025-02-16 17:16:45.342883+00 | 2025-02-16 17:16:45.342896+00 | Client | ClientRead | idle | | | | DEALLOCATE pdo_stmt_00000c98
| client backend
| | 39 | | | | | | | | 2025-02-16 15:58:27.7681+00 | | | | Activity | BgWriterMain | | | | |
| background writer
| | 38 | | | | | | | | 2025-02-16 15:58:27.766965+00 | | | | Activity | CheckpointerMain | | | | |
| checkpointer
| | 40 | | | | | | | | 2025-02-16 15:58:27.769451+00 | | | | Activity | WalWriterMain | | | | |
| walwriter |
Updating a full year is never a good idea. For 2024 it is pretty much impossible because of the vandalism issues that occurred mid-year. I suggest to wait for the Nominatim 5.0 port of the docker container and then do a reimport. |
@leonardehrenfried Do you plan to release the 5.0 port in the next weeks ? Thanks a lot |
No I don't. Do you want to contribute the upgrade? |
What would it need to make such this upgrade ? Many things gonna change in the image/container context ? |
I think I did the heavy lifting with 4.5 but you will have to find out. I would start with bumping the version and seeing if the tests still pass. |
Describe the bug
Processing of replication
catch-up
is stuck in our Nominatim 4.4 container (we didn't upgrade its database/catch-up since 1 year).When we started the upgrade, it stayed stuck for dozen of hours (forever actually) on this log :
Solution
Thanks to this thread osm-search/Nominatim#3445 (comment), I've been able to fix it with :
Starting the docker container without the catch-up enabled (
UPDATE_MODE=none
), and then I entered in the instance to run :It fixed the issue (for now, at least, the processing is going further.. :
🙌
The text was updated successfully, but these errors were encountered: