[Tile-serving] [openstreetmap/osm2pgsql] Segmentation fault while importing diff with tiles expire option (#651)
jendrusk
notifications at github.com
Sat Nov 19 12:38:30 UTC 2016
@lonvia Sorry - forget most important think... Log for 'current.osc_old1'
Script is launched by cron, in logfile I've got this:
Sat Nov 19 00:20:01 CET 2016
No current.osc file found, downloading new one...
Nov 19, 2016 12:20:01 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.44.1
Nov 19, 2016 12:20:01 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Nov 19, 2016 12:20:01 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Nov 19, 2016 12:20:01 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Nov 19, 2016 12:20:02 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline complete.
Nov 19, 2016 12:20:02 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Total execution time: 1036 milliseconds.
osm2pgsql version 0.91.0-dev (64 bit id space)
Using built-in tag processing pipeline
Using projection SRS 3857 (Spherical Mercator)
Setting up table: planet_osm_point
Setting up table: planet_osm_line
Setting up table: planet_osm_polygon
Setting up table: planet_osm_roads
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Allocating memory for sparse node cache
Sharing dense sparse
Node-cache: cache=2000MB, maxblocks=32000*65536, allocation method=11
Mid: pgsql, scale=100 cache=2000
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Reading in file: current.osc
Applying Bounding box: 13.500000,48.500000 to 24.500000,55.500000
Using XML parser.
Processing: Node(0k 0.0k/s) Way(1k 0.50k/s) Relation(0 0.00/s)
Processing: Node(0k 0.0k/s) Way(1k 0.62k/s) Relation(10 10.00/s) parse time: 2s
Node stats: total(0), max(0) in 0s
Way stats: total(1232), max(454391292) in 2s
Relation stats: total(12), max(6721047) in 0s
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Going over pending ways...
905 ways are pending
Using 1 helper-processes
Finished processing 905 ways in 1 s
905 Pending ways took 1s at a rate of 905.00/s
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Going over pending relations...
23 relations are pending
Using 1 helper-processes
Finished processing 23 relations in 0 s
Committing transaction for planet_osm_point
WARNING: there is no transaction in progress
Committing transaction for planet_osm_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Completed planet_osm_point
Completed planet_osm_line
Completed planet_osm_roads
Completed planet_osm_polygon
Log ends here, and via mail from cron I'm getting this:
/home/osm/scripts/osm/replication_update.sh: line 43: 20672 Segmentation fault (core dumped) /usr/local/bin/osm2pgsql --number-processes 1 -v -C 2000 -G -K -j -x -s -S ./default.style --append -d osm2pgsql --bbox 13.50,48.50,24.50,55.50 --expire-tiles 5-17 --expire-output /home/osm/scripts/osm/expire_list_tmp current.osc >> $logpath$logfile 2>&1
Of course database is not empty - running few months without problems. All started when I've installed mod_tile and edited script so it returns expire tiles list. Here is [map made from this data](http://mapa.abakus.net.pl/mapa) by geoserver.
Attached full script and style file.
[default.zip](https://github.com/openstreetmap/osm2pgsql/files/601436/default.zip)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/651#issuecomment-261711593
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20161119/3639fc18/attachment.html>
More information about the Tile-serving
mailing list