I have a weird problem with weewx on a Pi 3B that had previously been running it happily for more than a month. Please excuse this long post, but it is difficult to know what is relevant.
I was using WiFiLogger - a reasonably new IP logger - to connect to my Vantage Pro 2 weather station. I had encountered few problems (none that were not easily sorted out) until some beta network monitoring software I was testing crashed spectacularly and left my network in a shambles. In order to sort this out, I had to shut down everything on the network, including the router and (separate) WiFi Access Point, and bring it up again from scratch (without the offending beta software!). After I had done this, everything worked normally again, but weewx appeared to be unable to communicate properly with the IP logger. I was able to confirm that the logger itself was still working and accessible at its assigned IP address, and it appeared that weewx was also able to reach it but was not receiving comprehensible responses. In the hope of getting the weather station communications back up and running, I switched to an older, but known good, USB logger, changed weewx's settings appropriately, and restarted the program, only to see almost identical communication problems to those I had seen with the IP logger. At this point, I decided to install weewx on another Pi 3B. There were no problems with the installation and weewx ran and communicated normally with the USB logger! I am using this as a workaround for the bigger problem, for now. Going back to the original Pi, I 'purged' weewx and reinstalled it from scratch as I had on the second Pi, hoping that this would clear whatever problem may have been caused by the original network crash, but it still won't talk to the USB logger (relevant syslog record attached). Has anyone any ideas as to where I should look next? I emphasize that the Pi on which weewx is not working properly is otherwise functioning entirely normally, with a number of service scripts monitoring other sensors and communicating normally with my Windows system over the local network -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/b763687b-80c9-405e-a577-0142278991dc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
May 24 10:33:17 raspberrypi2 systemd[1]: Started weewx weather system. May 24 10:33:31 raspberrypi2 weewx[705]: vantage: LOOP try #1; error: Expected to read 99 chars; got 13 instead May 24 10:35:23 raspberrypi2 weewx[705]: cheetahgenerator: Generated 8 files for report SeasonsReport in 5.48 seconds May 24 10:35:25 raspberrypi2 weewx[705]: imagegenerator: Generated 14 images for SeasonsReport in 1.26 seconds May 24 10:35:25 raspberrypi2 weewx[705]: copygenerator: copied 5 files to /var/www/html/weewx May 24 10:36:23 raspberrypi2 weewx[705]: vantage: LOOP try #1; error: Expected to read 99 chars; got 0 instead May 24 10:36:29 raspberrypi2 weewx[705]: vantage: LOOP try #2; error: Expected to read 99 chars; got 0 instead May 24 10:36:34 raspberrypi2 weewx[705]: vantage: LOOP try #3; error: Expected to read 99 chars; got 0 instead May 24 10:36:39 raspberrypi2 weewx[705]: vantage: LOOP try #4; error: Expected to read 99 chars; got 0 instead May 24 10:36:39 raspberrypi2 weewx[705]: vantage: LOOP max tries (4) exceeded. May 24 10:36:39 raspberrypi2 weewx[705]: engine: Main loop exiting. Shutting engine down. May 24 10:36:39 raspberrypi2 weewx[705]: engine: Shutting down StdReport thread May 24 10:36:39 raspberrypi2 weewx[705]: engine: Caught WeeWxIOError: Max tries exceeded while getting LOOP data. May 24 10:36:39 raspberrypi2 weewx[705]: **** Waiting 60 seconds then retrying... May 24 10:36:41 raspberrypi2 systemd[1]: Stopping weewx weather system... May 24 10:36:41 raspberrypi2 systemd[1]: weewx.service: Main process exited, code=exited, status=1/FAILURE May 24 10:36:41 raspberrypi2 systemd[1]: Stopped weewx weather system. May 24 10:36:41 raspberrypi2 systemd[1]: weewx.service: Unit entered failed state. May 24 10:36:41 raspberrypi2 systemd[1]: weewx.service: Triggering OnFailure= dependencies. May 24 10:36:41 raspberrypi2 systemd[1]: weewx.service: Failed with result 'exit-code'.