[OSM-dev] Re: [OSM-talk] Problem uploading

Dan Karran dan at karran.net
Thu Mar 30 16:01:56 BST 2006


I managed to get the file uploaded by manually adding in a second
track, copied and pasted from a previous file. Strange!

<trk>
  <name>ACTIVE LOG #2</name>
<number>1</number>
<trkseg>
<trkpt lat="48.754513" lon="9.139531">
  <ele>249.118774</ele>
<time>2006-03-28T07:31:44Z</time>
</trkpt>
...
</trk>


Cheers,
Dan
On 3/30/06, Dan Karran <dan at karran.net> wrote:
> On 3/30/06, SteveC <steve at asklater.com> wrote:
> > Hi Dan
> >
> > I'm totally baffled. I can tell you whats not working, but not why.
> >
> > Line 45 of upload-gpx.rb says
> >
> > tmpfile = cgi.params['gpxfile'].first.path.
> >
> > what this does is get the filename of where the uploaded file is on the
> > sever (apache copies it to a random place with a funny name), so it's
> > independent of the actual file itself. It's nil, the same as null in
> > other languages. Error logs show nothing.
> >
> > But, other files upload fine and there is lots of disk space available
> > and the filename itself I changed when I tried to upload it. So it has
> > to be the contents. Somehow. Maybe something like the encoding or the
> > wrong type of line endings. It really shouldn't be though.
> >
> > I'm copying to the dev list. If you could upload it somewhere for other
> > people to look at then we might pin it down.
>
> I've uploaded the file to
> http://www.dankarran.com/openstreetmap/Tracks290306.gpx
>
> If anyone has any ideas why this may not be working, please let me
> know. Files created by the same program (same version of the program)
> have worked in the past, and uploading a tracklog from the previous
> day still works fine for me.
>
> I have tried a few more things with the file this morning, but still no luck.
>
>
> Cheers,
> Dan
>
> > Sorry!
> >
> > * @ 29/03/06 10:27:30 PM dan at karran.net wrote:
> > > Steve,
> > >
> > > Just to give a little more troubleshooting info... I've tried the same
> > > file a few times, and it won't work, but I've also managed to
> > > successfully re-upload a file from yesterday.
> > >
> > > The only difference I can spot is that the previous files have had
> > > more than one ACTIVE LOG, whilst this one only has a single one.
> > >
> > >
> > > Cheers,
> > > Dan
> > >
> > > On 3/29/06, Dan Karran <dan at karran.net> wrote:
> > > > Hi Steve,
> > > >
> > > > Just checked inside the file and it looks like a normal GPX. Here it
> > > > is anyway, in case you can see anything weird with it.
> > > >
> > > >
> > > > Cheers,
> > > > Dan
> > > >
> > > > On 3/29/06, SteveC <steve at asklater.com> wrote:
> > > > > * @ 29/03/06 05:08:52 PM dan at karran.net wrote:
> > > > > > Is there an issue uploading files at the moment? When I try to upload
> > > > > > a small file, I get the message 'Something went wrong scheduling that
> > > > > > file. See the wiki / mailing list for help.'
> > > > >
> > > > > No.. but someone is hitting the database pretty hard.
> > > > >
> > > > > Can I have a copy of the file to debug?
> > > > >
> > > > > have fun,
> > > > >
> > > > > SteveC steve at asklater.com http://www.asklater.com/steve/



--
Dan Karran
dan at karran.net
+49 178 562 2321
www.dankarran.com




More information about the dev mailing list