Page 1 of 1

Real time updating

Posted: Fri 12 Jun 2009 8:51 pm
by Joe Curtis
I have successfully installed the cumulus web site http://www.craythorneweather.info on my own linux based server located at my home. I seem to be unable to get the real time update working. I can ftp the realtime.txt file to the site without a problem but it refuses to update automatically. I would be grateful for any pointers to where I could look for a solution.

Re: Real time updating

Posted: Sat 13 Jun 2009 7:52 am
by steve
Joe, if you turn on ftp logging, the realtimeftplog.txt should show the problem - attach it here if you need help with them. Are yiou sure you've specified the path (directory) correctly in the ftp settings?

Re: Real time updating

Posted: Sat 13 Jun 2009 9:18 am
by Joe Curtis
This is the puzzling part!
The log shows:-
21:41:58:062 ! HighLevelAsync 0
21:41:58:062 TWSocket will connect to 192.168.1.103:65014
21:41:58:062 ! Data Session opened (Put)
21:41:58:062 01009D20 TriggerDataSent 824
21:41:58:062 01009610 TriggerDataSent 816
21:41:58:062 >|550 /var/www/http/weather/realtime.txt: No such file or directory|

There is a file there, it's where I FTP it to, although there is a similar error message in my manual FTP transfer (see attached log file) but the ftp transfer actually works. I suspect the error message is because it is already in the target directory and doesn't/can't need to change to it again. Maybe this is what is happening with the cumulus transfer?

The normal update works fine

Logging in to 192.168.1.103
Changing directory to /var/www/http/weather
Uploading standard files
Sending html pages
Changing directory to images
Sending graph files
Logging out

Re: Real time updating

Posted: Sat 13 Jun 2009 9:35 am
by steve
I see you have your ftp login set up to go to /var/www/http/weather/ at login, and you're getting the error:

550 /var/www/http/weather/: No such file or directory

So I guess that path really is incorrect. I don't really know what to say, as it's clearly not specific to Cumulus; you need to work out what your ftp server actually requires (maybe try leaving out the initial / ?).

The trace you've shown from the ftp window for the normal upload can be misleading; it never shows any errors. To see those you need to look at ftplog.txt.

Edit: Actually - having both 'www' and 'http' in the path seems a bit odd to me - are you sure that's right?

Re: Real time updating

Posted: Sat 13 Jun 2009 12:27 pm
by GTB
Hi Joe

is your cumulus program on the same machine ? (server)

if so - copy files directly to your web folder and don't worry about ftp

geoff

Re: Real time updating

Posted: Sat 13 Jun 2009 2:58 pm
by Joe Curtis
Geoff - they are on different machines. Cumulus doesn't work on linux.

Steve

/var/www/httpd/weather as an address is not unusual in a linux environment.

My guess is that it is a permissions issue. the error message might not be that accurate in what it is describing.

The normal FTP log (attached) shows the same error but the site is being updated every 15 mins so the FTP transfers are working.

I will continue to dig till I find the problem

Re: Real time updating

Posted: Sat 13 Jun 2009 3:22 pm
by steve
Joe Curtis wrote:/var/www/httpd/weather as an address is not unusual in a linux environment.
/var/www/httpd/weather or /var/www/http/weather - which one is the typo?

Re: Real time updating

Posted: Sat 13 Jun 2009 3:43 pm
by Joe Curtis
Well spotted!! Both are typo's. Should be /var/www/html/weather.

It says something for the linux ftp server (Proftpd) that it gets some of the data to the right place even when the address is wrong.

Many thanks.

Re: Real time updating

Posted: Sat 13 Jun 2009 5:38 pm
by beteljuice
Hmm ...

You now have realtime.txt, but its timestamp id: 13/06/09 10:10:30 ...
but your pages say: 18:25 :?

Re: Real time updating

Posted: Sun 14 Jun 2009 8:10 pm
by Joe Curtis
Steve
As a final word on my problem, in case anyone else should encounter it, the fault was not a typo in the target directory but the directory itself. PROFTPD, the FTP server I am using on the linux machine, does not require a target directory from the FTP client, it gets this from the data set up when installing an FTP user on the server. Removing the directory from the cumulus parameters was the solution and would explain why the 15min update was working even with a typo in the parameters.