FTP failure on RPI5 weewx 5.1 pip install

43 views
Skip to first unread message

bgra...@umw.edu

unread,
Oct 13, 2025, 5:17:54 PM (2 days ago) Oct 13
to weewx-user
Hello,
Just noticed that my local server is not updating my godaddy web page. Not sure what is going on. Passwords are ok to godaddy. Thanks in advance. Probably something stupid I did.
Bob

Error list:

Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'socket.gaierror'>': [Errno -2] Name or service not known
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/home/bg/weewx-venv/lib/python3.11/site-packages/weewx/reportengine.py", line 519, in run
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      n = ftp_data.run()
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****          ^^^^^^^^^^^^^^
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/home/bg/weewx-venv/lib/python3.11/site-packages/weeutil/ftpupload.py", line 166, in run
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/usr/lib/python3.11/ftplib.py", line 158, in connect
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      self.sock = socket.create_connection((self.host, self.port), self.timeout,
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/usr/lib/python3.11/socket.py", line 827, in create_connection
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/usr/lib/python3.11/socket.py", line 962, in getaddrinfo
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****  socket.gaierror: [Errno -2] Name or service not known
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine: ftpgenerator: (1): caught exception '<class 'socket.gaierror'>': [Errno -2] Name or service not known
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/home/bg/weewx-venv/lib/python3.11/site-packages/weewx/reportengine.py", line 519, in run
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      n = ftp_data.run()
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****          ^^^^^^^^^^^^^^
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/home/bg/weewx-venv/lib/python3.11/site-packages/weeutil/ftpupload.py", line 166, in run
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/usr/lib/python3.11/ftplib.py", line 158, in connect
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      self.sock = socket.create_connection((self.host, self.port), self.timeout,
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/usr/lib/python3.11/socket.py", line 827, in create_connection
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/usr/lib/python3.11/socket.py", line 962, in getaddrinfo
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****  socket.gaierror: [Errno -2] Name or service not known
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine: ftpgenerator: (2): caught exception '<class 'socket.gaierror'>': [Errno -2] Name or service not known
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/home/bg/weewx-venv/lib/python3.11/site-packages/weewx/reportengine.py", line 519, in run
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      n = ftp_data.run()
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****          ^^^^^^^^^^^^^^
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/home/bg/weewx-venv/lib/python3.11/site-packages/weeutil/ftpupload.py", line 166, in run
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/usr/lib/python3.11/ftplib.py", line 158, in connect
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      self.sock = socket.create_connection((self.host, self.port), self.timeout,
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/usr/lib/python3.11/socket.py", line 827, in create_connection
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****    File "/usr/lib/python3.11/socket.py", line 962, in getaddrinfo
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****      for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine:         ****  socket.gaierror: [Errno -2] Name or service not known
Oct 13 17:00:19 RPI5 weewxd[1373352]: ERROR weewx.reportengine: ftpgenerator: Upload failed
Oct 13 17:00:26 RPI5 weewxd[1373352]: ERROR weewx.restx: AWEKAS: Failed to publish record 2025-10-13 17:00:00 EDT (1760389200): Failed upload after 3 tries
Oct 13 17:00:27 RPI5 weewxd[1373352]: ERROR weewx.restx: WOW: Failed to publish record 2025-10-13 17:00:00 EDT (1760389200): Failed upload after 3 tries
Oct 13 17:00:27 RPI5 weewxd[1373352]: ERROR weewx.restx: PWSWeather: Failed to publish record 2025-10-13 17:00:00 EDT (1760389200): Failed upload after 3 tries
Oct 13 17:00:27 RPI5 weewxd[1373352]: ERROR weewx.restx: Wunderground-PWS: Failed to publish record 2025-10-13 17:00:00 EDT (1760389200): Failed upload after 3 tries
Oct 13 17:00:46 RPI5 weewxd[1373352]: INFO user.purple: collect_data: Attempt to fetch from: 192.168.1.132 failed: HTTPConnectionPool(host='192.168.1.132', port=80): Read timed out. (read timeout=15).
Oct 13 17:00:46 RPI5 weewxd[1373352]: ERROR user.purple: Could not get concentrations from any source.
Oct 13 17:01:04 RPI5 weewxd[1373352]: ERROR weewx.restx: StationRegistry: Failed to publish record 2025-10-13 17:00:00 EDT (1760389200): Failed upload after 3 tries
Oct 13 17:02:32 RPI5 weewxd[1373352]: INFO user.purple: collect_data: Attempt to fetch from: 192.168.1.132 failed: HTTPConnectionPool(host='192.168.1.132', port=80): Read timed out. (read timeout=15).
Oct 13 17:02:32 RPI5 weewxd[1373352]: ERROR user.purple: Could not get concentrations from any source.
Oct 13 17:04:38 RPI5 weewxd[1373352]: INFO user.purple: collect_data: Attempt to fetch from: 192.168.1.132 failed: HTTPConnectionPool(host='192.168.1.132', port=80): Read timed out. (read timeout=15).
Oct 13 17:04:38 RPI5 weewxd[1373352]: ERROR user.purple: Could not get concentrations from any source.
Oct 13 17:06:41 RPI5 weewxd[1373352]: INFO user.purple: collect_data: Attempt to fetch from: 192.168.1.132 failed: HTTPConnectionPool(host='192.168.1.132', port=80): Read timed out. (read timeout=15).
Oct 13 17:06:41 RPI5 weewxd[1373352]: ERROR user.purple: Could not get concentrations from any source.
Oct 13 17:08:39 RPI5 weewxd[1373352]: INFO user.purple: collect_data: Attempt to fetch from: 192.168.1.132 failed: HTTPConnectionPool(host='192.168.1.132', port=80): Read timed out. (read timeout=15).
Oct 13 17:08:39 RPI5 weewxd[1373352]: ERROR user.purple: Could not get concentrations from any source.
Oct 13 17:10:41 RPI5 weewxd[1373352]: INFO user.purple: collect_data: Attempt to fetch from: 192.168.1.132 failed: HTTPConnectionPool(host='192.168.1.132', port=80): Read timed out. (read timeout=15).
Oct 13 17:10:41 RPI5 weewxd[1373352]: ERROR user.purple: Could not get concentrations from any source.

vince

unread,
Oct 13, 2025, 5:40:49 PM (2 days ago) Oct 13
to weewx-user
Best guess is network issue. You are getting failures connecting to multiple ip addresses and hosts.

Without knowing what you did no idea if it was ‘stupid’ by your definition or not :-)

bgra...@umw.edu

unread,
Oct 13, 2025, 6:17:40 PM (2 days ago) Oct 13
to weewx-user
weewx.conf if that helps. I did mess with the router but other things seem to work. Weewx server is running as expected except for FTP.

From weewx.conf. Been working fine for several years.

[[FTP]]
        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        skin = Ftp

        # If you wish to use FTP, set "enable" to "true", then fill out the
        # next four lines.
        # Use quotes around the password to guard against parsing errors.
        enable = true
        user = ****
        password = ****
        server = grattans.org    # The ftp server name, e.g, www.myserver.org
        path = /public_html/WeeWX    # The destination directory, e.g., /weather

        # Set to True for an FTP over TLS (FTPS) connection. Not all servers
        # support this.
        secure_ftp = False

        # 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

Tom Keffer

unread,
Oct 13, 2025, 6:24:06 PM (2 days ago) Oct 13
to weewx...@googlegroups.com
As Vince said, this is almost surely a network issue.

Try logging into the machine running weewx and connecting to some services from the terminal. For example, you could try


If that gives an error, it's a network problem.

-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.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/dde965e4-5757-47a1-aef6-f2af4ba85f31n%40googlegroups.com.

vince

unread,
Oct 13, 2025, 6:49:14 PM (2 days ago) Oct 13
to weewx-user
The log even shows failures to a purpleair ip address. Did you mess with vlans or subnetting or firewall rules perhaps ? 

bgra...@umw.edu

unread,
Oct 13, 2025, 6:54:10 PM (2 days ago) Oct 13
to weewx-user
Tom and Vince,
Crisis averted, thanks for the replies. Doing ftp grattans.org gave the indication that ftp was not installed so I re-installed it on the server. I do regular updates on RPI5 Bookworm and that was the only tile FTP has disappeared (?). Go figure...
Much appreciated!
Cheers,
Bob

bgra...@umw.edu

unread,
Oct 13, 2025, 6:56:04 PM (2 days ago) Oct 13
to weewx-user
Vince, probably all of the above. I foolishly tend to mess with things which I know very little about. Thanks.
Reply all
Reply to author
Forward
0 new messages