Re: [weewx-user] Vantage through serial to Ethernet device and lost connections

2019-02-05 Thread Thomas Keffer
Not completely following the scenario.

If the vantage driver loses communication with the station, it will try up
to max_retries time, then the program *starts over* from the top. It does
not exit, so it is never in an "exiting state." It should keep trying
forever.

As always, it is helpful to have a log, preferably with debug=1.

-tk

On Tue, Feb 5, 2019 at 2:18 PM chriswilkes33 
wrote:

> Hi,
> I have a Redhat system set up with two different Vantage Pro 2 systems
> going. These are using the Weatherlink Serial devices that I run through
> either a Wiznet SR110 serial to ethernet or a StarTech serial over IP. They
> both work fine, I have no issues running two instances of weewx. My issue
> is that I have these stations set up in a place where network connectivity
> can be troublesome.
>
> When network connections are lost, the Vantage driver seems to try to
> reconnect three (actually 4 but the code doesnt see the counter hits 3
> until it tries the 4th time) times, then wait 60 seconds to try again and
> then fail if no connection is detected. Naturally, the outages we see are
> usually more than the couple minutes that this whole process takes. When
> the weewx service exits, it never fully exits, it seems to remain in active
> (exiting) state. In that state my CM software (puppet) doesnt detect the
> service down and try to restart it.
>
> Im wondering if someone could point me in the code where I can change the
> service to either not die after losing the connection and keep trying
> forever or if there is a way to make the service actually fully exit when
> it decides it wants to? The program I use to fake a tcp port into thinking
> it is a serial port (remserial) cannot handle the service choking very well.
>
> Thanks,
> Chris
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Vantage through serial to Ethernet device and lost connections

2019-02-05 Thread chriswilkes33
Hi,
I have a Redhat system set up with two different Vantage Pro 2 systems 
going. These are using the Weatherlink Serial devices that I run through 
either a Wiznet SR110 serial to ethernet or a StarTech serial over IP. They 
both work fine, I have no issues running two instances of weewx. My issue 
is that I have these stations set up in a place where network connectivity 
can be troublesome.

When network connections are lost, the Vantage driver seems to try to 
reconnect three (actually 4 but the code doesnt see the counter hits 3 
until it tries the 4th time) times, then wait 60 seconds to try again and 
then fail if no connection is detected. Naturally, the outages we see are 
usually more than the couple minutes that this whole process takes. When 
the weewx service exits, it never fully exits, it seems to remain in active 
(exiting) state. In that state my CM software (puppet) doesnt detect the 
service down and try to restart it.

Im wondering if someone could point me in the code where I can change the 
service to either not die after losing the connection and keep trying 
forever or if there is a way to make the service actually fully exit when 
it decides it wants to? The program I use to fake a tcp port into thinking 
it is a serial port (remserial) cannot handle the service choking very well.

Thanks,
Chris

-- 
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.
For more options, visit https://groups.google.com/d/optout.