SFTP "Broken Pipe" error

53 views
Skip to first unread message

Ed Hainsworth

unread,
May 1, 2020, 9:05:05 PM5/1/20
to weewx-user
So overnight my provider changed settings to SFTP. 

They said I would only need to enable SFTP:

the error is due to an update made on our servers due to an attack that was made on our FTP ports all connections will need to be made through FTPS
the port username password and host name are still the same as before but you will need to switch the protocol to FTPS to allow it to connect over TLS

I went into the conf file and enabled the secure ftp to true, now I get a broken pipe error (this is only one of MANY):

May  1 20:02:14 raspberrypi wee_reports[832] ERROR weeutil.ftpupload: Attempt #1. Failed uploading /yearhumin.png to ftp.mydomain.com. Reason: [Errno 32] Broken pipe


Running a report I get the following:

$ sudo wee_reports

Using configuration file /etc/weewx/weewx.conf

Generating for all time

Traceback (most recent call last):

  File "/usr/share/weewx/weewx/reportengine.py", line 326, in run

    n = ftp_data.run()

  File "/usr/share/weewx/weeutil/ftpupload.py", line 143, in run

    self._make_remote_dir(ftp_server, remote_dir_path)

  File "/usr/share/weewx/weeutil/ftpupload.py", line 240, in _make_remote_dir

    raise IOError("Unable to create remote directory %s" % remote_dir_path)

OSError: Unable to create remote directory /font


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/usr/share/weewx/weewx/reportengine.py", line 197, in run

    obj.start()

  File "/usr/share/weewx/weewx/reportengine.py", line 280, in start

    self.run()

  File "/usr/share/weewx/weewx/reportengine.py", line 327, in run

    except (socket.timeout, socket.gaierror, ftplib.all_errors, IOError) as e:

TypeError: catching classes that do not inherit from BaseException is not allowed


I have gone so far as a fresh install of Buster and weewx 4 on a different card, still getting the error. 

What am I missing?

Thanks 

Tom Keffer

unread,
May 1, 2020, 9:30:24 PM5/1/20
to weewx-user
Just to be clear: FTPS and SFTP are different things. WeeWX supports FTPS, but not SFTP. No matter, it looks like your ISP wants FTPS.

Hard to say, but I think you're getting hit by issue #284. Try adding an option secure_data and setting it to false:

[[FTP]]
   ...
   secure_ftp = True
   secure_data = False

See if that helps.

-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 on the web visit https://groups.google.com/d/msgid/weewx-user/dca12922-6b68-4b56-b7d7-fcd83616df51%40googlegroups.com.

Ed Hainsworth

unread,
May 1, 2020, 9:53:25 PM5/1/20
to weewx...@googlegroups.com
That was it!!  THANKS 

Ed Hainsworth 

Sent from my iPhone

On May 1, 2020, at 21:30, Tom Keffer <tke...@gmail.com> wrote:


You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/WTF8VPwFpCI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECqonvcak6eymvXbCmtBv1STne0NsY%2BbgXAjvP4npq%2BEA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages