weatherflowudp crash

73 views
Skip to first unread message

Jamie Stephens

unread,
Jul 27, 2020, 9:38:42 AM7/27/20
to weewx-user
adter a couple day weewx will shutdown this is what i see in the logs. it will run anywhere from 1-3 days before this happens

running Ubuntu 20.04 on a VM
last successful update before crash was at 755 am
Jul 27 07:55:25 weewx weewx[4992] INFO weewx.manager: Added record 2020-07-27 07:55:00 EDT (1595850900) to daily summary in 'weewx.sdb'
Jul 27 07:55:25 weewx weewx[4992] DEBUG weewx.reportengine: Running reports for latest time in the database.
Jul 27 07:55:25 weewx /weewxd: weatherflowudp: MainThread: Listening for UDP broadcasts to IP address <broadcast> on port 50222, with timeout 90 and share>
Jul 27 07:55:25 weewx weewx[4992] DEBUG weewx.restx: StationRegistry: wait interval (69600 < 604800) has not passed for record 2020-07-27 07:55:00 EDT (15>
Jul 27 07:55:25 weewx weewx[4992] DEBUG weewx.reportengine: Running report 'SeasonsReport'
Jul 27 07:55:25 weewx weewx[4992] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Jul 27 07:55:25 weewx weewx[4992] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'we>
Jul 27 07:55:25 weewx weewx[4992] DEBUG weewx.manager: Daily summary version is 2.0
Jul 27 07:55:25 weewx weewx[4992] DEBUG weewx.restx: CWOP: Connected to server cwop.aprs.net:14580
Jul 27 07:55:25 weewx weewx[4992] INFO weewx.restx: PWSWeather: Published record 2020-07-27 07:55:00 EDT (1595850900)
Jul 27 07:55:25 weewx weewx[4992] INFO weewx.restx: CWOP: Published record 2020-07-27 07:55:00 EDT (1595850900)
Jul 27 07:55:25 weewx weewx[4992] INFO weewx.restx: Wunderground-PWS: Published record 2020-07-27 07:55:00 EDT (1595850900)
Jul 27 07:55:27 weewx weewx[4992] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.84 seconds
Jul 27 07:55:27 weewx weewx[4992] DEBUG weewx.manager: Daily summary version is 2.0
Jul 27 07:55:27 weewx weewx[4992] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.51 seconds
Jul 27 07:55:27 weewx weewx[4992] INFO weewx.reportengine: Copied 0 files to /var/www/html/
Jul 27 07:55:27 weewx weewx[4992] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Jul 27 07:55:27 weewx weewx[4992] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
Jul 27 07:55:27 weewx weewx[4992] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
Jul 27 07:55:27 weewx weewx[4992] DEBUG weewx.reportengine: Running report 'Belchertown'
Jul 27 07:55:28 weewx weewx[4992] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Belchertown/skin.conf for report 'Belchertown'
Jul 27 07:55:28 weewx weewx[4992] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'we>
Jul 27 07:55:28 weewx weewx[4992] DEBUG weewx.manager: Daily summary version is 2.0
Jul 27 07:55:29 weewx weewx[4992] INFO weewx.cheetahgenerator: Generated 11 files for report Belchertown in 1.92 seconds
Jul 27 07:55:29 weewx weewx[4992] INFO weewx.reportengine: Copied 2 files to /var/www/html
Jul 27 07:55:29 weewx weewx[4992] DEBUG weewx.manager: Daily summary version is 2.0
Jul 27 07:55:32 weewx weewx[4992] DEBUG weewx.reportengine: Report 'FTP' not enabled. Skipping.
Jul 27 07:55:32 weewx weewx[4992] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.


Jul 27 07:59:39 weewx weewx[4992] INFO weewx.engine: Main loop exiting. Shutting engine down.
Jul 27 07:59:39 weewx weewx[4992] INFO weewx.engine: Shutting down StdReport thread
Jul 27 07:59:39 weewx weewx[4992] DEBUG weewx.engine: StdReport thread has been terminated
Jul 27 07:59:39 weewx weewx[4992] DEBUG weewx.restx: Shut down CWOP thread.
Jul 27 07:59:39 weewx weewx[4992] DEBUG weewx.restx: Shut down PWSWeather thread.
Jul 27 07:59:39 weewx weewx[4992] DEBUG weewx.restx: Shut down Wunderground-PWS thread.
Jul 27 07:59:39 weewx weewx[4992] DEBUG weewx.restx: Shut down StationRegistry thread.
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__: Caught unrecoverable exception:
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****  a bytes-like object is required, not 'str'
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****  Traceback (most recent call last):
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****    File "/usr/share/weewx/user/weatherflowudp.py", line 310, in genLoopPackets
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****      m0 = str(m[0],'utf-8').replace(",null",",None")    # Python 3
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xaa in position 2: invalid start byte
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****  During handling of the above exception, another exception occurred:
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****  Traceback (most recent call last):
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 154, in main
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****      engine.run()
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 188, in run
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****      for packet in self.console.genLoopPackets():
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****    File "/usr/share/weewx/user/weatherflowudp.py", line 312, in genLoopPackets
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****      m0 = m[0].replace(",null",",None")                 # Python 2
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****  TypeError: a bytes-like object is required, not 'str'
Jul 27 07:59:39 weewx weewx[4992] CRITICAL __main__:     ****  Exiting.
Jul 27 08:09:44 weewx systemd[1]: Starting Message of the Day...
Jul 27 08:09:46 weewx 50-motd-news[6237]:  * "If you've been waiting for the perfect Kubernetes dev solution for
Jul 27 08:09:46 weewx 50-motd-news[6237]:    macOS, the wait is over. Learn how to install Microk8s on macOS."
Jul 27 08:09:46 weewx 50-motd-news[6237]:    https://www.techrepublic.com/article/how-to-install-microk8s-on-macos/
Jul 27 08:09:46 weewx systemd[1]: motd-news.service: Succeeded.
Jul 27 08:09:46 weewx systemd[1]: Finished Message of the Day.

Jamie Stephens

unread,
Jul 27, 2020, 9:49:32 AM7/27/20
to weewx-user
[WeatherFlowUDP]
    driver = user.weatherflowudp
    log_raw_packets = False
    udp_address = <broadcast>
    # udp_address = 0.0.0.0
    # udp_address = 255.255.255.255
    udp_port = 50222
    udp_timeout = 90
    share_socket = False

    [[sensor_map]]
        outTemp = air_temperature.ST-00015203.obs_st
        outHumidity = relative_humidity.ST-00015203.obs_st
        pressure = station_pressure.ST-00015203.obs_st
        #lightning_strikes =  lightning_strike_count.ST-00015203.obs_st
        #avg_distance =  lightning_strike_avg_distance.ST-00015203.obs_st
        outTempBatteryStatus = battery.ST-00015203.obs_st
        windSpeed = wind_speed.ST-00015203.rapid_wind
        windDir = wind_direction.ST-00015203.rapid_wind
        #luxXXX = illuminance.ST-00015203.obs_st
        UV = uv.ST-00015203.obs_st
        rain = rain_accumulated.ST-00015203.obs_st
        windBatteryStatus = battery.ST-00015203.obs_st
        radiation = solar_radiation.ST-00015203.obs_st
        #lightningXXX = distance.ST-00015203.evt_strike
        #lightningYYY = energy.ST-00015203.evt_strike
##############################################################################

Jamie Stephens

unread,
Jul 28, 2020, 6:38:39 PM7/28/20
to weewx-user
another crash, any ideas?

Jul 28 08:20:26 weewx weewx[6505] DEBUG weewx.restx: CWOP: Connected to server cwop.aprs.net:14580
  GNU nano 4.8                                                              syslog                                                               Modified  
Jul 28 17:58:23 weewx weewx[6505] CRITICAL __main__:     ****    File "/usr/share/weewx/user/weatherflowudp.py", line 312, in genLoopPackets
Jul 28 17:58:23 weewx weewx[6505] CRITICAL __main__:     ****      m0 = m[0].replace(",null",",None")                 # Python 2
Jul 28 17:58:23 weewx weewx[6505] CRITICAL __main__:     ****  TypeError: a bytes-like object is required, not 'str'       
Jul 28 17:58:23 weewx weewx[6505] CRITICAL __main__:     ****  Exiting.

vince

unread,
Jul 28, 2020, 7:06:27 PM7/28/20
to weewx-user
On Tuesday, July 28, 2020 at 3:38:39 PM UTC-7, Jamie Stephens wrote:
another crash, any ideas?


First guess is a python2/python3 thing.   Are you on the latest version of the driver ?

Jamie Stephens

unread,
Jul 28, 2020, 7:36:22 PM7/28/20
to weewx-user
thanks Vince using 1.10 

might start disabling stuff and see if i can figure it out.

vince

unread,
Jul 28, 2020, 7:49:50 PM7/28/20
to weewx-user
FWIW, I'm using driver 1.1, weewx 4.1.1, python 3.5.3 on a somewhat dated pi3plus (Debian 9), with weewx installed using python3 and setup.py method.

vince

unread,
Jul 28, 2020, 7:50:32 PM7/28/20
to weewx-user
On Tuesday, July 28, 2020 at 4:49:50 PM UTC-7, vince wrote:
FWIW, I'm using driver 1.1, weewx 4.1.1, python 3.5.3 on a somewhat dated pi3plus (Debian 9), with weewx installed using python3 and setup.py method.

doh - Belchertown 1.1, mqtt 0.23, and weatherflowudp 1.10 that is.... 

Jamie Stephens

unread,
Jul 28, 2020, 7:51:55 PM7/28/20
to weewx...@googlegroups.com
I didn’t do the setup.py method.   I’m still a Linux newb haha
Reply all
Reply to author
Forward
0 new messages