Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Multi-file zipped upload: lack of error information #5115

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 14 comments
Closed

Multi-file zipped upload: lack of error information #5115

openstreetmap-trac opened this issue Jul 23, 2021 · 14 comments

Comments

@openstreetmap-trac
Copy link

Reporter: tupka
[Submitted to the original trac issue database at 5.08am, Thursday, 6th February 2014]

I want to upload many gpx files in one zip archive.

After uploading I get following message on my email:

It looks like your GPX file
2010.zip
with the description
2010, Krasnoyarsk kr
and the following tags:
automobile
failed to import. Here's the error:

Generic XML parse error
XML parser at line 1 column 2

I checked all gpx files inside archive with xmllint, and sure that they are parsable. Also I've opened each of them in josm, and they opened and displayed ok.

Please include in error notification message the indication which file inside archive is errorneous.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 2.35pm, Sunday, 9th February 2014]

I'm not sure how the C importer handles this but certainly with the old rails importer this wasn't possible because it simply didn't know as it used unzip to concatenate all the files into one lump and then processed that.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 2.38pm, Sunday, 9th February 2014]

It looks like the C importer does process them file by file, but this would still need some work because the error report comes from a layer above the one that does the looping and the details of which file it was working on have been lost by the time we get there.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 2.44pm, Sunday, 9th February 2014]

If it helps I think 20100619_191607.gpx was probably the file that failed.

@openstreetmap-trac
Copy link
Author

Author: tupka
[Added to the original trac issue at 6.06am, Monday, 10th February 2014]

Yes, failed file was 20100619_191607.gpx . After removing it archive have been imported ok.
But what's wrong with this file? How can I find out such problem files before uploading ?

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 7.04am, Monday, 10th February 2014]

I don't know what's wrong with it because I haven't seen it!

@openstreetmap-trac
Copy link
Author

Author: tupka
[Added to the original trac issue at 8.45am, Monday, 10th February 2014]

But how did you make a guess about the file that is causing a failure ?

I uploaded 20100619_191607.gpx separately and it have been imported successfully.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 8.48am, Monday, 10th February 2014]

I guessed because I found your job in the server logs and they log each member of the archive as it is processed and that was the last one before it failed.

The actual file is deleted once it fails, so I have not seen the actual file which is what would allow me to debug this.

@openstreetmap-trac
Copy link
Author

Author: tupka
[Added to the original trac issue at 2.26am, Tuesday, 11th February 2014]

If it will help debugging, I can attach the original failing 2010.zip with 20100619_191607.gpx file to this ticket or provide it some other way.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 7.05am, Tuesday, 11th February 2014]

Please do attach it.

@openstreetmap-trac
Copy link
Author

Author: tupka
[Added to the original trac issue at 2.44am, Wednesday, 12th February 2014]

Sorry, cannot do this because file size exceedes attachment limit

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 10.34am, Wednesday, 12th February 2014]

Can you send it to tom[at]compton.nu then?

@openstreetmap-trac
Copy link
Author

Author: tupka
[Added to the original trac issue at 3.56am, Thursday, 13th February 2014]

Please tell me your full email address, I could not find out the last part of it

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 10.52am, Thursday, 13th February 2014]

Hmm... I can't see any sign of it in my mail, or in the logs on my mail server I'm afraid.

@openstreetmap-trac
Copy link
Author

Author: mmd
[Added to the original trac issue at 2.50pm, Thursday, 28th May 2020]

This message was created for the old C based importer, which is no longer around. Closing here. If this still occurs with the Rails based imporer, please craete a new issueon Github.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant