On Saturday, October 8, 2016 at 12:22:22 PM UTC-4, Steve wrote:
>
> Sorry for the confusion Matthew.
>
> When I was using FOSUB if MySQL went away and then came back, it would
> catch up. I only mentioned it because nothing went wrong.
>
> The upgrading of MySQL is only related because MySQL wasn't running when
> WeeWX tried to access it, MySQL came back up, WeeWX retried but failed and
> the error was *engine: Unable to load driver: [Errno 98] Address already
> in use* That was it, WeeWX had stopped, I had to restart it. (Once WeeWX
> had exited, it seems the port was freed up).
>
> Since I've been using the Interceptor driver, if MySQL goes away, WeeWX
> will retry but it looks like the Interceptor driver cannot reclaim its port
> because? It has not released it?.
>
> There's really nothing else in the log before or after except the usual
> stuff... Everything is fine, somewhere between 23:05 and 23:10 MySQL shuts
> down, Come back up, WeeWX retries 2 minutes later and exits. At 23:17 I
> restarted WeeWX.
>>
>>
>>
ok, now i understand.
the reason the fine offset would 'catch up' is because the fine offset
stations have a data logger. when the database write failed, weewx would
restart. that probably happened multiple times until the mysql server came
back. at that point, weewx reads the latest record, sees that it is older
than the records in the fine offset logger, and does a catch up.
the interceptor will not be able to catch up, since there is no logger in
the observer hardware.
however, the fact that the interceptor does not release the port is a bug.
in the function Consumer.shutdown (around line 170 in interceptor.py
version 0.11), change this:
def shutdown(self):
self._server.shutdown()
to this:
def shutdown(self):
self._server.shutdown()
self._server.server_close()
start weewx, block the mysql server, see what happens.
m
--
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].
For more options, visit https://groups.google.com/d/optout.