AirNav Systems Forum

AirNav RadarBox and RadarBox24.com => AirNav RadarBox and RadarBox24.com Discussion => Topic started by: jonjorobb on July 03, 2009, 07:26:48 PM

Title: FTP upload does not overwrite
Post by: jonjorobb on July 03, 2009, 07:26:48 PM
Hi all,

Im currently not using the FTP upload for the simple reason that the .gif does not overwrite, but simply creates a .tmp file instead. every time it should upload, it creates another temp.

Any Ideas why?
Thanks,
Jonjo
Title: Re: FTP upload does not overwrite
Post by: nortonbeak on July 03, 2009, 07:52:20 PM
Mine seems to be working OK

http://homepage.ntlworld.com/gareth.hicks/Virtual%20Radar.htm (http://homepage.ntlworld.com/gareth.hicks/Virtual%20Radar.htm)
Title: Re: FTP upload does not overwrite
Post by: jonjorobb on July 03, 2009, 08:06:25 PM
I know most people have theres uploading fine, it seems to be just me :D
Title: Re: FTP upload does not overwrite
Post by: juangelb on July 03, 2009, 11:51:09 PM
Hi Jonjo Robb

It is likely an issue with the FTP server You are using.
Check with your service provider.

Best regards : Juan
Title: Re: FTP upload does not overwrite
Post by: drskeptical on July 04, 2009, 06:37:48 AM
Hi Jono
I had the same problem. It is with your ISP.
My ISP is Zen internet, in order to solve the problem I had to change over to a cpanel type arrangment wich then allows ftp uploads.
The basic system which I had would not allow automated ftp uploads. Why? I dont know.
All I know is that I had to change over my account to a cpanel and now all is well with the world. Just watch something come along and spoil it!

Andy
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 04, 2009, 06:44:28 AM
Jonjo Robb

Quote
Im currently not using the FTP upload for the simple reason that the .gif does not overwrite, but simply creates a .tmp file instead. every time it should upload, it creates another temp.

I am having the very same problem - I have been talking (Or should I say e-mailing) my ISP, all they tell me is "everything is fine there end" they say they have uploaded a gif file from explorer and that worked ok. they are not being very helpful i think.  When I get time I will investigate more, the way the webpage is written etc etc.

But for now I am having the same problem, you are not alone.

Cheers

Andy

Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 04, 2009, 06:47:12 AM
drskeptical

Did they say what cpanel was and can you tell me, is zen anygood as a ISP.

Could be looking for a new one in a month or so.

Andy
Title: Re: FTP upload does not overwrite
Post by: tarbat on July 04, 2009, 07:42:24 AM
A few of us are using gofreeserve.com successfully, so if you don't mind changing web-page providers, they're worthy a try - and free.

Just setup an account, and create a folder called something like "shot".  Then setup in Radarbox is straightforward - username/password/host, and folder path of htdocs/shot

Here's mine - http://www.tarbat.gofreeserve.com/radarbox.htm
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 04, 2009, 07:45:09 AM
Thanks Mate

Might give that a go, but would have been nice for it to go to my own site.

Andy
Title: Re: FTP upload does not overwrite
Post by: tarbat on July 04, 2009, 07:48:17 AM
Looking with Wireshark, RB appears to do the following:
STOR _200907040738.tmp
RNFR _200907040738.tmp
RNTO RadarBoxScreenShot.gif

So, if the RNTO doesn't work with your ISP, then you'll get all the TMP files.  You'll need to be uploading to a directory that has the correct permisions set for renaming as well.
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 04, 2009, 07:55:08 AM
tarbat

Thank you, will investigate.
Title: Re: FTP upload does not overwrite
Post by: tarbat on July 04, 2009, 07:56:18 AM
If you use Wireshark, you should be able to see what error message is returned by your ftp server when the rename fails.

My screenshots directory has the following permissions - rwxr-x--x
And the RadarBoxScreenShot.gif has permissions of rwxr-x---
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 04, 2009, 08:06:09 AM
thanks mate
Title: Re: FTP upload does not overwrite
Post by: jonjorobb on July 04, 2009, 12:06:46 PM
Thanks for all your replies, Will try out some of the above and get back to you :)

