Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupted file #144

Closed
Mtehabsim opened this issue Feb 20, 2024 · 8 comments
Closed

Corrupted file #144

Mtehabsim opened this issue Feb 20, 2024 · 8 comments

Comments

@Mtehabsim
Copy link

I installed PMTiles using brew and used it to convert a mbtiles to a pmtiles, but whenever I run any comand on the file it show the following error:
'2024/02/20 16:01:26 main.go:205: Failed to verify archive, Failed to create range reader for new.pmtiles, EOF'

What might be the issue? considering I tested that the mbfiles file I used has correct data and run perfectly

@bdon
Copy link
Member

bdon commented Feb 20, 2024

what operating system and version (pmtiles version) are you using?

@Mtehabsim
Copy link
Author

OS Ventura 13.2.1
pmtiles 1.17.0

@bdon
Copy link
Member

bdon commented Feb 21, 2024

please provide the exact command you are running

@bdon
Copy link
Member

bdon commented Feb 21, 2024

is your new.pmtiles less than 16 kilobytes?

@Mtehabsim
Copy link
Author

Yes it is 834 bytes, the original mbtiles is 29 KB

@bdon
Copy link
Member

bdon commented Feb 21, 2024

transferring issue to go-pmtiles

@bdon bdon transferred this issue from protomaps/PMTiles Feb 21, 2024
@bdon
Copy link
Member

bdon commented Feb 21, 2024

will be addressed in #143

bdon added a commit that referenced this issue Feb 25, 2024
* File bucket handles archives less than 16kb

* file bucket can return less bytes than requested [#144]
@bdon
Copy link
Member

bdon commented Feb 25, 2024

should be fixed in 1.18

@bdon bdon closed this as completed Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants