Stephen and I had an offline conversation and came up with a fix. Commit
3c81cd2
<https://github.com/weewx/weewx/commit/3c81cd2c1c2d098e060b9d286839654733324bb7>
.

To use the fix, replace your copy of weewx/reportengine.py
<https://raw.githubusercontent.com/weewx/weewx/master/bin/weewx/reportengine.py>
.
Same with weeutil/ftpupload.py
<https://raw.githubusercontent.com/weewx/weewx/master/bin/weeutil/ftpupload.py>
.

Then under [[FTP]] add this option

  [[FTP]]
    ... (as before)
    reuse_ssl = True

The fix will only work with Python >= 3.6.

-tk


On Tue, May 12, 2020 at 3:05 PM Stephen <[email protected]> wrote:

>
>
> On Tuesday, 12 May 2020 17:31:10 UTC+1, Tom Keffer wrote:
>>
>> Does the client have access to any ssh keys?
>>
>
> No
>
> Is there a debug mode for the client where you can watch what it's doing,
>> and see what's different?
>>
>
>  Yes, here is the output.  I'm using lftp.  There are some differences so
> I modified the WeeWX code to make it do the same but it didn't fix it.
>
> server.myhost.net <--- 220---------- Welcome to Pure-FTPd [privsep] [TLS]
> ----------
> server.myhost.net <--- 220-You are user number 3 of 50 allowed.
> server.myhost.net <--- 220-Local time is now 19:53. Server port: 21.
> server.myhost.net <--- 220-This is a private system - No anonymous login
> server.myhost.net <--- 220-IPv6 connections are also welcome on this
> server.
> server.myhost.net <--- 220 You will be disconnected after 15 minutes of
> inactivity.
> server.myhost.net ---> FEAT
> server.myhost.net <--- 211-Extensions supported:
> server.myhost.net <---  EPRT
> server.myhost.net <---  IDLE
> server.myhost.net <---  MDTM
> server.myhost.net <---  SIZE
> server.myhost.net <---  MFMT
> server.myhost.net <---  REST STREAM
> server.myhost.net <---  MLST
> type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
> server.myhost.net <---  MLSD
> server.myhost.net <---  AUTH TLS
> server.myhost.net <---  PBSZ
> server.myhost.net <---  PROT
> server.myhost.net <---  UTF8
> server.myhost.net <---  TVFS
> server.myhost.net <---  ESTA
> server.myhost.net <---  PASV
> server.myhost.net <---  EPSV
> server.myhost.net <---  SPSV
> server.myhost.net <---  ESTP
> server.myhost.net <--- 211 End.
> server.myhost.net ---> AUTH TLS
> server.myhost.net <--- 234 AUTH TLS OK.
> server.myhost.net ---> OPTS UTF8 ON
> server.myhost.net <--- 200 OK, UTF-8 enabled
> server.myhost.net ---> USER [email protected]
> server.myhost.net <--- 331 User [email protected] OK. Password required
> server.myhost.net ---> PASS **************
> server.myhost.net <--- 230 OK. Current restricted directory is /
> server.myhost.net ---> OPTS MLST
> type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid
> server.myhost.net <--- 200  MLST OPTS
> type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
> server.myhost.net ---> PWD
> server.myhost.net <--- 257 "/" is your current location
> server.myhost.net ---> PBSZ 0
> server.myhost.net <--- 200 PBSZ=0
> server.myhost.net ---> PROT P
> server.myhost.net <--- 200 Data protection level set to "private"
> server.myhost.net ---> TYPE I
> server.myhost.net <--- 200 TYPE is now 8-bit binary
> server.myhost.net ---> PASV
> server.myhost.net <--- 227 Entering Passive Mode (185,24,98,215,210,134)
> server.myhost.net ---- Connecting data socket to (185.24.98.215) port
> 53894
> server.myhost.net ---> STOR yearrain.png
> server.myhost.net <--- 150 Accepted data connection
> server.myhost.net <--- 226-File successfully transferred
> server.myhost.net <--- 226 0.054 seconds (measured here), 115.09 Kbytes
> per second
> server.myhost.net ---> MFMT 20200510200531 yearrain.png
> server.myhost.net <--- 213 UTIME OK
> server.myhost.net ---> QUIT
> server.myhost.net <--- 221-Goodbye. You uploaded 7 and downloaded 0
> kbytes.
> server.myhost.net <--- 221 Logout.
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/639b82ae-f9f9-44eb-a651-1838a15b4978%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/639b82ae-f9f9-44eb-a651-1838a15b4978%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEDub%2BgiHFD3q89jT-T8DKn39tLaYpjEijCGhvh45ESJaQ%40mail.gmail.com.

Reply via email to