Timeout during FTP upload.......

231 views
Skip to first unread message

Joe

unread,
Apr 28, 2015, 11:37:21 AM4/28/15
to weewx...@googlegroups.com
from var/log/message:

Apr 28 10:30:29 raspberrypi weewx[2170]: genimages: Generated 12 images for StandardReport in 4.21 seconds
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****  Traceback (most recent call last):
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 214, in run
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****      N = ftpData.run()
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 95, in run
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****      ftp_server.login(self.user, self.password)
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 385, in login
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****      if resp[0] == '3': resp = self.sendcmd('PASS ' + passwd)
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 244, in sendcmd
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****      return self.getresp()
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 210, in getresp
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****      resp = self.getmultiline()
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 196, in getmultiline
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****      line = self.getline()
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 183, in getline
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****      line = self.file.readline()
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/socket.py", line 447, in readline
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****      data = self._sock.recv(self._rbufsize)
Apr 28 10:31:09 raspberrypi weewx[2170]:         ****  timeout: timed out
Apr 28 10:35:16 raspberrypi weewx[2170]: manager: added record 2015-04-28 10:30:00 CDT (1430235000) to database '/var/lib/weewx/weewx.sdb'
Apr 28 10:35:16 raspberrypi weewx[2170]: manager: added record 2015-04-28 10:30:00 CDT (1430235000) to daily summary in '/var/lib/weewx/weewx.sdb'
Apr 28 10:35:16 raspberrypi weewx[2170]: restx: PWSWeather: Published record 2015-04-28 10:30:00 CDT (1430235000)
Apr 28 10:35:25 raspberrypi weewx[2170]: cheetahgenerator: Generated 14 files for report StandardReport in 8.31 seconds
Apr 28 10:35:29 raspberrypi weewx[2170]: genimages: Generated 12 images for StandardReport in 4.22 seconds
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****  Traceback (most recent call last):
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 214, in run
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      N = ftpData.run()
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 95, in run
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      ftp_server.login(self.user, self.password)
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 385, in login
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      if resp[0] == '3': resp = self.sendcmd('PASS ' + passwd)
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 244, in sendcmd
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      return self.getresp()
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 210, in getresp
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      resp = self.getmultiline()
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 196, in getmultiline
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      line = self.getline()
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 183, in getline
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      line = self.file.readline()
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/socket.py", line 447, in readline
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      data = self._sock.recv(self._rbufsize)
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****  timeout: timed out

Chip Cuccio

unread,
Apr 28, 2015, 11:39:29 AM4/28/15
to weewx...@googlegroups.com

> On Apr 28, 2015, at 10:37 AM, Joe <my.droid....@gmail.com> wrote:
>
> from var/log/message:
>
> Apr 28 10:36:08 raspberrypi weewx[2170]: **** timeout: timed out


Have you tried manually FTP’ing into your server?

Joe

unread,
Apr 28, 2015, 11:40:55 AM4/28/15
to weewx...@googlegroups.com
From var/log/syslog

Apr 28 10:35:29 raspberrypi weewx[2170]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
Apr 28 10:35:29 raspberrypi weewx[2170]: ftpupload: Attempting connection to ftp.XXXXXX 
Apr 28 10:36:08 raspberrypi weewx[2170]: reportengine: Caught exception <class 'socket.timeout'> in FtpGenerator; timed out.
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****  Traceback (most recent call last):
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 214, in run
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      N = ftpData.run()
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 95, in run
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      ftp_server.login(self.user, self.password)
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 385, in login
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      if resp[0] == '3': resp = self.sendcmd('PASS ' + passwd)
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 244, in sendcmd
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      return self.getresp()
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 210, in getresp
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      resp = self.getmultiline()
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 196, in getmultiline
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      line = self.getline()
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/ftplib.py", line 183, in getline
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      line = self.file.readline()
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****    File "/usr/lib/python2.7/socket.py", line 447, in readline
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****      data = self._sock.recv(self._rbufsize)
Apr 28 10:36:08 raspberrypi weewx[2170]:         ****  timeout: timed out
Apr 28 10:36:08 raspberrypi weewx[2170]: reportengine: Running report RSYNC
Apr 28 10:36:08 raspberrypi weewx[2170]: reportengine: Found configuration file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
Apr 28 10:36:08 raspberrypi weewx[2170]: reportengine: rsync upload not requested. Skipped.
Apr 28 10:39:01 raspberrypi /USR/SBIN/CRON[2300]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))

Joe

unread,
Apr 28, 2015, 11:42:55 AM4/28/15
to weewx...@googlegroups.com
I saw this in another thread::::::::;  

Bob, you don't prefix the protocol, the ftp engine knows what protocol to use, so you just list the server name and the directory they told you to place your files in, here's what mine looks like:  

        user = <snip>
        password = <snip>
        server =  ftp.byethost.com
        path = /htdocs





----------I will try it without the FTP designation and see if it works.  It's funny because this has been working since I installed the weather station from the start, until now!

Weird ;)

Joe

unread,
Apr 28, 2015, 11:52:41 AM4/28/15
to weewx...@googlegroups.com
Still doing it:

Apr 28 10:50:49 raspberrypi weewx[2175]: ftpupload: Attempting connection to XXXXX
Apr 28 10:51:29 raspberrypi weewx[2175]: reportengine: Caught exception <class 'socket.timeout'> in FtpGenerator; timed out.
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****  Traceback (most recent call last):
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 214, in run
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****      N = ftpData.run()
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 95, in run
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****      ftp_server.login(self.user, self.password)
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****    File "/usr/lib/python2.7/ftplib.py", line 385, in login
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****      if resp[0] == '3': resp = self.sendcmd('PASS ' + passwd)
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****    File "/usr/lib/python2.7/ftplib.py", line 244, in sendcmd
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****      return self.getresp()
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****    File "/usr/lib/python2.7/ftplib.py", line 210, in getresp
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****      resp = self.getmultiline()
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****    File "/usr/lib/python2.7/ftplib.py", line 196, in getmultiline
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****      line = self.getline()
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****    File "/usr/lib/python2.7/ftplib.py", line 183, in getline
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****      line = self.file.readline()
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****    File "/usr/lib/python2.7/socket.py", line 447, in readline
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****      data = self._sock.recv(self._rbufsize)
Apr 28 10:51:29 raspberrypi weewx[2175]:         ****  timeout: timed out
Apr 28 10:51:29 raspberrypi weewx[2175]: reportengine: Running report RSYNC
Apr 28 10:51:29 raspberrypi weewx[2175]: reportengine: Found configuration file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
Apr 28 10:51:29 raspberrypi weewx[2175]: reportengine: rsync upload not requested. Skipped.

Thomas Keffer

unread,
Apr 28, 2015, 11:54:00 AM4/28/15
to weewx-user
Joe, we're not going to learn much from this. Have you followed Chip's suggestion and tried a manual log in?

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joe

unread,
Apr 28, 2015, 12:08:58 PM4/28/15
to weewx...@googlegroups.com

That was the next thing. Looks like FTP is down at my hosting............Its denying me. 

Joe

unread,
Apr 28, 2015, 12:48:33 PM4/28/15
to weewx...@googlegroups.com
So suddenly, my hosting decides to un block my FTP attempts...............All is well.

Hey I still appreciate the responses I get one here, even if its just. HEY DID YOU CHECK XXXX :)
Reply all
Reply to author
Forward
0 new messages