[Tile-serving] [openstreetmap/osm2pgsql] Updating a db leads to: node-persistent-cache.cpp:369: void node_persistent_cache::set_append(osmid_t, double, double): Assertion `!read_mode' failed.` (#743)

Paul Norman notifications at github.com
Thu Apr 13 10:32:42 UTC 2017


Nothing obvious is jumping out at me from the command line. How was changes.osc.gz generated? Can you paste `zcat changes.osc.gz | head -n 30`

I'd start by trying with --number-processes 1 and without --expire tiles. Neither of these is likely to be a cause, but `--expire-tiles` isn't **required** to do the update and single process is easier to debug. 

-----

https://github.com/openstreetmap/osm2pgsql/blob/0.92.0/node-persistent-cache.cpp#L369 is the assertion, being called from https://github.com/openstreetmap/osm2pgsql/blob/0.92.0/node-persistent-cache.cpp#L390. That is either called from https://github.com/openstreetmap/osm2pgsql/blob/0.92.0/middle-pgsql.cpp#L387 or https://github.com/openstreetmap/osm2pgsql/blob/0.92.0/middle-pgsql.cpp#L415 depending on if it's a node create/modify or a delete.

-- 
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/743#issuecomment-293853310
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20170413/1fe604ae/attachment.html>


More information about the Tile-serving mailing list