Not sure what's happening. If I run nmap from my end, it reveals that your ISP is using an implementation of Pure-FTPd. Looking through the Pure-FTPd documentation, it lists WinSCP <https://download.pureftpd.org/pub/pure-ftpd/doc/README.TLS> as being compatible, but it doesn't say anything one way or another about Python's client implementation. It's possible there's an incompatibility (although I doubt it).
It's also possible it's a firewall issue, although the fact that nmap was able to scan the port suggests not. You mention you are able to connect with WinSCP. I assume that's on a Windows host, not a Linux host. Are you able to connect using any client on your Linux box, such as FileZilla, or the FTP command line? -tk On Mon, Dec 23, 2019 at 2:29 AM Neil S <[email protected]> wrote: > Have set Debug=2 but there doesn’t seem to be much more useful info. > Presume I have to look at syslog? > > Have also checked messages and user.log but doesn’t seem to be anything > extra in there either? > > I have also replaced the website ftp with the direct IP for the time > being. > > > > *With **secure_ftp = true* I get the following in syslog > > > > root@pi-Weather:~# tail -f /var/log/syslog > > Dec 23 09:10:17 localhost weewx[9522]: restx: Ambient: url: > https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?action=updateraw&ID=ILONDONXXX&PASSWORD=XXX&softwaretype=weewx-3.9.2&dateutc=2019-12-23%2009%3A10%3A00&dailyrainin=0.00&winddir=135&windspeedmph=1.6&windgustmph=1.6&rainin=0.00 > > Dec 23 09:10:17 localhost weewx[9522]: reportengine: Running reports for > latest time in the database. > > Dec 23 09:10:17 localhost weewx[9522]: reportengine: Report > 'StandardReport' not enabled. Skipping. > > Dec 23 09:10:17 localhost weewx[9522]: reportengine: Running report > 'SeasonsReport' > > Dec 23 09:10:18 localhost weewx[9522]: restx: WOW: Published record > 2019-12-23 09:10:00 GMT (1577092200) > > Dec 23 09:10:18 localhost weewx[9522]: restx: StationRegistry: Published > record 2019-12-23 09:10:00 GMT (1577092200) > > Dec 23 09:10:19 localhost weewx[9522]: restx: Wunderground-PWS: Published > record 2019-12-23 09:10:00 GMT (1577092200) > > Dec 23 09:10:19 localhost weewx[9522]: reportengine: Found configuration > file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport' > > Dec 23 09:10:25 localhost weewx[9522]: cheetahgenerator: using search list > ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', > 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', > 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras'] > > Dec 23 09:10:25 localhost weewx[9522]: manager: Daily summary version is > 2.0 > > Dec 23 09:10:41 localhost weewx[9522]: wmr100: Bad USB report received: > could not detach kernel driver from interface 0: No data available > > Dec 23 09:11:01 localhost weewx[9522]: wmr100: Bad USB report received: > could not detach kernel driver from interface 0: No data available > > Dec 23 09:11:41 localhost weewx[9522]: wmr100: Bad USB report received: > could not detach kernel driver from interface 0: No data available > > Dec 23 09:12:02 localhost weewx[9522]: cheetahgenerator: Generated 8 files > for report SeasonsReport in 98.02 seconds > > Dec 23 09:12:02 localhost rsyslogd-2007: action 'action 17' suspended, > next retry is Mon Dec 23 09:13:32 2019 [try http://www.rsyslog.com/e/2007 > ] > > Dec 23 09:12:03 localhost weewx[9522]: manager: Daily summary version is > 2.0 > > Dec 23 09:12:10 localhost weewx[9522]: imagegenerator: Generated 14 images > for SeasonsReport in 7.20 seconds > > Dec 23 09:12:10 localhost weewx[9522]: copygenerator: copied 5 files to > /var/www/weewx > > Dec 23 09:12:10 localhost weewx[9522]: reportengine: Report > 'SmartphoneReport' not enabled. Skipping. > > Dec 23 09:12:10 localhost weewx[9522]: reportengine: Report 'MobileReport' > not enabled. Skipping. > > Dec 23 09:12:10 localhost weewx[9522]: reportengine: Running report 'FTP' > > Dec 23 09:12:10 localhost weewx[9522]: reportengine: Found configuration > file /etc/weewx/skins/Ftp/skin.conf for report 'FTP' > > Dec 23 09:12:10 localhost weewx[9522]: ftpupload: Attempting secure > connection to 87.247.245.132 > > Dec 23 09:12:10 localhost weewx[9522]: ftpupload: Unable to connect or log > into server : [Errno 104] Connection reset by peer > > Dec 23 09:12:10 localhost weewx[9522]: ftpupload: Unable to connect or log > into server : [Errno 104] Connection reset by peer > > Dec 23 09:12:10 localhost weewx[9522]: ftpupload: Unable to connect or log > into server : [Errno 104] Connection reset by peer > > Dec 23 09:12:10 localhost weewx[9522]: ftpupload: Attempted 3 times to > connect to server 87.247.245.132. Giving up. > > Dec 23 09:12:10 localhost weewx[9522]: ftpgenerator: ftp'd 0 files in 0.26 > seconds > > Dec 23 09:12:10 localhost weewx[9522]: reportengine: Running report 'RSYNC' > > Dec 23 09:12:10 localhost weewx[9522]: reportengine: Found configuration > file /etc/weewx/skins/Rsync/skin.conf for report 'RSYNC' > > Dec 23 09:12:11 localhost weewx[9522]: rsyncgenerator: rsync upload not > requested. Skipped. > > Dec 23 09:12:22 localhost weewx[9522]: wmr100: Bad USB report received: > could not detach kernel driver from interface 0: No data available > > Dec 23 09:12:27 localhost weewx[9522]: wmr100: Bad USB report received: > tuple index out of range > > Dec 23 09:12:32 localhost weewx[9522]: wmr100: Bad USB report received: > tuple index out of range > > Dec 23 09:12:37 localhost weewx[9522]: wmr100: Bad checksum on buffer of > length 26 > > Dec 23 09:12:37 localhost weewx[9522]: wmr100: Bad checksum on buffer of > length 7 > > Dec 23 09:12:52 localhost weewx[9522]: wmr100: Bad USB report received: > could not detach kernel driver from interface 0: No data available > > Dec 23 09:13:03 localhost weewx[9522]: wmr100: Bad checksum on buffer of > length 5 > > Dec 23 09:13:18 localhost weewx[9522]: wmr100: Bad USB report received: > could not detach kernel driver from interface 0: No data available > > Dec 23 09:13:44 localhost weewx[9522]: wmr100: Bad USB report received: > could not detach kernel driver from interface 0: No data available > > Dec 23 09:13:44 localhost rsyslogd-2007: action 'action 17' suspended, > next retry is Mon Dec 23 09:15:14 2019 [try http://www.rsyslog.com/e/2007 > ] > > > > > > > > *with secure_ftp = false *I get the following in syslog > > > > Dec 23 09:21:07 localhost weewx[9631]: cheetahgenerator: Generated 8 files > for report SeasonsReport in 37.59 seconds > > Dec 23 09:21:07 localhost weewx[9631]: manager: Daily summary version is > 2.0 > > Dec 23 09:21:14 localhost weewx[9631]: wmr100: Bad USB report received: > could not detach kernel driver from interface 0: No data available > > Dec 23 09:21:14 localhost weewx[9631]: imagegenerator: Generated 14 images > for SeasonsReport in 6.99 seconds > > Dec 23 09:21:14 localhost weewx[9631]: copygenerator: copied 5 files to > /var/www/weewx > > Dec 23 09:21:14 localhost weewx[9631]: reportengine: Report > 'SmartphoneReport' not enabled. Skipping. > > Dec 23 09:21:14 localhost weewx[9631]: reportengine: Report 'MobileReport' > not enabled. Skipping. > > Dec 23 09:21:14 localhost weewx[9631]: reportengine: Running report 'FTP' > > Dec 23 09:21:14 localhost weewx[9631]: reportengine: Found configuration > file /etc/weewx/skins/Ftp/skin.conf for report 'FTP' > > Dec 23 09:21:14 localhost weewx[9631]: ftpupload: Attempting connection to > 87.247.245.132 > > Dec 23 09:21:14 localhost weewx[9631]: ftpupload: Unable to connect or log > into server : 421-Sorry, cleartext sessions and weak ciphers are not > accepted on this > server.#012421 Please reconnect using TLS security mechanisms. > > Dec 23 09:21:14 localhost weewx[9631]: ftpupload: Unable to connect or log > into server : 421-Sorry, cleartext sessions and weak ciphers are not > accepted on this > server.#012421 Please reconnect using TLS security mechanisms. > > Dec 23 09:21:15 localhost weewx[9631]: ftpupload: Unable to connect or log > into server : 421-Sorry, cleartext sessions and weak ciphers are not > accepted on this > server.#012421 Please reconnect using TLS security mechanisms. > > Dec 23 09:21:15 localhost weewx[9631]: ftpupload: Attempted 3 times to > connect t o server 87.247.245.132. Giving up. > > Dec 23 09:21:15 localhost weewx[9631]: ftpgenerator: ftp'd 0 files in 0.12 > seconds > > Dec 23 09:21:15 localhost weewx[9631]: reportengine: Running report 'RSYNC' > > Dec 23 09:21:15 localhost weewx[9631]: reportengine: Found configuration > file /etc/weewx/skins/Rsync/skin.conf for report 'RSYNC' > > Dec 23 09:21:15 localhost weewx[9631]: rsyncgenerator: rsync upload not > requested. Skipped. > > Dec 23 09:21:41 localhost weewx[9631]: wmr100: Bad USB report received: > could not detach kernel driver from interface 0: No data available > > Dec 23 09:21:41 localhost rsyslogd-2007: action 'action 17' suspended, > next retry is Mon Dec 23 09:23:11 2019 [try http://www.rsyslog.com/e/2007 > ] > > Dec 23 09:22:10 localhost weewx[9631]: wmr100: Bad USB report received: > could not detach kernel driver from interface 0: No data available > > ^C > > > > > > > > Using nmap against the ISP’s server and port 21 I get > > > > Starting Nmap 7.80 ( https://nmap.org ) at 2019-12-22 17:18 GMT Standard > Time > > Nmap scan report for honolulu.footholds.net (87.247.245.132) > > Host is up (0.020s latency). > > PORT STATE SERVICE > > 21/tcp open ftp > > | ssl-enum-ciphers: > > | TLSv1.2: > > | ciphers: > > | TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (secp256r1) - A > > | TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (secp256r1) - A > > | TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 (dh 2048) - A > > | TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 (dh 2048) - A > > | compressors: > > | NULL > > | cipher preference: server > > |_ least strength: A > > > > > > Does that help? > > > Neil > > > > > On Saturday, 21 December 2019 23:12:27 UTC, Thomas Keffer wrote: >> >> In your weewx.conf file, set debug=2. This will give extra information >> about the FTP connection and, possibly, why, or at least, where, the >> problem is happening. >> >> -tk >> >> On Fri, Dec 20, 2019 at 12:16 PM Neil S <[email protected]> wrote: >> >>> So it appears that my ISP has done something to the server that now >>> requires all connections to be secure (having problems with mail client as >>> well). >>> >>> However at the same time my Weewx stopped uploading to the server and >>> the logs report... >>> >>> Dec 20 18:35:48 pi-Weather weewx[5982]: ftpupload: Unable to connect or >>> log into server : 421-Sorry, cleartext sessions and weak ciph... server. >>> 421 Please reconnect using TLS >>> security mechanisms. >>> Dec 20 18:35:48 pi-Weather weewx[5982]: ftpupload: Unable to connect or >>> log into server : 421-Sorry, cleartext sessions and weak ciph... server. >>> 421 Please reconnect using TLS >>> security mechanisms. >>> Dec 20 18:35:48 pi-Weather weewx[5982]: ftpupload: Unable to connect or >>> log into server : 421-Sorry, cleartext sessions and weak ciph... server. >>> 421 Please reconnect using TLS >>> security mechanisms. >>> Dec 20 18:35:48 pi-Weather weewx[5982]: ftpupload: Attempted 3 times to >>> connect to server ftp.<removed for privacy>.co.uk. Giving up. >>> >>> >>> having searched the forum I have tried altering adding >>> >>> secure_ftp = True >>> >>> and also >>> secure_ftp = True >>> secure_data = False >>> >>> With suitable weewx restart. >>> >>> If I do either of the above I get >>> >>> Dec 20 18:21:16 pi-Weather weewx[5845]: ftpupload: Unable to connect or >>> log into server : [Errno 104] Connection reset by peer >>> Dec 20 18:21:16 pi-Weather weewx[5845]: ftpupload: Unable to connect or >>> log into server : [Errno 104] Connection reset by peer >>> Dec 20 18:21:16 pi-Weather weewx[5845]: ftpupload: Unable to connect or >>> log into server : [Errno 104] Connection reset by peer >>> Dec 20 18:21:16 pi-Weather weewx[5845]: ftpupload: Attempted 3 times to >>> connect to server ftp.<removed for privacy>.co.uk. Giving up. >>> Dec 20 18:21:16 pi-Weather weewx[5845]: ftpgenerator: ftp'd 0 files in >>> 0.29 seconds >>> >>> I have tried connecting to my web server using WinSCP and it failed >>> until I alter settings to TLS/SSL Explicit encryption (on port 21) at which >>> point it works. >>> >>> Any ideas what settings I need to change in the Weewx.conf [[FTP]] >>> section to get it to upload again? >>> >>> TIA >>> >>> Neil >>> >>> >>> >>> -- >>> 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/8166e9b2-7093-4745-a2e2-c501e695e7a3%40googlegroups.com >>> <https://groups.google.com/d/msgid/weewx-user/8166e9b2-7093-4745-a2e2-c501e695e7a3%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/fde5a388-9bc8-4dac-a1f8-fe62fb002a4b%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/fde5a388-9bc8-4dac-a1f8-fe62fb002a4b%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/CAPq0zEBgVn1EuzjGx_ysb-U_Qsab99%2B4TOhzJ28Px4iv1i-C0Q%40mail.gmail.com.
