I should add that I tried to start weewx manually after I discovered it 
wasn't running using

> sudo /etc/init.d/weewx start
>

It didn't start and I didn't see anything coming syslog. I rebooted the Pi 
and it started normally, including HP1000 loading the records it had 
missed. 

On Wednesday, March 27, 2019 at 3:35:44 PM UTC-5, Ron wrote:
>
> I discovered today that weewx was no longer running. It had been running 
> fine for several days. I installed it late last week using the Debian 
> instructions <http://weewx.com/docs/debian.htm> and used these 
> instructions 
> <http://landoflinux.com/linux_raspberry_pi_weather_station.html> 
> regarding installation of the HP1000 driver. At the bottom of this post I 
> included the crash related entries +/- a few lines as well as what I see in 
> systemctl. I'm not sure but possibly the HP1000 driver got a malformed 
> packet from my AW WS-1001 (?). As far as I can tell there was no effort by 
> the system to restart weewx. I did confirm there was no weewx process 
> running.
>
> Do you have any advice on how to have it better cope with this error? If 
> it happened once after a few days I imagine it will happen again. There 
> were no known networking issues yesterday. Thanks!
>
> I did a systemctl status command and weewx was listed there as expected:
>
>> system.slice
>>
>>              ├─weewx.service
>>
>>              │ └─428 python /usr/bin/weewxd --daemon 
>>> --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf
>>
>>
>
> Mar 26 20:00:28 AllenWeather weewx[7839]: reportengine: Found 
>>> configuration file /etc/weewx/skins/Seasons/skin.conf for report 
>>> 'SeasonsReport'
>>
>> Mar 26 20:00:28 AllenWeather weewx[7839]: cheetahgenerator: using search 
>>> list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
>>> 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
>>> 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
>>
>> Mar 26 20:00:28 AllenWeather weewx[7839]: manager: Daily summary version 
>>> is 2.0
>>
>> Mar 26 20:00:37 AllenWeather weewx[7839]: cheetahgenerator: Generated 8 
>>> files for report SeasonsReport in 8.54 seconds
>>
>> Mar 26 20:00:37 AllenWeather weewx[7839]: manager: Daily summary version 
>>> is 2.0
>>
>> Mar 26 20:00:52 AllenWeather weewx[7839]: imagegenerator: Generated 28 
>>> images for SeasonsReport in 15.84 seconds
>>
>> Mar 26 20:00:52 AllenWeather weewx[7839]: copygenerator: copied 0 files 
>>> to /var/www/html/weewx
>>
>> Mar 26 20:00:52 AllenWeather weewx[7839]: reportengine: Report 
>>> 'SmartphoneReport' not enabled. Skipping.
>>
>> Mar 26 20:00:52 AllenWeather weewx[7839]: reportengine: Report 
>>> 'MobileReport' not enabled. Skipping.
>>
>> Mar 26 20:00:52 AllenWeather weewx[7839]: reportengine: Report 
>>> 'StandardReport' not enabled. Skipping.
>>
>> Mar 26 20:00:52 AllenWeather weewx[7839]: reportengine: Report 'FTP' not 
>>> enabled. Skipping.
>>
>> Mar 26 20:00:52 AllenWeather weewx[7839]: reportengine: Running report 
>>> 'RSYNC'
>>
>> Mar 26 20:00:52 AllenWeather weewx[7839]: reportengine: Found 
>>> configuration file /etc/weewx/skins/Rsync/skin.conf for report 'RSYNC'
>>
>> Mar 26 20:00:55 AllenWeather weewx[7839]: rsyncupload: rsync'd 1 files 
>>> (41,762,816 bytes) in 2.69 seconds
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]: engine: Main loop exiting. 
>>> Shutting engine down.
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]: engine: Shutting down StdReport 
>>> thread
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]: engine: StdReport thread has 
>>> been terminated
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]: restx: Shut down CWOP thread.
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]: restx: Shut down 
>>> StationRegistry thread.
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]: engine: Caught unrecoverable 
>>> exception in engine:
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]:     ****  unpack requires a 
>>> string argument of length 104
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]:     ****  Traceback (most 
>>> recent call last):
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]:     ****    File 
>>> "/usr/share/weewx/weewx/engine.py", line 890, in main
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]:     ****      engine.run()
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]:     ****    File 
>>> "/usr/share/weewx/weewx/engine.py", line 188, in run
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]:     ****      for packet in 
>>> self.console.genLoopPackets():
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]:     ****    File 
>>> "/usr/share/weewx/user/HP1000.py", line 524, in genLoopPackets
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]:     ****      interp_data = 
>>> struct.unpack("8s8s16s8shbb14fbbh", rxData)
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]:     ****  error: unpack 
>>> requires a string argument of length 104
>>
>> Mar 26 20:02:17 AllenWeather weewx[7839]:     ****  Exiting.
>>
>> Mar 26 20:09:01 AllenWeather systemd[1]: Starting Clean php session 
>>> files...
>>
>> Mar 26 20:09:01 AllenWeather CRON[14845]: (root) CMD (  [ -x 
>>> /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then 
>>> /usr/lib/php/sessionclean; fi)
>>
>> Mar 26 20:09:02 AllenWeather systemd[1]: Started Clean php session files.
>>
>> Mar 26 20:17:01 AllenWeather CRON[14908]: (root) CMD (   cd / && 
>>> run-parts --report /etc/cron.hourly)
>>
>> Mar 26 20:39:01 AllenWeather systemd[1]: Starting Clean php session 
>>> files...
>>
>> Mar 26 20:39:01 AllenWeather CRON[14932]: (root) CMD (  [ -x 
>>> /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then 
>>> /usr/lib/php/sessionclean; fi)
>>
>> Mar 26 20:39:02 AllenWeather systemd[1]: Started Clean php session files.
>>
>> Mar 26 21:09:01 AllenWeather CRON[15003]: (root) CMD (  [ -x 
>>> /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then 
>>> /usr/lib/php/sessionclean; fi)
>>
>> Mar 26 21:09:01 AllenWeather systemd[1]: Starting Clean php session 
>>> files...
>>
>> Mar 26 21:09:02 AllenWeather systemd[1]: Started Clean php session files.
>>
>> Mar 26 21:17:01 AllenWeather CRON[15069]: (root) CMD (   cd / && 
>>> run-parts --report /etc/cron.hourly)
>>
>> Mar 26 21:39:01 AllenWeather systemd[1]: Starting Clean php session 
>>> files...
>>
>> Mar 26 21:39:01 AllenWeather CRON[15092]: (root) CMD (  [ -x 
>>> /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then 
>>> /usr/lib/php/sessionclean; fi)
>>
>> Mar 26 21:39:02 AllenWeather systemd[1]: Started Clean php session files.
>>
>> Mar 26 22:09:01 AllenWeather systemd[1]: Starting Clean php session 
>>> files...
>>
>>
>>>

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

Reply via email to