osm2pgsql icon indicating copy to clipboard operation
osm2pgsql copied to clipboard

Error while import server terminated abnormally

Open ranode opened this issue 10 years ago • 3 comments

After the end of the import getting the following error. Can I retry? should I clean up the db before I retry?

In a moment you should be able to reconnect to the database and repeat your command. node cache: stored: 43859872(100.00%), storage efficiency: 52.83% (dense blocks: 1425, sparse nodes: 35671061), hit rate: 100.01% Osm2pgsql failed due to ERROR: CREATE INDEX planet_osm_line_index ON planet_osm_line USING GIST (way) failed: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.

ranode avatar Jan 29 '16 17:01 ranode

Look in your postgres log, and possibly dmesg

pnorman avatar Jan 29 '16 17:01 pnorman

2016-01-29 17:30:34 UTC LOG: incomplete message from client 2016-01-29 17:30:34 UTC CONTEXT: COPY planet_osm_point, line 121815 2016-01-29 17:30:34 UTC STATEMENT: COPY planet_osm_point (osm_id,"access","addr:housename","addr:housenumber","addr:interpolation","admin_level","aerialway","aeroway","amenity","area","barrier","bicycle","brand","bridge","boundary","building","capital","construction","covered","culvert","cutting","denomination","disused","ele","embankment","foot","generator:source","harbour","highway","historic","horse","intermittent","junction","landuse","layer","leisure","lock","man_made","military","motorcar","name","natural","office","oneway","operator","place","poi","population","power","power_source","public_transport","railway","ref","religion","route","service","shop","sport","surface","toll","tourism","tower:type","tunnel","water","waterway","wetland","width","wood","z_order",tags,way) FROM STDIN 2016-01-29 17:30:34 UTC ERROR: unexpected EOF on client connection with an open transaction 2016-01-29 17:30:34 UTC CONTEXT: COPY planet_osm_point, line 121815 2016-01-29 17:30:34 UTC STATEMENT: COPY planet_osm_point (osm_id,"access","addr:housename","addr:housenumber","addr:interpolation","admin_level","aerialway","aeroway","amenity","area","barrier","bicycle","brand","bridge","boundary","building","capital","construction","covered","culvert","cutting","denomination","disused","ele","embankment","foot","generator:source","harbour","highway","historic","horse","intermittent","junction","landuse","layer","leisure","lock","man_made","military","motorcar","name","natural","office","oneway","operator","place","poi","population","power","power_source","public_transport","railway","ref","religion","route","service","shop","sport","surface","toll","tourism","tower:type","tunnel","water","waterway","wetland","width","wood","z_order",tags,way) FROM STDIN 2016-01-29 17:30:34 UTC LOG: could not send data to client: Broken pipe 2016-01-29 17:30:34 UTC STATEMENT: COPY planet_osm_point (osm_id,"access","addr:housename","addr:housenumber","addr:interpolation","admin_level","aerialway","aeroway","amenity","area","barrier","bicycle","brand","bridge","boundary","building","capital","construction","covered","culvert","cutting","denomination","disused","ele","embankment","foot","generator:source","harbour","highway","historic","horse","intermittent","junction","landuse","layer","leisure","lock","man_made","military","motorcar","name","natural","office","oneway","operator","place","poi","population","power","power_source","public_transport","railway","ref","religion","route","service","shop","sport","surface","toll","tourism","tower:type","tunnel","water","waterway","wetland","width","wood","z_order",tags,way) FROM STDIN 2016-01-29 17:30:34 UTC FATAL: terminating connection because protocol sync was lost 2016-01-29 17:30:34 UTC FATAL: terminating connection because protocol sync was lost 2016-01-29 17:30:34 UTC FATAL: terminating connection because protocol sync was lost 2016-01-29 17:30:34 UTC FATAL: terminating connection because protocol sync was lost 2016-01-29 17:30:34 UTC FATAL: terminating connection because protocol sync was lost 2016-01-29 17:30:34 UTC LOG: incomplete message from client 2016-

ranode avatar Jan 29 '16 17:01 ranode

just tried one more time, and it completed!

ranode avatar Jan 29 '16 19:01 ranode