Page 1 of 2

FTP upload does not work [solved]

Posted: Thu Apr 12, 2012 6:39 am
by ZebraWetter
Hi there!

I have a strange problem with the FTP upload on my new DC01. It does not run any more.
By clicking on save & test the meteohub server (4.9f (Build 1038)) seems to work for a few seconds and ends up with a blank page. Nothing is transfered, no new ftp credentials a saved.
There is no logfile which tells anything.:-(

Any suggestions?

Thanks, Andre

Re: FTP upload does not work

Posted: Sat Apr 14, 2012 10:48 am
by admin
i did not check this intensively on the dc01 port. i will try with my test system and report here.

Re: FTP upload does not work

Posted: Sun Apr 15, 2012 1:45 pm
by ZebraWetter
I've found, that meteohub tries to establish a FTP connection as "anonymous" although the FTP credentials are set and the anonymous login is not set!
Is there a way to set it manually (as a temporarily workaround)?

Re: FTP upload does not work

Posted: Sun Apr 15, 2012 8:32 pm
by admin
please check again, that can hardly be true. otherwise nearly all userss ftp uploads would fail. :lol:

Re: FTP upload does not work

Posted: Mon Apr 16, 2012 4:48 pm
by ZebraWetter
The paths /var/run/meteohub and /var/run/meteohub/uploads are missing on my DC01
(log: FTP-Hochladen fehlgeschlagen: mv /var/run/meteohub/forecast00.png /var/run/meteohub/uploads/forecast0.png )

After manually creating them the messages in the alert.log disappeared but ftp upload does not work.

The FTP credentials are set and ftp upload is enabled.
The following log is from the auth daemon on my server to which the data should be uploaded.

Code: Select all

Apr 16 16:42:26 SERVER proftpd[17546]: 188.xx.xx.xx (87.143.xx.xx[87.143.xx.xx]) - USER anonymous: no such user found from 87.143.xx.xx [87.143.xx.xx] to 188.40.xx.xx:21                                                                
Apr 16 16:42:26 SERVER proftpd[17546]: 188.40.xx.xx (87.143.xx.xx[87.143.xx.xx]) - FTP session closed. 
Meteohub seems to try to upload as an anonymous user!? (188.... is the server ip and 87.... my dynamic home ip.)

The ftp credetials can be found in /home/meteohub/meteohub.conf. This file looks a little bit cryptical or binary, is this correct or should it be an ascii file?

Re: FTP upload does not work

Posted: Mon Apr 16, 2012 7:27 pm
by admin
it is very strange that the paths are not there. does an update to 4.9g and reboot fix this?
could you please provide a screen dump of your "psh services" meteohub page.

Re: FTP upload does not work

Posted: Tue Apr 17, 2012 4:09 pm
by ZebraWetter
Here it is ...

It set anonymous upload, saved, unset anonymous upload and saved again, just to rewrite the config, but it won't work.

Re: FTP upload does not work

Posted: Wed Apr 18, 2012 12:47 pm
by cgn
"Benutzername" and "Zieladresse" seem to be the same in your settings (same length).
Usually "Benutzername" is "Vorname.Nachname" and "Zieladresse" is "Vorname.Nachname@Provider.de"
It's the same as the settings in your email-program.
"Absenderadresse" is "root@meteohub" (in my settings).

Re: FTP upload does not work

Posted: Wed Apr 18, 2012 4:08 pm
by ZebraWetter
FTP does not work, eMail does! :wink:

Re: FTP upload does not work

Posted: Wed Apr 18, 2012 6:55 pm
by cgn
Sorry, I should read it better. :oops:

Is it possible, that you have to use a subfolder?
For my webspace I have to select "/html/" for uploading to the root of the webspace.

Re: FTP upload does not work

Posted: Wed Apr 18, 2012 8:32 pm
by wvdkuil
Did you try to ftp from a pc with the exact same values? Only when i tried it with copy paste i found my typo- error.

Re: FTP upload does not work

Posted: Thu Apr 19, 2012 6:27 am
by ZebraWetter
This is the first thing to try when something wents wrong with credentials.
But for the case, password or username would be wrong, the ftp server's log would show an authentication error. Instead of that it shows that meteohub tries to log in as anonymous. (And please see, the hooklet is not set!)

Re: FTP upload does not work

Posted: Fri Apr 20, 2012 6:31 pm
by wvdkuil
Exactly the same problem with my new DC01. Using 4.9f or g makes no difference. Saved my credentials first, hit save & test and got a white page.
So far the same.

But looking in the /data/ folders:
The file to be uploaded (as set in "Graph Uploads") arrives in the /data/uploads/ folder
AND in the /data/myweb/uploads folder every so many minutes.

But than the whole /data/myweb/ is duplicated inside the my webs folder.

I made a screenshot to explain.

Do not know what is happening, but my big disk will be filled up very soon.

I deactivated ftp-upload (SPS page checkbox) and removed Graph uploads but still new myweb and upload folders are created. Now with only the lastto-be- uploaded file. Now the system reboots but there are so many myweb folders that it will take some time to see of the creation of new ones has stopped.

Re: FTP upload does not work

Posted: Wed Apr 25, 2012 9:19 am
by wvdkuil
Still no solution by anybody for our FTP upload?

I switched weatherstation from listen to old meteohub poort 5500 to direct ip adres of ip-logger, reboot DC01. Still the same.


I made a new screencapture. You can see the uploads folder it is a shortcut not a real folder. When you click on the uploads folder in data one gets an error message that the folder does not exist (at least for a mac).

The logfile says (many times, 3 messages per upload):
2012.04.20 17:58:13 meteohub: upload: FTP Upload failed: cp /var/run/meteohub/all-sensors0.txt /var/run/meteohub/perm/allsensors.php
2012.04.20 17:58:19 meteohub: upload: FTP Upload failed: cp /var/run/meteohub/all-sensors0.txt /data/myweb/uploads/allsensors.php
2012.04.20 17:58:19 meteohub: upload: FTP Upload failed: mv /var/run/meteohub/all-sensors0.txt /var/run/meteohub/uploads/allsensors.php

I will try to reformat the disc this afternoon and start over again from scratch, although i can not imagine what will be different.

Re: FTP upload does not work

Posted: Sun Apr 29, 2012 1:26 pm
by admin
recursive myweb folder is a bug, which will be removed by the next update.