<div dir="ltr"><div>Hi there, I have an issue when I try to get updates from de cmdline:</div><div><br></div><div>./utils/update.php --import-osmosis-all</div><div><br></div><div>(...)<br></div><div>Done 330099 in 2463 @ 134.023148 per second - Rank 30 ETA (seconds): 1.417666</div>  Done 330221 in 2464 @ 134.018265 per second - Rank 30 ETA (seconds): 0.507394<br>  Done 330383 in 2465 @ 134.029617 per second - Rank 30 ETA (seconds): -0.701338<br>  Done 330449 in 2466 @ 134.002029 per second - ETA (seconds): -1.194012<br>  Done 331163 in 2466 @ 134.291565 per second - ETA (seconds): -6.508227<br>  Done 331163 in 2466 @ 134.291565 per second - FINISHED<br><br>string(187) "INSERT INTO import_osmosis_log(batchend, batchseq, batchsize, starttime, endtime, event) values ('2019-11-01 23:58:59+00:00',2607,NULL,'2019-12-17 04:08:12','2019-12-17 05:39:44','index')"<br>2019-12-17 05:39:44 Completed index step for 2019-11-01 23:58:59+00:00 in 91.53 minutes<br>2019-12-17 05:39:44 Completed all for 2019-11-01 23:58:59+00:00 in 114.78 minutes<br>Currently at sequence 2607 (01/11/2019 23:58:59) - 1 indexed<br>/srv/nominatim/.local/bin/pyosmium-get-changes --server <a href="https://planet.openstreetmap.org/replication/day">https://planet.openstreetmap.org/replication/day</a> -o /srv/nominatim/Nominatim-3.4.0/build/osmosischange.osc -s 30 -I 2607<br>/srv/nominatim/Nominatim-3.4.0/build/osm2pgsql/osm2pgsql -klas --number-processes 1 -C 2000 -O gazetteer -S /srv/nominatim/Nominatim-3.4.0/settings/import-full.style -d nominatim -P 5432 --flat-nodes /srv/nominatim/Nominatim-3.4.0/data/planet.bin /srv/nominatim/Nominatim-3.4.0/build/osmosischange.osc<br>osm2pgsql version 1.2.0 (64 bit id space)<br><br>Allocating memory for dense node cache<br>Allocating dense node cache in one big chunk<br>Allocating memory for sparse node cache<br>Sharing dense sparse<br>Node-cache: cache=2000MB, maxblocks=32000*65536, allocation method=11<br>Mid: loading persistent node cache from /srv/nominatim/Nominatim-3.4.0/data/planet.bin<br>Mid: pgsql, cache=2000<br>Parsing gazetteer style file '/srv/nominatim/Nominatim-3.4.0/settings/import-full.style'.<br>Using projection SRS 4326 (Latlong)<br><br>Reading in file: /srv/nominatim/Nominatim-3.4.0/build/osmosischange.osc<br>Using XML parser.<br>Processing: Node(1916k 10.3k/s) Way(346k 2.44k/s) Relation(9420 24.47/s)  parse time: 713s<br>Node stats: total(1916176), max(6940299180) in 186s<br>Way stats: total(346274), max(741344763) in 142s<br>Relation stats: total(9471), max(10250591) in 385s<br>result COPY END for place failed: ERROR:  value too long for type character varying(2)<br>CONTEXT:  SQL statement "INSERT INTO import_polygon_error (osm_type, osm_id, class, type, name, country_code, updated, errormessage, prevgeometry, newgeometry)<br>        VALUES (NEW.osm_type, NEW.osm_id, NEW.class, NEW.type, NEW.name, NEW.address->'country', now(),<br>        'Area reduced from '||st_area(existing.geometry)||' to '||st_area(NEW.geometry), existing.geometry, NEW.geometry)"<br>PL/pgSQL function place_insert() line 107 at SQL statement<br>COPY place, line 19: "1943188   R       boundary        administrative  "alt_name:ar"=>"جامو وكشمير","name"=>"Jammu and Kashmir"..."<br><br>DB writer thread failed due to ERROR: Ending COPY mode<br><div>Error executing osm2pgsql: 2</div><div><br></div><div>Before this execution of the update process, I try to get updates several times, but some preexistent bugs (fixed) interrupt the process.</div><div><br></div><div>For further reference of the commented issues:</div><div><br></div><div><a href="https://github.com/openstreetmap/Nominatim/issues/1600">https://github.com/openstreetmap/Nominatim/issues/1600</a><br><a href="https://github.com/openstreetmap/Nominatim/issues/1550">https://github.com/openstreetmap/Nominatim/issues/1550</a> <br><a href="https://github.com/openstreetmap/Nominatim/issues/1598">https://github.com/openstreetmap/Nominatim/issues/1598</a> <br><a href="https://github.com/openstreetmap/Nominatim/issues/1594">https://github.com/openstreetmap/Nominatim/issues/1594</a>  <br></div><div><br></div><div>Actually I see a error on the copy (INSERT) step:</div><div><b><br></b></div><div><b>result COPY END for place failed: ERROR:  value too long for type character varying(2)</b></div><div><b><br></b></div><div>But I don't know how if I need to fix that statement manually or if there's a policy to report this error to the mantainer or the person who does the commit into the  <a href="https://planet.openstreetmap.org/replication/day">https://planet.openstreetmap.org/replication/day</a> repo.</div><div><br></div><div>Thanks in advance!<br></div><div><b></b></div></div>