There are intermittent errors with the minutely planet diffs. pyosmium fails then with the following error when it encounters one:
2023-11-16 10:52:29: Using project directory: /srv/nominatim.openstreetmap.org/planet-project
Traceback (most recent call last):
File "/usr/local/bin/nominatim", line 12, in <module>
exit(cli.nominatim(module_dir='/usr/local/lib/nominatim/module',
File "/usr/local/lib/nominatim/lib-python/nominatim/cli.py", line 226, in nominatim
return get_set_parser().run(**kwargs)
File "/usr/local/lib/nominatim/lib-python/nominatim/cli.py", line 121, in run
return args.command.run(args)
File "/usr/local/lib/nominatim/lib-python/nominatim/clicmd/replication.py", line 199, in run
self._update(args)
File "/usr/local/lib/nominatim/lib-python/nominatim/clicmd/replication.py", line 154, in _update
state = replication.update(dsn, params, socket_timeout=args.socket_timeout)
File "/usr/local/lib/nominatim/lib-python/nominatim/tools/replication.py", line 128, in update
endseq = repl.apply_diffs(outhandler, startseq + 1,
File "/usr/lib/python3/dist-packages/osmium/replication/server.py", line 171, in apply_diffs
diffs = self.collect_diffs(start_id, max_size)
File "/usr/lib/python3/dist-packages/osmium/replication/server.py", line 137, in collect_diffs
left_size -= rd.add_buffer(diffdata, self.diff_type)
RuntimeError: gzip error: inflate failed: incorrect header check
According to the osm server logs, the server has returned a 500 in that case:
pyosmium seem to have ignored the non-200 return code and then failed on unpacking the error response. It should simply retry fetching the diff instead.
There are intermittent errors with the minutely planet diffs. pyosmium fails then with the following error when it encounters one:
According to the osm server logs, the server has returned a 500 in that case:
pyosmium seem to have ignored the non-200 return code and then failed on unpacking the error response. It should simply retry fetching the diff instead.