ToeBee/ChangesetMD

Wrong diff fetched

Closed this issue · 0 comments

opening replication file at https://planet.openstreetmap.org/replication/changesets/001/999/999.osm.gz
parsing complete
parsed 21
opening replication file at https://planet.openstreetmap.org/replication/changesets/002/1000/000.osm.gz
Traceback (most recent call last):
  File "changesetmd.py", line 190, in <module>
    md.doReplication(conn)
  File "changesetmd.py", line 150, in doReplication
    self.parseFile(connection, self.fetchReplicationFile(currentSequence), True)
  File "changesetmd.py", line 124, in fetchReplicationFile
    replicationFile = urllib2.urlopen(fileUrl)
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

002/1000/000 is the wrong diff path.

If I clear the state flag and try again I get

latest sequence from the database: 1999999
latest sequence on OSM server: 2000469
server has new sequence. commencing replication
opening replication file at https://planet.openstreetmap.org/replication/changesets/002/1000/000.osm.gz

I'm a few versions behind, but I don't see any recent commits that would fix this.