FTP error? **solved**

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
obhwx
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: Fri Mar 28, 2008 6:07 am

FTP error? **solved**

Post 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.
obhwx
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: Fri Mar 28, 2008 6:07 am

Re:FTP error?

Post 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?
spee
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Thu Apr 03, 2008 4:29 pm

Re:FTP error?

Post 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
spee
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Thu Apr 03, 2008 4:29 pm

Re:FTP error?

Post 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
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re:FTP error?

Post 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.
spee
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Thu Apr 03, 2008 4:29 pm

Re:FTP error?

Post 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
Post Reply