Page 1 of 1

FTP error? **solved**

Posted: Sat Mar 29, 2008 4:54 pm
by obhwx
I am trying to set up Meteohub 2.2d to FTP graphs to a unix system for public access. When I configure the Push Services FTP Upload using settings identical to a tested FTP connection I get the following error:

Error on system call: /usr/bin/ncftpput -u obhwx -p lonetree -P 21 store.internal / /home/meteohub/meteohub-upload.test >/var/log/messages 2>/var/log/messages
Test file \"meteohub-upload.test\" has been uploaded.

Suggestions?

The cron generated graphs do get placed in the local /myweb/uploads folder and I can access them from there.
------------

update- I found that if I set the FTP upload to
web
the test message properly gets placed on the web server, but the upload files do NOT. If I place the \"/\" (web/) as indicated in the manual section 2.10 then I get the error message again and the test message no longer uploads.

Re:FTP error?

Posted: Sat Mar 29, 2008 7:51 pm
by obhwx
After I renamed the templates the FTP uploads started working. I could see the connections to the FTP server every ten minutes (as scheduled) prior to that, but nothing had been uploading.

I also found that if I set the graph routine to look back to data points that did not exist it would fail rather than just working with the data that is available. That is going to make it diffucult to set up annual graphs.

Any solution to that issue?

Re:FTP error?

Posted: Thu Apr 03, 2008 8:18 pm
by spee
Quite similar problem here:

get this erromassage:

Error on system call: /usr/bin/ncftpput -u username -p password -P 21 homepage.bluewin.ch web /home/meteohub/meteohub-upload.test >/var/log/messages 2>/var/log/messages
Testdatei \"meteohub-upload.test\" wurde hochgeladen

I tried with and without \"/\" with and without directory... Anyone any idea what could be wrong... FTP-acces works fine from a PC with explorer or ftp dos client. I dont know if the port is 21 but I think yes i could access the server without mention any port. Firewall issue is very unlikely.

anyone any idea?

Cheers

Chris

Re:FTP error?

Posted: Thu Apr 03, 2008 8:58 pm
by spee
Update

tried to connect with putty to meteohub and performed on the meteohub server the command and it wors just fine... strange..

but I get still an errormessage whe I try the save test button... hmm?

Update to the update... The cronjob works just fine I get the content uploaded the only confusing thing was, is that if you press the save test button you will get an error message...

Problaby a bug...

Cheers

Chris

Re:FTP error?

Posted: Sat Apr 05, 2008 10:26 pm
by admin
Hi,
there is a bug in the error handling code. When ftp upload goes fine it returns no message on the screen. When upload fails it displays a red error message and a green \"upload ok\" message. I don't know if this a new behavior since 2.1.

However this just impacts how to deal with errors.

Are there still problems in getting files uploaded via ftp? Just checked this again and it works ok in my 2.2d installation.

Re:FTP error?

Posted: Sun Apr 06, 2008 2:09 pm
by spee
Upload Data works well. I can't upload the test file throug the test button and I get the red errormessage, but when I copy paste the command and do that direct on the server I can upload the message without any problen and eroor message.

So it was a bit hard to get running the ftp upload with the confusing error messages, that all.

Thanks for your help!

Cheers

Chris