[WeatherFlowUDP]

51 views
Skip to first unread message

rons...@gmail.com

unread,
Sep 2, 2021, 8:31:51 AMSep 2
to weewx-user
I get this error when I restart weewx.  any ideas?

Sep  2 08:28:40 raspberrypi weewx[1293] INFO __main__: Terminating weewx version 4.5.1
Sep  2 08:28:40 raspberrypi weewx[1293] DEBUG __main__:     ****  Traceback (most recent call last):
Sep  2 08:28:40 raspberrypi weewx[1293] DEBUG __main__:     ****    File "/usr/share/weewx/weewxd", line 157, in main
Sep  2 08:28:40 raspberrypi weewx[1293] DEBUG __main__:     ****      engine.run()
Sep  2 08:28:40 raspberrypi weewx[1293] DEBUG __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 208, in run
Sep  2 08:28:40 raspberrypi weewx[1293] DEBUG __main__:     ****      for packet in self.console.genLoopPackets():
Sep  2 08:28:40 raspberrypi weewx[1293] DEBUG __main__:     ****    File "/usr/share/weewx/user/weatherflowudp.py", line 574, in genLoopPackets
Sep  2 08:28:40 raspberrypi weewx[1293] DEBUG __main__:     ****      for udp_packet in self.gen_udp_packets():
Sep  2 08:28:40 raspberrypi weewx[1293] DEBUG __main__:     ****    File "/usr/share/weewx/user/weatherflowudp.py", line 595, in gen_udp_packets
Sep  2 08:28:40 raspberrypi weewx[1293] DEBUG __main__:     ****      m0, host_info = sock.recvfrom(1024)
Sep  2 08:28:40 raspberrypi weewx[1293] DEBUG __main__:     ****    File "/usr/share/weewx/weewxd", line 260, in sigTERMhandler
Sep  2 08:28:40 raspberrypi weewx[1293] DEBUG __main__:     ****      raise Terminate
Sep  2 08:28:40 raspberrypi weewx[1293] DEBUG __main__:     ****  Terminate
Sep  2 08:28:40 raspberrypi weewx[25300]: Stopping weewx weather system: weewx.

weewx.conf

vince

unread,
Sep 2, 2021, 12:50:45 PMSep 2
to weewx-user
Best guess is it didn't really stop and the weatherflowudp driver tried to bind to the network when another process was already listening to that port.   Sometimes things can get a little confused when you do a lot of restarts.   Try stopping weewx 'twice' and then starting it.  It should work.
Reply all
Reply to author
Forward
0 new messages