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.
Oct 8 23:05:35 rpi3 weewx[6630]: manager: added record 2016-10-08 23:05:36
AEDT (1475928336) to database 'cmon'
Oct 8 23:05:35 rpi3 weewx[6630]: manager: added record 2016-10-08 23:05:36
AEDT (1475928336) to daily summary in 'cmon'
Oct 8 23:05:38 rpi3 weewx[6630]: manager: added record 2016-10-08 23:05:00
AEDT (1475928300) to database 'weewx'
Oct 8 23:05:38 rpi3 weewx[6630]: manager: added record 2016-10-08 23:05:00
AEDT (1475928300) to daily summary in 'weewx'
Oct 8 23:05:39 rpi3 weewx[6630]: restx: Wunderground-PWS: Published record
2016-10-08 23:05:00 AEDT (1475928300)
Oct 8 23:05:41 rpi3 weewx[6630]: cheetahgenerator: Generated 10 files for
report StandardReport in 3.30 seconds
Oct 8 23:05:42 rpi3 weewx[6630]: genimages: Generated 13 images for
StandardReport in 1.27 seconds
Oct 8 23:05:42 rpi3 weewx[6630]: reportengine: copied 0 files to
/www/weather
Oct 8 23:10:33 rpi3 weewx[6630]: engine: Shutting down StdReport thread
Oct 8 23:10:33 rpi3 weewx[6630]: interceptor: MainThread: shutting down
server thread
Oct 8 23:10:33 rpi3 weewx[6630]: engine: Caught database OperationalError:
(2006, 'MySQL server has gone away')
Oct 8 23:10:33 rpi3 weewx[6630]: **** Waiting 2 minutes then
retrying...
Oct 8 23:12:33 rpi3 weewx[6630]: engine: retrying...
Oct 8 23:12:33 rpi3 weewx[6630]: engine: Using configuration file
/home/weewx/weewx.conf
Oct 8 23:12:33 rpi3 weewx[6630]: engine: Loading station type Interceptor
(user.interceptor)
Oct 8 23:12:33 rpi3 weewx[6630]: interceptor: MainThread: driver version
is 0.8
Oct 8 23:12:33 rpi3 weewx[6630]: interceptor: MainThread: driver will
listen on :55
Oct 8 23:12:33 rpi3 weewx[6630]: interceptor: MainThread: sensor map: None
Oct 8 23:12:33 rpi3 weewx[6630]: engine: Unable to load driver: [Errno 98]
Address already in use
Oct 8 23:12:33 rpi3 weewx[6630]: **** Exiting...
Oct 8 23:17:00 rpi3 weewx[18047]: engine: Initializing weewx version 3.5.0
Oct 8 23:17:00 rpi3 weewx[18047]: engine: Using Python 2.7.9 (default, Sep
17 2016, 20:26:04) #012[GCC 4.9.2]
Oct 8 23:17:00 rpi3 weewx[18047]: engine: Platform
Linux-4.1.20-v7+-armv7l-with-debian-8.0
Oct 8 23:17:00 rpi3 weewx[18047]: engine: pid file is /var/run/weewx.pid
Oct 8 23:17:00 rpi3 weewx[18051]: engine: Using configuration file
/home/weewx/weewx.conf
Oct 8 23:17:00 rpi3 weewx[18051]: engine: Loading station type Interceptor
(user.interceptor)
Oct 8 23:17:00 rpi3 weewx[18051]: interceptor: MainThread: driver version
is 0.8
Oct 8 23:17:00 rpi3 weewx[18051]: interceptor: MainThread: driver will
listen on :55
Oct 8 23:17:00 rpi3 weewx[18051]: interceptor: MainThread: sensor map: None
Oct 8 23:17:00 rpi3 weewx[18051]: engine: StdConvert target unit is 0x10
Oct 8 23:17:00 rpi3 weewx[18051]: wxcalculate: The following values will
be calculated:
barometer=prefer_hardware,windchill=prefer_hardware,dewpoint=prefer_hardware,appTemp=prefer_hardware,rainRate=prefer_hardware,windrun=prefer_hardware,heatindex=prefer_hardware,maxSolarRad=prefer_hardware,humidex=prefer_hardware,pressure=prefer_hardware,inDewpoint=prefer_hardware,ET=prefer_hardware,altimeter=prefer_hardware,cloudbase=prefer_hardware
Oct 8 23:17:00 rpi3 weewx[18051]: wxcalculate: The following algorithms
will be used for calculations: altimeter=aaNOAA,maxSolarRad=RS
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: service version is 0.7
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: sysinfo: Linux rpi3 4.1.20-v7+
#867 SMP Wed Mar 23 20:12:32 GMT 2016 armv7l
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: cpuinfo: CPU implementer: 0x41
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: cpuinfo: Features: half thumb
fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: cpuinfo: CPU architecture: 7
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: cpuinfo: BogoMIPS: 76.80
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: cpuinfo: Hardware: BCM2709
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: cpuinfo: CPU revision: 4
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: cpuinfo: CPU part: 0xd03
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: cpuinfo: model name: ARMv7
Processor rev 4 (v7l)
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: cpuinfo: Serial: 0000000033f8990c
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: cpuinfo: processor: 3
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: cpuinfo: CPU variant: 0x0
Oct 8 23:17:00 rpi3 weewx[18051]: cmon: cpuinfo: Revision: a22082
Oct 8 23:17:00 rpi3 weewx[18051]: engine: Archive will use data binding
wx_binding
Oct 8 23:17:00 rpi3 weewx[18051]: engine: Record generation will be
attempted in 'software'
Oct 8 23:17:00 rpi3 weewx[18051]: engine: Using archive interval of 300
seconds
Oct 8 23:17:00 rpi3 weewx[18051]: engine: Using binding 'wx_binding' to
database 'weewx'
Oct 8 23:17:00 rpi3 weewx[18051]: manager: Starting backfill of daily
summaries
Oct 8 23:17:00 rpi3 weewx[18051]: manager: Daily summaries up to date
Oct 8 23:17:00 rpi3 weewx[18051]: restx: StationRegistry: Station will be
registered.
Oct 8 23:17:00 rpi3 weewx[18051]: restx: Wunderground-PWS: Data for
station IVICTORI391 will be posted
Oct 8 23:17:00 rpi3 weewx[18051]: engine: Starting up weewx version 3.5.0
Oct 8 23:17:00 rpi3 weewx[18051]: engine: Starting main packet loop.
Oct 8 23:17:13 rpi3 weewx[18051]: interceptor: MainThread: skipping rain
measurement of 6.31: no last rain
Oct 8 23:20:41 rpi3 weewx[18051]: manager: added record 2016-10-08
23:20:00 AEDT (1475929200) to database 'weewx'
Oct 8 23:20:41 rpi3 weewx[18051]: manager: added record 2016-10-08
23:20:00 AEDT (1475929200) to daily summary in 'weewx'
Oct 8 23:20:42 rpi3 weewx[18051]: restx: Wunderground-PWS: Published
record 2016-10-08 23:20:00 AEDT (1475929200)
Oct 8 23:20:47 rpi3 weewx[18051]: cheetahgenerator: Generated 10 files for
report StandardReport in 5.40 seconds
Oct 8 23:20:48 rpi3 weewx[18051]: restx: StationRegistry: Published record
2016-10-08 23:20:00 AEDT (1475929200)
Oct 8 23:20:48 rpi3 weewx[18051]: genimages: Generated 13 images for
StandardReport in 1.85 seconds
Oct 8 23:20:49 rpi3 weewx[18051]: reportengine: copied 16 files to
/www/weather
This is in weewx.conf
[Interceptor]
# This section is for the network traffic interceptor driver.
# Specify the hardware device to capture. Options include:
# acurite-bridge - acurite internet bridge
# observer - fine offset WH2600/HP1000/HP1003, aka 'observer'
# lw30x - oregon scientific LW301/LW302
# lacross-bridge - lacross GW1000U/C84612 internet bridge
# netatmo - netatmo weather stations
device_type = observer
port = 55
# The driver to use:
driver = user.interceptor
Regards,
Steve.
On Sunday, 9 October 2016 02:54:37 UTC+11, mwall wrote:
>
>
>
> i'm confused by your posting. changing from fousb to interceptor will not
> make any difference in how weewx interacts with the mysql database.
>
> i'm not sure what you mean by "now I'm using the Interceptor driver I have
> to manually restart WeeWX" - does that mean weewx is quitting unexpectedly
> with the interceptor driver, but it was not with fousb? if so, what are
> the stack traces from the log? how is this related to updating mysql?
>
> from the snippet you posted, it looks like the interceptor driver might
> not be closing the port on which it is listening, but its hard to tell what
> is happening without more log and without knowing which interceptor
> configuration you are using.
>
> 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.