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.

On Monday, July 27, 2020 at 9:49:32 AM UTC-4 Jamie Stephens wrote:

> [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
>
> ##############################################################################
>
> On Monday, July 27, 2020 at 9:38:42 AM UTC-4 Jamie Stephens wrote:
>
>> 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.
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f590a66d-f27e-471e-adf2-cbf3d1f5bb41n%40googlegroups.com.

Reply via email to