I extract highways from OSM every day from a cron job and keep a postgis database up-to-date. Due to a database change, the syncing has stopped in December 2017. I am trying to re-sync with a sequence number from earlier than December 03 2018 (when the syncing failed), but, I get a
Error. How can I rectify the issue and make the database current? Below is the failure:
asked 14 Sep '18, 21:16 picmate |
The issue was directly due to not using the secured endpoint for fetching the diffs. I wrote an answer detailing the solution on stack overflow: https://gis.stackexchange.com/questions/295991/re-sync-osm-db-after-failure/301589#301589 answered 07 Nov '18, 18:47 picmate I don't, thanks for doing that. Considering what I went through to get it resolved, would be helpful for someone else if run into a similar issue.
(07 Nov '18, 19:15)
picmate
|
I would assume the error message to be correct, so "replication state doesn't contain a timestamp property." id likely your problem.
is an example of what the state file should look like and your file probably doesn't. The values from https://planet.openstreetmap.org/replication/minute/002/732/999.state.txt should restart replication from the end of Novemeber 2017. answered 16 Sep '18, 08:32 SimonPoole ♦ Hi, thanks for the reply. I tried that. But, still get the same message. Is this related to a problem with the security certificate and the diff url? I still use an http url opposed to https. Just read something indicating that the https version should be used now.
(16 Sep '18, 17:13)
picmate
You do need to use https in your osmosis configuration file, however a failure to do so, shouldn't result in the error message you are seeing.
(16 Sep '18, 17:41)
SimonPoole ♦
|
crosspost: https://gis.stackexchange.com/questions/295991/re-sync-osm-db-after-failure