Modify

Opened 10 years ago

Closed 10 years ago

Last modified 2 years ago

#4556 closed defect (fixed)

Error when opening compressed OSM file (could not read file)

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

Downloaded planet-100210.osm.bz2 and tried to open it in JOSM and got an error:

Could not read file 'planet-100210.osm.bz2'.
Error is:
XML document structures must start and end within the same entity.

What did I do wrong? It took 7 hours to download this file so I hope it's not somehow corrupt and I have to download it again! I used DownThemAll in Firefox 3.6 and downloaded the file from http://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/planet-100210.osm.bz2 I'm using JOSM Version 2561.

I should note: When I came to my computer 7 hours later it didn't say the download was finished it said it timed out but I hit resume and then it finished. Don't know if that corrupted it somehow but I hope not! I attached a screenshot of the error message dialog window.

Attachments (1)

Error.jpg (69.6 KB) - added by anonymous 10 years ago.
The error dialog

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by anonymous

Attachment: Error.jpg added

The error dialog

comment:1 Changed 10 years ago by Gubaer

Resolution: invalid
Status: newclosed

My best guess is that the the file *is* actually corruped and that JOSM correctly refused to load it. You'll have to download it again.

Closing a invalid.

comment:2 Changed 10 years ago by bastiK

there is a checksum you can compare: (md5)
f94426668424a5b4f4fe6656f36d290c changesets-100210.osm.bz2

Anyway, I doubt you can open a file that large in JOSM. You can try to use planet extracts (one country) or use tools that can handle these amounts of data.

comment:3 in reply to:  2 ; Changed 10 years ago by anonymous

Resolution: invalid
Status: closedreopened

Replying to bastiK:

there is a checksum you can compare: (md5)
f94426668424a5b4f4fe6656f36d290c changesets-100210.osm.bz2

Anyway, I doubt you can open a file that large in JOSM. You can try to use planet extracts (one country) or use tools that can handle these amounts of data.

Thanks for your help! What tools can handle these amounts of data? I was under the impression JOSM could because it was the JOSM program that told me I should get the planet.osm file if I wanted to load a larger area than what I was going for! (In a dialog window).

But anyway if you're sure it can't load it, then please tell me what tools will open a file this big? And also where would I find planet country extracts (on that ftp site I linked to, I didn't see any countries or anything)? Also, would the whole amount of data have to load to RAM, because if so then I can't open it anyway because my system only has 2GB and this file is 7.91GB, or does it load as a direct-from-disk kinda method?

I'm not sure what to do about action, I don't want my comment to go unnoticed so I'm going to reopen this, if that's unnecessary then let me know and next time I leave a comment (if I need to) I'll leave it closed ;) thanks!

comment:4 in reply to:  3 ; Changed 10 years ago by bastiK

Resolution: invalid
Status: reopenedclosed

Replying to anonymous:

Replying to bastiK:

there is a checksum you can compare: (md5)
f94426668424a5b4f4fe6656f36d290c changesets-100210.osm.bz2

Anyway, I doubt you can open a file that large in JOSM. You can try to use planet extracts (one country) or use tools that can handle these amounts of data.

Thanks for your help! What tools can handle these amounts of data? I was under the impression JOSM could because it was the JOSM program that told me I should get the planet.osm file if I wanted to load a larger area than what I was going for! (In a dialog window).


Where exactly? I couldn't find the string in the source code.


But anyway if you're sure it can't load it, then please tell me what tools will open a file this big? And also where would I find planet country extracts (on that ftp site I linked to, I didn't see any countries or anything)? Also, would the whole amount of data have to load to RAM, because if so then I can't open it anyway because my system only has 2GB and this file is 7.91GB, or does it load as a direct-from-disk kinda method?


JOSM does not load the whole file into memory, but one way or another it won't work! The wiki page is a good start:

http://wiki.openstreetmap.org/wiki/Planet

I have to warn you however, processing the planet.org takes a lot of time and resources. The extracts are easier to handle, but still pretty big. Smaller extracts can be opened in JOSM.

I'm not sure what to do about action, I don't want my comment to go unnoticed so I'm going to reopen this, if that's unnecessary then let me know and next time I leave a comment (if I need to) I'll leave it closed ;) thanks!

No problem, for old threads, better reopen. In this case you can leave it closed.

comment:5 in reply to:  4 Changed 10 years ago by bastiK

Replying to bastiK:

Where exactly? I couldn't find the string in the source code.

Never mind, I found it.

comment:6 Changed 10 years ago by bastiK

(In [3023]) translate misleading server message (see #4556)

comment:7 Changed 2 years ago by anonymous

Resolution: invalidfixed

history-latest.osm.bz2.md5.bz2

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.