Thanks Again,
Jonjo
Title: Re: FTP upload does not overwrite
Post by: jonjorobb on July 04, 2009, 01:11:27 PM
I give up! no matter what I do, set file permissions, email my hosting for help (there not being very helpful) etc nothing seems to work :(
Title: Re: FTP upload does not overwrite
Post by: jgrloit on July 04, 2009, 02:45:27 PM
Jonjo -
    The system that Tarbet is using must be deleting the old file just prior to the renametp RNTO being actioned.
   You may also need to check that you have update permissions on the directory, if the SIP is using a Windows system, as you can have Read + Write but not update on Windows Systems.
   Can you manually FTP upload, and replace an existing file, or not??
   Can you delete files?      These questions may help sort the problem.
   There may ned to be some kind of RDEL added to the FTP script, just before the rename!!!
Title: Re: FTP upload does not overwrite
Post by: tarbat on July 04, 2009, 02:53:33 PM
Yes, I reckon the ftp script should probably be something like:
STOR _200907040738.tmp
DELE RadarBoxScreenShot.gif
RNFR _200907040738.tmp
RNTO RadarBoxScreenShot.gif

But so much depends on what each ftp server allows.  Some don't like you renaming a file to the same name as an existing file.
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 06, 2009, 11:30:55 AM
Yesterday I got a message back from my ISP, saying they had refreshed my account, what ever that means.

The upshot of all this is, my FTP seems to be working ok now.

Andy
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 06, 2009, 07:17:48 PM
Well I thought my FTP upload was working.

Its keeping running great for about 30 - 40 mins, then nothing.

I do believe there is a bug - I have emptied my radarbox folder on my FTP site and been watching it for about 30 mins and there is nothing being loaded there - which makes me think, is the RB sending the sceenshot after about 30 mins. Is there anyway of checking to see if the RB is sending the screenshot, maybe a port that can be checked.

Andy
Title: Re: FTP upload does not overwrite
Post by: tarbat on July 06, 2009, 08:04:02 PM
Check in the ANRB Temp folder - you should see 5-minutes worth of screenshots.

You should also see FTP messages appear every minute in the status bar at the bottom of the RB screen. - EDIT: v3.0 beta only.

And use Wireshark to see if ANRB is doing the FTP sends every minute.  You'll also be able to see any error messages returned by your FTP provider in Wireshark.
Title: Re: FTP upload does not overwrite
Post by: AirNav Support on July 06, 2009, 09:36:54 PM
Hi Andy,

Contact your website supplier as well incase they limit ftp connections after a certain amount of usage per day. The upload function is used by quite a few people and Heathrowcam and they haven't emailed us about such an issue but we will investigate it.
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 07, 2009, 09:20:06 AM
AirNav Support

I will try what tarbat has surgested and let you now my results. I have spoken to my ISP about this problem, hopefully with them, support and myself and tarbat we can sort it out.

tarbat
Is Wireshark easy to use, to get I assume I just google it.

Cheers

Andy
Title: Re: FTP upload does not overwrite
Post by: tarbat on July 07, 2009, 09:34:38 AM
Is Wireshark easy to use, to get I assume I just google it.

Not that easy, no, but take a look at http://www.wireshark.org/

If you don't want to try Wireshark, I'm happy test FTP upload to your ISP, but you'd have to divulge your FTP account details to me :(

First check is to see what messages, if any, appear in the status bar at the bottom of the RB screen.  You should see FTP started, success, etc. if you're running the v3.0 beta.
Title: Re: FTP upload does not overwrite
Post by: tarbat on July 07, 2009, 09:58:26 AM
Basic guide to using Wireshark:
- Download and install
- Start
- Start capture on your ethernet interface
- Setup a filter for source or destination = your FTP server (or just filter on FTP)
- Look at results

Example:
(http://farm4.static.flickr.com/3538/3697679108_ae640f83bc_o.jpg)
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 07, 2009, 11:25:16 AM
tarbat

Yes I have seen the FTP start, success on the status bar, but its not on a regular basis, think I have seen it when RB has just started, possibly a couple of times, but then I don't see it anymore.

At the present I am work, but I will be home about 15.30 - 16.00. I will PM you my FTP account details, then we can set a time for you to try.

Thanks for your help mate.

Andy
Title: Re: FTP upload does not overwrite
Post by: Harry on July 12, 2009, 10:19:26 AM
I'm also seem to have some problems with the FTP upload.
I do have my own webserver with a ftp server running. I was using SCWebcam without any problems. Using the buildin ftp upload I only see temp files being created (e.g. 200907121007.tmp). Those files are the size of 0.00 KB.

Harry
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 12, 2009, 11:18:20 AM
Harry

Just the same as I have been getting. Also when it is working There is also another problem - When you have something in front of the map ( say Mylog or screen saver), it shows this instead of the map - This is in the closed beta version.  AirNav do now about it.  If anyone want to see what I mean take a look at

http://www.absbta2006.co.uk/airnav_radarbox.htm

You will see my screen saver is covering the map.

Andy
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 12, 2009, 06:00:53 PM
Quote
Jonjo Robb


Quote
Im currently not using the FTP upload for the simple reason that the .gif does not overwrite, but simply creates a .tmp file instead. every time it should upload, it creates another temp.


I am having the very same problem - I have been talking (Or should I say e-mailing) my ISP, all they tell me is "everything is fine there end" they say they have uploaded a gif file from explorer and that worked ok. they are not being very helpful i think.  When I get time I will investigate more, the way the webpage is written etc etc.

But for now I am having the same problem, you are not alone.

Cheers

Andy

I have just been doing some testing with my laptop.  When using RB on my laptop, I am getting no Temp files being loaded into my Folder on my ISP server. This lead me to believe that there must be a problem with my main computer.

But I also think the RB ftp upload stops working after about 15 mins or so. I started the ftp upload at 17.00, on my website the latest shot is 17.15 and the time on my laptop is now 18.54. There is no Temp files in the folder on my server to stop it loading, I have also looked in the screenshots folder on my laptop and the last one in there is also 17.15.

Has anybody or can someone try and run there FTP for a extended time 20 - 30 mins to see if there is a problem there.

Cheers

Andy

Title: Re: FTP upload does not overwrite
Post by: tarbat on July 12, 2009, 06:11:16 PM
Has anybody or can someone try and run there FTP for a extended time 20 - 30 mins to see if there is a problem there.

I've run it for many hours without problems.  Maybe your FTP provider has an upload limit?

I'll leave it running again tonight.
Title: Re: FTP upload does not overwrite
Post by: tarbat on July 12, 2009, 06:16:39 PM
Andy, why not try an alternative ftp provider to see whether it's your PC/Radarbox setup or your ftp provider that's causing the problem.

I (and others) use gofreeserve.com successfully.

http://www.tarbat.gofreeserve.com/radarbox.htm
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 12, 2009, 06:21:41 PM
Thank you mate.

But, should it be loadeding a upto date one in the screen shots folder.

You now mate, I am just trying everything I can think of. I have been speaking to my ISP about the problem and they have never indicated they have a upload limit.  I have also been with this ISP about 6 to 7 years and never had a problem when I first had the RB.

I would try a alternative provider, but I am just trying to get it to work within my own website, which I may add was always working before. If I was to use a alternative provider the ftp upload would be away from my main site.

Andy
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 12, 2009, 06:40:49 PM
tarbat

if you look at your ftp now you are on facebook, covering your map.

Andy
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 12, 2009, 07:39:14 PM
tarbat

Thank you, I have been watching your site and you have proved your point.  I will now have to get onto my ISP.

Thank you again

Andy
Title: Re: FTP upload does not overwrite
Post by: tarbat on July 12, 2009, 08:19:31 PM
Yes, the wife decided to use Facebook :(

Anyway, it ran for 2 hours uploading fine.  I would say that on the previous ftp provider I used (Geocities I think), I used to get exactly the same problems.  It would upload for a while, then stop.  That was caused by an upload limit.

Just thought it might be worth trying an alternative provider to eliminate your PC setup from the problem.

Good luck!

EDIT: Previous thread about the problems I had with FTP to Geocities - http://www.airnavsystems.com/forum/index.php?topic=1414.msg16009#msg16009
Title: Re: FTP upload does not overwrite
Post by: jonjorobb on July 19, 2009, 07:57:01 AM
I've took your advice tarbat and I now have a fully working FTP upload with a site I have created with gofreeserve :) .

Thanks,
Jonjo
Title: Re: FTP upload does not overwrite
Post by: abrad41 on July 19, 2009, 08:00:03 AM
Jonjo Robb

I also took tarbat's advice and I now have a fully working FTP upload with gofreeserve.

www.absbta2009.co.uk

Andy
Title: Re: FTP upload does not overwrite
Post by: MHM on October 25, 2010, 03:45:59 PM
http://www.jonjorobb.gofreeserve.com/

Jonjo your link does not work,
Title: Re: FTP upload does not overwrite
Post by: Allocator on October 25, 2010, 10:53:21 PM
The link works fine for me - can't see any aircraft though at the moment, just the map.