drolbr / Overpass-API

A database engine to query the OpenStreetMap data.
http://overpass-api.de
GNU Affero General Public License v3.0
692 stars 90 forks source link

File_Blocks_Index: Data file size does not match block size #638

Open TaoLeopard opened 2 years ago

TaoLeopard commented 2 years ago

I deployed Overpass API using Amazon AMI image. I run into this issue right now with API.0.7.56.9 DB.2021.10.13. Once it gets into this state, it stays in this state. I can repro it for you on demand.

OSM3S Response

The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.

Error: runtime error: open64: 0 Success /opt/osm/database/way_tags_local.bin.idx File_Blocks_Index: Data file size does not match block size

My query:

[timeout:15][bbox:47.489304, -121.770561,47.511974, -121.70179];(way["highway"="path"];);out geom;

How do I mitigate this issue? Any way to reindex? Or refresh the DB?

mmd-osm commented 2 years ago

Can you elaborate a bit what exactly do you mean by "Amazon AMI image"? In case this has been provided by some third party, please contact them for support. We're not offering any Amazon AMI images, and don't provide any support for such solutions.

TaoLeopard commented 2 years ago

Here's the link to the AMI: https://aws.amazon.com/marketplace/pp/prodview-ps7z3ljonpbky?ref_=unifiedsearch

It's nothing but a pre-packaged OSM database + Overpass API, running on Ubuntu server. I have contacted the publisher of the AMI too. Just thought you may have some quick ideas on what's wrong and how to mitigate.

mmd-osm commented 2 years ago

Apologies, we really have no idea what this AMI is doing. I'd suggest to close this issue as there's nothing left to do for us here in the meantime. If you encounter some issue which can be reproduced using the official installation instructions on https://overpass-api.de/, please create a new issue.

Saranya-94 commented 2 years ago

@TaoLeopard - I'm also facing the same issue (runtime error: open64: /opt/osm/database/way_tags_local.bin.idx File_Blocks_Index: Data file size does not match block size) which you did. I have installed OpenStreetMap (OSM) Overpass v0.7.55.x from AWS marketplace. It would be helpful if you could share the steps you followed to resolve this issue.

mmd-osm commented 2 years ago

@Saranya-94 : again the reminder, the AWS image is managed by a third party and not officially endorsed or supported . Please get in touch with the provider of said image. Here’s not a good place to discuss any issues regarding this image.

Thank you for your cooperation!

TaoLeopard commented 2 years ago

@Saranya-94 , I think it may have something to do with not enough disk space provisioned. I increased disk space, and turned off auto-updater. So far, it has been working OK after a couple months.