I'm running it as a daemon - headless Linux server. Thanks for the tip on 'loop_on_init' I'll look into that and more debug info.
On Friday, January 29, 2021 at 10:12:48 AM UTC-6 [email protected] wrote: > If the program is unable to get the driver to work on startup, it simply > exits on the theory that there is a configuration problem. If you want it > to retry, even on startup, then use option loop_on_init > <http://www.weewx.com/docs/usersguide.htm#General>. > > Are you running as a daemon? Or, directly from the command line? If the > latter, you can get this kind of error if you close the terminal you used > to start the program. > > You might get additional information if you set debug=1. > > On Fri, Jan 29, 2021 at 7:24 AM [email protected] <[email protected]> wrote: > >> Randomly about 2x per month or so, weewx shuts down because it can't talk >> to the David IPLink. I don't see any retries like what is configured but I >> do see 1 main retry to reload the driver which also fails. >> >> Here is the relevant section of the log. I appreciate the IP error means >> the other side didn't respond before the timeout. But what I don't >> understand is why I don't see the backoff and retries configured in the >> [Vantage] section of weewx.conf. >> >> I have timeout set to 15 second, wait_before_retry set to 120s, and >> max_tries set to 50. That's not happening based on the log below if you >> look at the timestamps? >> >> Jan 28 11:10:21 wx-proc2 weewx[1300] ERROR weewx.drivers.vantage: No >> <ACK> received from console >> Jan 28 11:10:21 wx-proc2 weewx[1300] INFO weewx.engine: Main loop >> exiting. Shutting engine down. >> Jan 28 11:10:21 wx-proc2 weewx[1300] INFO weewx.engine: Shutting down >> StdReport thread >> Jan 28 11:10:22 wx-proc2 weewx[1300] CRITICAL __main__: Caught >> WeeWxIOError: No <ACK> received from Vantage console >> Jan 28 11:10:22 wx-proc2 weewx[1300] CRITICAL __main__: **** Waiting >> 60 seconds then retrying... >> Jan 28 11:11:22 wx-proc2 weewx[1300] INFO __main__: retrying... >> Jan 28 11:11:22 wx-proc2 weewx[1300] INFO __main__: Using configuration >> file /etc/weewx/weewx.conf >> Jan 28 11:11:22 wx-proc2 weewx[1300] INFO __main__: Debug is 0 >> Jan 28 11:11:22 wx-proc2 weewx[1300] INFO weewx.engine: Loading station >> type Vantage (weewx.drivers.vantage) >> Jan 28 11:11:38 wx-proc2 weewx[1300] ERROR weewx.drivers.vantage: ip-read >> error: timed out >> Jan 28 11:11:39 wx-proc2 weewx[1300] ERROR weewx.drivers.vantage: ip-read >> error: [Errno 104] Connection reset by peer >> Jan 28 11:11:39 wx-proc2 weewx[1300] ERROR weewx.drivers.vantage: >> ip-write error: [Errno 32] Broken pipe >> Jan 28 11:11:39 wx-proc2 weewx[1300] message repeated 47 times: [ ERROR >> weewx.drivers.vantage: ip-write error: [Errno 32] Broken pipe] >> Jan 28 11:11:39 wx-proc2 weewx[1300] ERROR weewx.drivers.vantage: Unable >> to wake up console >> Jan 28 11:11:39 wx-proc2 weewx[1300] ERROR weewx.engine: Import of driver >> failed: Unable to wake up Vantage console (<class 'weewx.WakeupError'>) >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> Traceback (most recent call last): >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> self.console = loader_function(config_dict, self) >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> File "/usr/share/weewx/weewx/drivers/vantage.py", line 39, in loader >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> return VantageService(engine, config_dict) >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> File "/usr/share/weewx/weewx/drivers/vantage.py", line 1898, in __init__ >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> Vantage.__init__(self, **config_dict[DRIVER_NAME]) >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> File "/usr/share/weewx/weewx/drivers/vantage.py", line 515, in __init__ >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> self._setup() >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> File "/usr/share/weewx/weewx/drivers/vantage.py", line 1317, in _setup >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> self.port.wakeup_console(max_tries=self.max_tries) >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> File "/usr/share/weewx/weewx/drivers/vantage.py", line 118, in >> wakeup_console >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> raise weewx.WakeupError("Unable to wake up Vantage console") >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL weewx.engine: **** >> WakeupError: Unable to wake up Vantage console >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL __main__: Unable to load >> driver: Unable to wake up Vantage console >> Jan 28 11:11:40 wx-proc2 weewx[1300] CRITICAL __main__: **** >> Exiting... >> >> -- >> 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/7ed1a8dc-e5b2-4723-be92-522eed526faan%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/7ed1a8dc-e5b2-4723-be92-522eed526faan%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/291dd704-e01e-440f-87a5-227e88d4a250n%40googlegroups.com.
