FTP upload to server suddenly stopped

61 views
Skip to first unread message

bgra...@umw.edu

unread,
Dec 9, 2023, 1:35:01 AM12/9/23
to weewx-user
Hello,
My weewx 4.10.2 with python 3.10.12 seems to be running fine but stopped FTPing files to the server on godaddy.com. I only noticed this today as I usually just look at the local weewx computer. Upload is to grattans.org/wx
I uploaded some files with filezilla today so I'm sure the password hasn't changes.
Below are some sections of the log. I can send more if needed.  Thanks in advance.
Bob
================================
from weewx.conf
================================
 [[FTP]]
        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        skin = Ftp

        # Set to True for a secure FTP (SFTP) connection. Not all servers
        # support this.
        secure_ftp = False    #True

        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        #HTML_ROOT = public_html

        # Most FTP servers use port 21
        port = 21

        # Set to 1 to use passive mode, zero for active mode
        passive = 1

        # If you wish to use FTP, uncomment and fill out the next four lines.
        user = *****    
        password = *****
        server = grattans.org

        path = /public_html/weewx    #/weewx
======================================================
FTP suddenly stops
======================================================
Dec  6 09:45:39 n4mrv weewx[389284] INFO weewx.reportengine: ftpgenerator: Ftp'd 72 files in 20.90 seconds
Dec  6 10:00:42 n4mrv weewx[389284] INFO weewx.reportengine: ftpgenerator: Ftp'd 85 files in 23.63 seconds
Dec  6 10:15:39 n4mrv weewx[389284] INFO weewx.reportengine: ftpgenerator: Ftp'd 71 files in 21.36 seconds
Dec  6 10:30:38 n4mrv weewx[389284] INFO weewx.reportengine: ftpgenerator: Ftp'd 72 files in 20.38 seconds
Dec  6 10:45:39 n4mrv weewx[389284] INFO weewx.reportengine: ftpgenerator: Ftp'd 72 files in 20.51 seconds
Dec  6 11:00:43 n4mrv weewx[389284] INFO weewx.reportengine: ftpgenerator: Ftp'd 85 files in 24.66 seconds
Dec  6 11:15:30 n4mrv weewx[389284] ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'socket.gaierror'>': [Errno -3] Temporary failure in name resolution
Dec  6 11:15:30 n4mrv weewx[389284] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec  6 11:15:30 n4mrv weewx[389284] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeutil/ftpupload.py", line 175, in run
Dec  6 11:15:30 n4mrv weewx[389284] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec  6 11:15:30 n4mrv weewx[389284] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.10/ftplib.py", line 158, in connect
Dec  6 11:15:42 n4mrv weewx[389284] ERROR weewx.reportengine: ftpgenerator: (1): caught exception '<class 'socket.gaierror'>': [Errno -3] Temporary failure in name resolution
Dec  6 11:15:42 n4mrv weewx[389284] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec  6 11:15:42 n4mrv weewx[389284] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeutil/ftpupload.py", line 175, in run
Dec  6 11:15:42 n4mrv weewx[389284] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec  6 11:15:42 n4mrv weewx[389284] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.10/ftplib.py", line 158, in connect
Dec  6 11:15:54 n4mrv weewx[389284] ERROR weewx.reportengine: ftpgenerator: (2): caught exception '<class 'socket.gaierror'>': [Errno -3] Temporary failure in name resolution
more 
===============================================================
latest log section with debug=1
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Dec  7 05:30:35 n4mrv weewx[1152] ERROR weewx.reportengine: ftpgenerator: (2): caught exception '<class 'socket.gaierror'>': [Errno -3] Temporary failure in name resolution
Dec  7 05:30:35 n4mrv weewx[1152] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec  7 05:30:35 n4mrv weewx[1152] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeutil/ftpupload.py", line 175, in run
Dec  7 05:30:35 n4mrv weewx[1152] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec  7 05:30:35 n4mrv weewx[1152] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.10/ftplib.py", line 158, in connect
Dec  7 05:30:35 n4mrv weewx[1152] ERROR weewx.reportengine: ftpgenerator: Upload failed
Dec  7 05:45:23 n4mrv weewx[1152] ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'socket.gaierror'>': [Errno -3] Temporary failure in name resolution
Dec  7 05:45:23 n4mrv weewx[1152] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec  7 05:45:23 n4mrv weewx[1152] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeutil/ftpupload.py", line 175, in run
Dec  7 05:45:23 n4mrv weewx[1152] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec  7 05:45:23 n4mrv weewx[1152] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.10/ftplib.py", line 158, in connect
Dec  7 05:45:29 n4mrv weewx[1152] ERROR weewx.reportengine: ftpgenerator: (1): caught exception '<class 'socket.gaierror'>': [Errno -3] Temporary failure in name resolution
Dec  7 05:45:29 n4mrv weewx[1152] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec  7 05:45:29 n4mrv weewx[1152] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeutil/ftpupload.py", line 175, in run
Dec  7 05:45:29 n4mrv weewx[1152] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec  7 05:45:29 n4mrv weewx[1152] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.10/ftplib.py", line 158, in connect
Dec  7 05:45:35 n4mrv weewx[1152] ERROR weewx.reportengine: ftpgenerator: (2): caught exception '<class 'socket.gaierror'>': [Errno -3] Temporary failure in name resolution
Dec  7 05:45:35 n4mrv weewx[1152] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Dec  7 05:45:35 n4mrv weewx[1152] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeutil/ftpupload.py", line 175, in run
Dec  7 05:45:35 n4mrv weewx[1152] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Dec  7 05:45:35 n4mrv weewx[1152] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.10/ftplib.py", line 158, in connect
Dec  7 05:45:35 n4mrv weewx[1152] ERROR weewx.reportengine: ftpgenerator: Upload failed
grep: (standard input): binary file matches

vince

unread,
Dec 9, 2023, 1:42:19 AM12/9/23
to weewx-user
On Friday, December 8, 2023 at 5:35:01 PM UTC-8 bgra...@umw.edu wrote:
My weewx 4.10.2 with python 3.10.12 seems to be running fine but stopped FTPing files to the server on godaddy.com. I only noticed this today as I usually just look at the local weewx computer. Upload is to grattans.org/wx
I uploaded some files with filezilla today so I'm sure the password hasn't changes.

Dec  6 11:15:30 n4mrv weewx[389284] ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'socket.gaierror'>': [Errno -3] Temporary failure in name resolution

Your weewx host is unable to resolve the hostname of the host you are trying to upload to. 

bgra...@umw.edu

unread,
Dec 9, 2023, 1:58:56 AM12/9/23
to weewx-user
Thanks, Vince, I just figured that out by trying to "dig grattans.org" from the weewx server and getting nothing. I had been messing with webmin, making some network changes, and somehow the name server reference wasn't correct. Sorry for the panic and much appreciated for the fast reply.
Cheers,
Bob
Reply all
Reply to author
Forward
0 new messages