Hi again,
I was having massive problems with the Raspberry Pi behind my WMR300.   
 Every day or so, I'd get up and it would have crashed, and there'd only be 
an ntp error in the logs.  I tried disabling ntp completely and setting the 
time manually, but all that happened is that when the system came back up 
after a crash, it was like ten hours out. 

OK, enough. 

I have a CentOS 6.9 VM sitting on my ESXi host - db2 - so named because 
it's where I do my php and httpd tinkering.   It's 'test & dev' so doesn't 
involve change management to get a change ('change managament' here being 
'asking my wife if she minds me bringing down the servers for a minute :-) 
).  

Last night, I tar up the contents of /home/weewx on the Pi and scp them 
over to db2.  I shut down the Pi.  

This morning, I struggle a bit to get the station recognised by the ESXi 
host, but actually plugging it into the host, sort of helped.   

I install weewx from source on db2, and then once I can see that the WMR300 
is there, I fire her up. 

[root@db2 ~]# service weewx start
Starting weewx:                                            [  OK  ]

In /var/log/messages on db2 ... 

Apr 27 11:19:17 db2 weewx[13842]: engine: Initializing weewx version 3.8.0
Apr 27 11:19:17 db2 weewx[13842]: engine: Using Python 2.6.6 (r266:84292, 
Aug 18 2016, 15:13:37) #012[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
Apr 27 11:19:17 db2 weewx[13842]: engine: Platform 
Linux-2.6.32-696.16.1.el6.x86_64-x86_64-with-centos-6.9-Final
Apr 27 11:19:17 db2 weewx[13842]: engine: Locale is 'en_US.UTF-8'
Apr 27 11:19:17 db2 weewx[13842]: engine: pid file is /var/run/weewx.pid
Apr 27 11:19:17 db2 weewx[13846]: engine: Using configuration file 
/home/weewx/weewx.conf
Apr 27 11:19:17 db2 weewx[13846]: engine: Loading station type WMR300 
(weewx.drivers.wmr300)
Apr 27 11:19:17 db2 weewx[13846]: wmr300x: driver version is 
0.18nolegacy.05.17d
Apr 27 11:19:17 db2 weewx[13846]: wmr300x: Set to clear history at 5%
Apr 27 11:19:17 db2 weewx[13846]: wmr300x: using PyUSB backend: libusb1
Apr 27 11:19:18 db2 kernel: usb 2-2.1: reset full speed USB device number 4 
using uhci_hcd
Apr 27 11:19:18 db2 weewx[13846]: wmr300x: send initial heartbeat, try 1
Apr 27 11:19:18 db2 weewx[13846]: wmr300x: Initiation completed
Apr 27 11:19:18 db2 weewx[13846]: engine: StdConvert target unit is 0x1
Apr 27 11:19:18 db2 weewx[13846]: wxcalculate: The following values will be 
calculated: barometer=prefer_hardware, windchill=hardware, 
dewpoint=hardware, appTemp=prefer_hardware, rainRate=hardware, 
windrun=prefer_hardware, heatindex=hardware, maxSolarRad=prefer_hardware, 
humidex=prefer_hardware, pressure=prefer_hardware, 
inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, 
cloudbase=prefer_hardware
Apr 27 11:19:18 db2 weewx[13846]: wxcalculate: The following algorithms 
will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Apr 27 11:19:18 db2 weewx[13846]: engine: Archive will use data binding 
wx_binding
Apr 27 11:19:18 db2 weewx[13846]: engine: Record generation will be 
attempted in 'hardware'
Apr 27 11:19:18 db2 weewx[13846]: engine: Using archive interval of 120 
seconds (specified in weewx configuration)
Apr 27 11:19:18 db2 weewx[13846]: engine: Using binding 'wx_binding' to 
database 'weewx.sdb'
Apr 27 11:19:18 db2 weewx[13846]: manager: Starting backfill of daily 
summaries
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: Zambretti: forecast 
version 3.2.19
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: Zambretti: 
interval=600 max_age=604800 winddir_period=1800 pressure_period=10800 
hemisphere=NORTH lower_pressure=950.0 upper_pressure=1050.0
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: NWS: forecast 
version 3.2.19
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: NWS: location ID 
(lid) is not specified
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: NWS: forecast 
office ID (foid) is not specified
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: NWS: forecast will 
not be run
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: WU: forecast 
version 3.2.19
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: WU: interval=10800 
max_age=604800 api_key=XXXXXX location=51.45309,0.09846 fc=hourly10day
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: OWM: forecast 
version 3.2.19
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: OWM: API key 
(api_key) is not specified
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: OWM: forecast will 
not be run
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: UKMO: forecast 
version 3.2.19
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: UKMO: 
interval=10800 max_age=604800 api_key=XXXXXX location=XXXXXX
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: Aeris: forecast 
version 3.2.19
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: Aeris: client 
identifier (client_id) is not specified
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: Aeris: client 
secret (client_secret) is not specified
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: Aeris: forecast 
will not be run
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: WWO: forecast 
version 3.2.19
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: WWO: API key 
(api_key) is not specified
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: WWO: forecast will 
not be run
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: XTide: forecast 
version 3.2.19
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: XTide: location 
(location) has not been specified
Apr 27 11:19:19 db2 weewx[13846]: forecast: MainThread: XTide: forecast 
will not be run
Apr 27 11:19:19 db2 weewx[13846]: restx: StationRegistry: Station will be 
registered.
Apr 27 11:19:19 db2 weewx[13846]: restx: Wunderground-PWS: Data for station 
XXXXX will be posted
Apr 27 11:19:19 db2 weewx[13846]: restx: PWSweather: Posting not enabled.
Apr 27 11:19:19 db2 weewx[13846]: restx: CWOP: Posting not enabled.
Apr 27 11:19:19 db2 weewx[13846]: restx: WOW: Posting not enabled.
Apr 27 11:19:19 db2 weewx[13846]: restx: AWEKAS: Posting not enabled.
Apr 27 11:19:19 db2 weewx[13846]: engine: Starting up weewx version 3.8.0
Apr 27 11:19:19 db2 weewx[13846]: wmr300x: read Hist since 2018-04-27 
11:12:00 BST (XXXXXX): from 31 to 82
Apr 27 11:19:19 db2 weewx[13846]: wmr300x: send history startup, try 1
Apr 27 11:19:19 db2 weewx[13846]: wmr300x: initHist: discarded 22 packets
Apr 27 11:19:19 db2 weewx[13846]: wmr300x: Initing history req with cmd 
0x65, starting with record 32
Apr 27 11:19:19 db2 weewx[13846]: wmr300x: History read initiated
Apr 27 11:19:19 db2 weewx[13846]: wmr300x: possible missed rain event: 
new=213.614 old=None
Apr 27 11:19:19 db2 weewx[13846]: manager: Added record 2018-04-27 11:14:00 
BST (XXXXXX) to database 'weewx.sdb'
Apr 27 11:19:19 db2 weewx[13846]: manager: Added record 2018-04-27 11:14:00 
BST (XXXXXX) to daily summary in 'weewx.sdb'
Apr 27 11:19:19 db2 weewx[13846]: forecast: ZambrettiThread: Zambretti: 
generated 1 forecast record
Apr 27 11:19:19 db2 weewx[13846]: manager: Added record 2018-04-27 11:15:00 
BST (XXXXXX) to database 'weewx.sdb'
Apr 27 11:19:19 db2 weewx[13846]: manager: Added record 2018-04-27 11:15:00 
BST (XXXXXX) to daily summary in 'weewx.sdb'
Apr 27 11:19:19 db2 weewx[13846]: forecast: ZambrettiThread: Zambretti: 
saved 1 forecast records
Apr 27 11:19:19 db2 weewx[13846]: forecast: ZambrettiThread: Zambretti: 
deleted forecasts prior to 1524219559
Apr 27 11:19:19 db2 weewx[13846]: manager: Added record 2018-04-27 11:16:00 
BST (XXXXXX) to database 'weewx.sdb'
Apr 27 11:19:19 db2 weewx[13846]: manager: Added record 2018-04-27 11:16:00 
BST (XXXXXX) to daily summary in 'weewx.sdb'
Apr 27 11:19:19 db2 weewx[13846]: manager: Added record 2018-04-27 11:17:00 
BST (XXXXXX) to database 'weewx.sdb'
Apr 27 11:19:19 db2 weewx[13846]: manager: Added record 2018-04-27 11:17:00 
BST (XXXXXX) to daily summary in 'weewx.sdb'
Apr 27 11:19:20 db2 weewx[13846]: manager: Added record 2018-04-27 11:18:00 
BST (XXXXXX) to database 'weewx.sdb'
Apr 27 11:19:20 db2 weewx[13846]: manager: Added record 2018-04-27 11:18:00 
BST (XXXXXX) to daily summary in 'weewx.sdb'
Apr 27 11:19:20 db2 weewx[13846]: restx: Wunderground-PWS: Published record 
2018-04-27 11:14:00 BST (XXXXXX)
Apr 27 11:19:20 db2 weewx[13846]: restx: StationRegistry: Published record 
2018-04-27 11:14:00 BST (XXXXXX)
Apr 27 11:19:20 db2 weewx[13846]: manager: Added record 2018-04-27 11:19:00 
BST (XXXXXX) to database 'weewx.sdb'
Apr 27 11:19:20 db2 weewx[13846]: manager: Added record 2018-04-27 11:19:00 
BST (XXXXXX) to daily summary in 'weewx.sdb'
Apr 27 11:19:20 db2 weewx[13846]: wmr300x: catchup nearly complete: count=6 
kept, last_received=81 final=82; state=reading history
Apr 27 11:19:20 db2 weewx[13846]: wmr300x: request station status at index: 
81; state: finishing
Apr 27 11:19:20 db2 weewx[13846]: wmr300x: catchup completed: count=6 kept 
last_index rcvd=81 final_index=82; state = wait57
Apr 27 11:19:20 db2 weewx[13846]: wmr300x: history finish, try 1
Apr 27 11:19:20 db2 weewx[13846]: restx: Wunderground-PWS: Published record 
2018-04-27 11:15:00 BST (XXXXXX)
Apr 27 11:19:20 db2 weewx[13846]: wmr300x: finHist: discarded 2 packets
Apr 27 11:19:20 db2 weewx[13846]: wmr300x: History read completed
Apr 27 11:19:20 db2 weewx[13846]: engine: Starting main packet loop.
Apr 27 11:19:20 db2 weewx[13846]: restx: Wunderground-PWS: Published record 
2018-04-27 11:16:00 BST (XXXXXX)
Apr 27 11:19:21 db2 weewx[13846]: restx: Wunderground-PWS: Published record 
2018-04-27 11:17:00 BST (XXXXXX)
Apr 27 11:19:21 db2 weewx[13846]: restx: Wunderground-PWS: Published record 
2018-04-27 11:18:00 BST (XXXXXX)
Apr 27 11:19:21 db2 weewx[13846]: restx: Wunderground-PWS: Published record 
2018-04-27 11:19:00 BST (XXXXXX)
Apr 27 11:19:40 db2 weewx[13846]: wmr300x: History now at 0.2% capacity
Apr 27 11:20:14 db2 weewx[13846]: manager: Added record 2018-04-27 11:20:00 
BST (XXXXXX) to database 'weewx.sdb'
Apr 27 11:20:14 db2 weewx[13846]: manager: Added record 2018-04-27 11:20:00 
BST (XXXXXX) to daily summary in 'weewx.sdb'
Apr 27 11:20:15 db2 weewx[13846]: restx: Wunderground-PWS: Published record 
2018-04-27 11:20:00 BST (XXXXXX)

And then, right at the end ... 

Apr 27 11:20:16 db2 kernel: weewxd[13853]: segfault at 8 ip 
00007fc8b2c9e22e sp 00007fc8a4a1cdc0 error 4 in 
libpython2.6.so.1.0[7fc8b2c20000+15d000]

... bam!  Dead! 

My theory - and it's probably garbage as I know nothing about development 
past 'Hello World' in C - is that there is an incompatibility with 
something I copied over from /home/weewx/bin on the Raspberry Pi, to this 
CentOS host, since the Pi is a variant of Debian, and the VM is obviously, 
RHEL/CentOS.    So I tried to copy over the bin directory from the actual 
source tarball that I had grabbed from thi weewx site, but the service 
totally refused to start. 

All tips gratefully received. 

Thanks. 

-- 
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.

Reply via email to