FTP Timeout

33 views
Skip to first unread message

Karen K

unread,
Dec 30, 2020, 11:17:44 AM12/30/20
to weewx-user
It worked beforehand and afterwards, but for about half an hour I got the log messages shown below every archive interval. I opened the website, and it opened very very slow. So I suspected a problem at the provider's end and waited. Some time later the website loaded fast again, and the same instand, the FTP upload was successful again. So I guess the exception that FTP runs into a timout is not handled.

(As you see I live in a rural area of Germany, and Internet is unreliable there.)

Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'socket.timeout'>': timed out
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** Traceback (most recent call last):
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** n = ftp_data.run()
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/share/weewx/weeutil/ftpupload.py", line 128, in run
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** ftp_server.login(self.user, self.password)
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 403, in login
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** resp = self.sendcmd('PASS ' + passwd)
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 275, in sendcmd
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** return self.getresp()
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 238, in getresp
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** resp = self.getmultiline()
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 224, in getmultiline
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** line = self.getline()
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 206, in getline
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** line = self.file.readline(self.maxline + 1)
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/socket.py", line 669, in readinto
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** return self._sock.recv_into(b)
Dec 30 16:55:41 LokalWiki weewx[108470] ERROR weewx.reportengine: **** socket.timeout: timed out
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: ftpgenerator: (1): caught exception '<class 'socket.timeout'>': timed out
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** Traceback (most recent call last):
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** n = ftp_data.run()
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/share/weewx/weeutil/ftpupload.py", line 128, in run
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** ftp_server.login(self.user, self.password)
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 403, in login
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** resp = self.sendcmd('PASS ' + passwd)
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 275, in sendcmd
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** return self.getresp()
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 238, in getresp
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** resp = self.getmultiline()
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 224, in getmultiline
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** line = self.getline()
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 206, in getline
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** line = self.file.readline(self.maxline + 1)
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/socket.py", line 669, in readinto
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** return self._sock.recv_into(b)
Dec 30 16:56:01 LokalWiki weewx[108470] ERROR weewx.reportengine: **** socket.timeout: timed out
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: ftpgenerator: (2): caught exception '<class 'socket.timeout'>': timed out
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** Traceback (most recent call last):
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** n = ftp_data.run()
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/share/weewx/weeutil/ftpupload.py", line 128, in run
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** ftp_server.login(self.user, self.password)
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 403, in login
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** resp = self.sendcmd('PASS ' + passwd)
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 275, in sendcmd
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** return self.getresp()
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 238, in getresp
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** resp = self.getmultiline()
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 224, in getmultiline
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** line = self.getline()
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/ftplib.py", line 206, in getline
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** line = self.file.readline(self.maxline + 1)
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** File "/usr/lib/python3.8/socket.py", line 669, in readinto
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** return self._sock.recv_into(b)
Dec 30 16:56:21 LokalWiki weewx[108470] ERROR weewx.reportengine: **** socket.timeout: timed out 




airbo...@gmx.de

unread,
Dec 30, 2020, 11:32:22 AM12/30/20
to weewx-user
Hallo Karen.

Prüf doch mal, ob Dein Provider überhaupt noch FTP zulässt.
Auch ich hatte vor Kurzem zumindest ein ähnliches Problem: dabei war es mir plötzlich nicht mehr möglich die Dateien turnusmäßig auf meine webseite hoch zuladen. Grund: Der Provider (Strato) hat 'FTP' aufgekündigt, bzw. abgeschaltet und arbeitet nun ausschließlich nur noch mit dem sicheren SFTP. Das kann aber WeeWX erst einmal nicht. Dazu mußt du zuvor noch eine Erweiterungen und ein Python-Updates installieren.
Aber vielleicht hilft Dir das hier schon weiter.
Gruß
Bodo

Karen K

unread,
Dec 30, 2020, 2:05:14 PM12/30/20
to weewx-user
Inzwischen geht es wieder. Es hat wirklich nur eine halbe Stunde lang ausgesetzt. Und anstelle einer einzelnen Fehlermeldung hat es diese lange Liste gegeben. 

Meanwhile it works again. 
Reply all
Reply to author
Forward
0 new messages