I know this is probably not what you want to hear, but can you use rsync? It tends to be faster and is very secure.
-tk On Tue, May 12, 2020 at 12:51 AM Stephen <[email protected]> wrote: > > > On Monday, 11 May 2020 23:42:53 UTC+1, Tom Keffer wrote: >> >> It's possible you are getting hit by issue #284 >> <https://github.com/weewx/weewx/issues/284>. Try changing this >> >> # Set to True for an FTP over TLS (FTPS) connection. Not all >> servers >> # support this. >> secure_ftp = True >> secure_data = True >> >> to this >> >> # Set to True for an FTP over TLS (FTPS) connection. Not all >> servers >> # support this. >> secure_ftp = True >> secure_data = False >> >> See if that helps. >> >> -tk >> > > > I've tried that and it eliminates the error at the start that seems to > cause everything else to go wrong and the unhandled exception, but now the > server complains (reasonably, it seems to me). > > This is output for each file: > > *cmd* 'TYPE I' > *put* 'TYPE I\r\n' > *get* '200 TYPE is now 8-bit binary\n' > *resp* '200 TYPE is now 8-bit binary' > *cmd* 'PASV' > *put* 'PASV\r\n' > *get* '227 Entering Passive Mode (185,24,98,215,244,34)\n' > *resp* '227 Entering Passive Mode (185,24,98,215,244,34)' > *cmd* 'STOR /yearrain.png' > *put* 'STOR /yearrain.png\r\n' > *get* '521 Data connection cannot be opened with this PROT setting.\n' > *resp* '521 Data connection cannot be opened with this PROT setting.' > > and it ends politely... > > *cmd* 'QUIT' > *put* 'QUIT\r\n' > *get* '221-Goodbye. You uploaded 0 and downloaded 0 kbytes.\n' > *get* '221 Logout.\n' > *resp* '221-Goodbye. You uploaded 0 and downloaded 0 kbytes.\n221 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/3f2edefc-7e7a-4265-afc4-938a3e4a863c%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/3f2edefc-7e7a-4265-afc4-938a3e4a863c%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/CAPq0zEBEEhWNeDHq0n8QnCUOCSSgT-8iu2zpUi6eSSSvg4rSww%40mail.gmail.com.
