ftp uppload error

163 views
Skip to first unread message

simon spaleck

unread,
Aug 23, 2014, 2:29:13 AM8/23/14
to weewx...@googlegroups.com
hello,

i have installed weewx 2.6.4 on my raspberry. the local file creation done fine. but the ftp upload work not complet. some files dosent upload to my server. my server is a synology diskstation.
the upload with wview to the server from a other raspberry works without problems.

see here (syslog)
Aug 23 08:09:01 raspberrypi /USR/SBIN/CRON[5152]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete)
Aug 23 08:10:14 raspberrypi weewx[5117]: archive: added record 2014-08-23 08:10:00 CEST (1408774200) to database 'weewx.sdb'; table 'archive'
Aug 23 08:10:17 raspberrypi weewx[5117]: genimages: Generated 6 images for SmallImages in 2.58 seconds
Aug 23 08:10:21 raspberrypi weewx[5117]: genimages: Generated 6 images for BigImages in 4.03 seconds
Aug 23 08:10:23 raspberrypi weewx[5117]: GaugeGenerator: Generated 6 images for HTMLPages in 1.04 seconds
Aug 23 08:10:25 raspberrypi weewx[5117]: cheetahgenerator: generated 1 'SummaryByMonth' files for HTMLPages in 1.78 seconds
Aug 23 08:10:31 raspberrypi weewx[5117]: cheetahgenerator: generated 2 'SummaryByYear' files for HTMLPages in 6.86 seconds
Aug 23 08:10:33 raspberrypi weewx[5117]: cheetahgenerator: generated 8 'ToDate' files for HTMLPages in 1.58 seconds
Aug 23 08:10:34 raspberrypi weewx[5117]: ftpupload: attempt #1. Failed uploading /web/weewx/month.html to xxxx.myds.me. Reason: [Errno 111] Verbindungsaufbau abgelehnt
Aug 23 08:10:34 raspberrypi weewx[5117]: ftpupload: attempt #2. Failed uploading /web/weewx/month.html to xxxx.myds.me. Reason: [Errno 111] Verbindungsaufbau abgelehnt
Aug 23 08:10:34 raspberrypi weewx[5117]: ftpupload: attempt #3. Failed uploading /web/weewx/month.html to xxxx.myds.me. Reason: [Errno 111] Verbindungsaufbau abgelehnt
Aug 23 08:10:34 raspberrypi weewx[5117]: ftpupload: Failed to upload file /web/weewx/month.html


when in plug the raspberry into my localnetwork where the synology is it works without fails.

when i serach for this problem i cant find enithing.

thankyou for your help,

Andrew Milner

unread,
Aug 23, 2014, 5:04:58 AM8/23/14
to weewx...@googlegroups.com
Check, recheck and check again that you have entered your ftp credentials correctly in weewx.conf.

Does the ftp upload work if the ftp commands are given manually on the RPi - entering the same information specified in weewx.conf?

simon spaleck

unread,
Aug 23, 2014, 6:37:48 AM8/23/14
to weewx...@googlegroups.com
Hello,

thank you Aandrew for your answer.

i have check the weewx.conf. the information like user, password, server and path are correct.

from the 26 files 5 can be upload without error.
the other have the error : Aug 23 08:10:34 raspberrypi weewx[5117]: ftpupload: attempt #1. Failed uploading /web/weewx/month.html to xxxx.myds.me. Reason: [Errno 111] Verbindungsaufbau abgelehnt

i dont`t understanf this. some files are ok other not. :-(



Andrew Milner

unread,
Aug 23, 2014, 6:49:24 AM8/23/14
to weewx...@googlegroups.com
I see you are still doing the FTP upload using weewx.

What happens when you try and upload the 26 files manually by giving FTP commands??  Until you can upload all files manually without any problems you can't expect weewx to succeed.







--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/PY0rMxNTuKY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Milner

unread,
Aug 23, 2014, 6:59:54 AM8/23/14
to weewx...@googlegroups.com
Synology website support says that if ftp connections are refused (I think the german error message translates to connection refused) - to change from passive to active ftp or vice versa.  Have you tried setting ftp in weewx.conf to the 'other' type to see what happens?  Also try a larger number of retries perhaps.

You may also be generating a lot of noise on the poor RPi usb/network bus - so make sure that all cabling is routed well away from interference sources such as monitors, computers, power supplies etc etc - especially if you say you have another Pi communicating without problems.

Do try and do the transfers manually with ftp though - since if that fails then weewx will almost definitely also fail.

To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.

Thomas Keffer

unread,
Aug 23, 2014, 10:20:52 AM8/23/14
to weewx-user
In addition to the good suggestions Andrew offered (especially trying active mode), also check to see if there is anything unusual about the ownership or permissions of the files that fail. Check on both your RPi, and on the FTP server.

-tk


--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

simon spaleck

unread,
Aug 24, 2014, 5:40:39 AM8/24/14
to weewx...@googlegroups.com
Hello @ all

thank you for your support. i habe test it with out any changes from a mobile network. the problem exists no longer. i have additionaly reebot the synology nas.
i`m not able to say if the nas was the probleme.
next day when i`m at home, i test it again in my locale networt.
one probleme can also be, the tracback when i`m give weewx the synology ddns adress from my locale network.

thank you all :-.)
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages