[Tile-serving] [openstreetmap/osm2pgsql] Osm2pgsql filed due to ERROR: Index file has wrong size: (must be multiple of 8) (#858)
Sarah Hoffmann
notifications at github.com
Tue Aug 14 07:05:29 UTC 2018
I should have been more verbose in my answer. So some more background:
The error message indicates that the flat node file is corrupted. That may either happen because osm2pgsql got killed in an earlier run at an inconvenient time and left the file in a bad state or because you were updating from an earlier version which had an incompatible format.
If you are starting a new import (which you see to be doing), then the flat node file would be overwritten anyway. So the file can be simply deleted and the error will be gone. (osm2pgsql could be removing the file by itself but reusing an existing file is actually a bit faster because the OS does not need to allocate disk space.)
If you were updating an existing database, you'd be in serious trouble when seeing that error because it essentially means that your data is corrupted. The database would still be usable but not updatable anymore. You'd need to start fresh in that case.
--
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/858#issuecomment-412775329
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20180814/5b352706/attachment.html>
More information about the Tile-serving
mailing list