I just have to say how much I like this design approach. Not too clever, plan for failure. If the file is not there or is corrupt, blow it away and recreate it since it is a cache. Just love this. It is a part of how mature and fault-tolerant weewx is.
Thanks to all who work on this! On Friday, November 8, 2019 at 6:55:34 PM UTC-5, Thomas Keffer wrote: > > WeeWX stores the time each file was FTPd to your server in a file called > *#FTP.last*. This is in order to avoid unnecessary uploads. Somehow the > file got corrupted. > > The fix is easy enough: delete the file. It will be regenerated at the > next reporting cycle. You can find it in your HTML directory (probably in > /var/www/html/weewx, or thereabouts) > > On Fri, Nov 8, 2019 at 3:41 PM James Muirhead <[email protected] > <javascript:>> wrote: > >> WeeWX FTP upload has suddenly stopped working since the latest system >> update (I have it setup to run apt-get update; apt-get upgrade at 4am every >> Sunday). Everything else works fine, just no FTP upload. I hadn't changed >> the settings, everything was working fine before Sunday morning. >> >> - Orange Pi PC >> - 1GB RAM >> - 1.3GHz Quad Core >> - Armbian >> - FTP >> - Lighttpd >> - MQTT >> - WoW >> - Wunderground >> >> Nov 8 18:50:23 localhost weewx[807]: reportengine: Caught unrecoverable >> exception in generator 'weewx.reportengine.FtpGenerator' >> Nov 8 18:50:23 localhost weewx[807]: **** insecure string pickle >> Nov 8 18:50:23 localhost weewx[807]: **** Traceback (most >> recent call last): >> Nov 8 18:50:23 localhost weewx[807]: **** File >> "/usr/share/weewx/weewx/reportengine.py", line 204, in run >> Nov 8 18:50:23 localhost weewx[807]: **** obj.start() >> Nov 8 18:50:23 localhost weewx[807]: **** File >> "/usr/share/weewx/weewx/reportengine.py", line 300, in start >> Nov 8 18:50:23 localhost weewx[807]: **** self.run() >> Nov 8 18:50:23 localhost weewx[807]: **** File >> "/usr/share/weewx/weewx/reportengine.py", line 347, in run >> Nov 8 18:50:23 localhost weewx[807]: **** n = ftp_data.run() >> Nov 8 18:50:23 localhost weewx[807]: **** File >> "/usr/share/weewx/weeutil/ftpupload.py", line 89, in run >> Nov 8 18:50:23 localhost weewx[807]: **** (timestamp, >> fileset) = self.getLastUpload() >> Nov 8 18:50:23 localhost weewx[807]: **** File >> "/usr/share/weewx/weeutil/ftpupload.py", line 198, in getLastUpload >> Nov 8 18:50:23 localhost weewx[807]: **** fileset = >> cPickle.load(f) >> Nov 8 18:50:23 localhost weewx[807]: **** ValueError: insecure >> string pickle >> Nov 8 18:50:23 localhost weewx[807]: **** Generator terminated >> >> I've been wondering if the update removed a dependency. I installed FTP, >> but didn't fix the issue! >> >> Anyone got any bright ideas on this one? >> >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/4f5b1cfe-e4a7-4296-bddc-eb4843fd9f9a%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/4f5b1cfe-e4a7-4296-bddc-eb4843fd9f9a%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/7244cca4-5fec-44de-91b4-20458da62cc4%40googlegroups.com.
