FTP upload does not work [solved]

Discussion of the Meteohub software package

Moderator: Mattk

ZebraWetter
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sun Aug 14, 2011 11:44 am
Location: Duisburg/northrhine-westfalia/germany/earth/sol system

FTP upload does not work [solved]

Post 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
Last edited by ZebraWetter on Thu May 03, 2012 6:11 am, edited 1 time in total.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: FTP upload does not work

Post by admin »

i did not check this intensively on the dc01 port. i will try with my test system and report here.
ZebraWetter
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sun Aug 14, 2011 11:44 am
Location: Duisburg/northrhine-westfalia/germany/earth/sol system

Re: FTP upload does not work

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

Re: FTP upload does not work

Post by admin »

please check again, that can hardly be true. otherwise nearly all userss ftp uploads would fail. :lol:
ZebraWetter
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sun Aug 14, 2011 11:44 am
Location: Duisburg/northrhine-westfalia/germany/earth/sol system

Re: FTP upload does not work

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

Re: FTP upload does not work

Post 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.
ZebraWetter
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sun Aug 14, 2011 11:44 am
Location: Duisburg/northrhine-westfalia/germany/earth/sol system

Re: FTP upload does not work

Post 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.
Attachments
push services
push services
email_ftp.jpg (44.74 KiB) Viewed 12186 times
cgn
Expert Boarder
Expert Boarder
Posts: 91
Joined: Fri Jan 15, 2010 10:54 pm
Location: cgn

Re: FTP upload does not work

Post 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).
ZebraWetter
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sun Aug 14, 2011 11:44 am
Location: Duisburg/northrhine-westfalia/germany/earth/sol system

Re: FTP upload does not work

Post by ZebraWetter »

FTP does not work, eMail does! :wink:
cgn
Expert Boarder
Expert Boarder
Posts: 91
Joined: Fri Jan 15, 2010 10:54 pm
Location: cgn

Re: FTP upload does not work

Post 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.
User avatar
wvdkuil
Platinum Boarder
Platinum Boarder
Posts: 604
Joined: Sun Jul 24, 2011 8:00 pm
Location: Belgium
Contact:

Re: FTP upload does not work

Post 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.
ZebraWetter
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sun Aug 14, 2011 11:44 am
Location: Duisburg/northrhine-westfalia/germany/earth/sol system

Re: FTP upload does not work

Post 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!)
User avatar
wvdkuil
Platinum Boarder
Platinum Boarder
Posts: 604
Joined: Sun Jul 24, 2011 8:00 pm
Location: Belgium
Contact:

Re: FTP upload does not work

Post 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.
Attachments
myweb.jpg
myweb.jpg (65.13 KiB) Viewed 12118 times
User avatar
wvdkuil
Platinum Boarder
Platinum Boarder
Posts: 604
Joined: Sun Jul 24, 2011 8:00 pm
Location: Belgium
Contact:

Re: FTP upload does not work

Post 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.
Attachments
grabmeteohub.jpg
grabmeteohub.jpg (27.42 KiB) Viewed 12091 times
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: FTP upload does not work

Post by admin »

recursive myweb folder is a bug, which will be removed by the next update.
Post Reply