Weewx + wifi restart possibly crashing MB

This section covers the Meteobridge PRO, NANO SD and Raspberry Pi units exclusively

Moderator: Mattk

Post Reply
User avatar
staze
Gold Boarder
Gold Boarder
Posts: 170
Joined: Fri Jan 18, 2019 2:56 am
Contact:

Weewx + wifi restart possibly crashing MB

Post by staze »

Just had my second instance of Weewx (possibly triggered by also restarting my access point) crashing my MB station connection to the point it wouldn't restart from the GUI (had to SSH in to issue reboot command).

Console just says:

system (13.05.2022 21:01:45): Disconnected from WLAN or Internet, reconnect issued.
system (13.05.2022 21:01:52): Access point operation temporarily enabled.
system (13.05.2022 21:06:24): Disconnected from WLAN or Internet, reconnect issued.
system (13.05.2022 21:06:31): Access point operation temporarily enabled.
system (13.05.2022 21:11:04): Access point operation disabled 171572 secs after boot.
logger (13.05.2022 21:12:23): child process received timeout signal (14).
logger (13.05.2022 21:12:23): disconnect station 0 (Vantage): exit

Any idea what might be going on?
Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD
User avatar
Gyvate
Gold Boarder
Gold Boarder
Posts: 241
Joined: Thu May 14, 2020 4:36 pm

Re: Weewx + wifi restart possibly crashing MB

Post by Gyvate »

I think MB just didn't like your rebooting of the WLAN access point while in operation. That was going on 8)
If you had shut down your MB until your AP finished rebooting and restarted it then after, the issue would most likely not have occurred.
Weewx is, by the way, depending on the station driver you use, usually sensisitve to losing connectivity, be it WLAN or LAN.
Imo that's a network issue and not an application issue.
The application tried to manage with it (see your log) but somehow failed.
When you reboot your smartphone while having a phone call, you don't blame the phone app for the connection being interrupted and not being reestablished, do you ?
WH4000SE 1.6.4/1 x DP1500/4 x GW1000 1.7.2/GW1100 2.1.4/HP1000SE Pro 1.8.0/2 x WH2650 1.7.2/GW2000 2.1.4
2xMeteobridge Pro [B+R] 14745, RPi4-2/16 release 2671
Ecowitt 5763, 5764; WU ISAARB3; ISAARB22; Weathercloud 3011399141; http://meshka.eu
User avatar
staze
Gold Boarder
Gold Boarder
Posts: 170
Joined: Fri Jan 18, 2019 2:56 am
Contact:

Re: Weewx + wifi restart possibly crashing MB

Post by staze »

Agreed... but my phone doesn't crash if I reboot the wifi when it's in use... I just drop the call. =/

I remember now I used to see this issue when I used weathercat over 22222 and wifi dropped. MB would lose it's mind and crash after a bit. Seems like a bug to me, but no matter. I've switched to another method for weewx and will let MB do it's thing without the loop protocol.
Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD
iamdm
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: Fri Apr 08, 2022 3:58 pm

Re: Weewx + wifi restart possibly crashing MB

Post by iamdm »

I get a similar behavior, albeit totally different kit... I've got a GW1000 set up as my station 1, running on a mesh wifi network (the MB and Gw1000 are connected to the same node, although one is on wifi, the other ethernet). Everytime there's a change on the mesh network MB "loses" the GW1000 and won't find it again until the MB is rebooted. That change can literally be anything on the wlan, so no real way to mitigate it, or really track down if it's a specific variable. So it happens every few days.

So I agree, this isn't really a network issue (networks are expected to be dynamic in some ways), the software should be able to handle it. Either that or let me set a reboot schedule for the MB (likely every 24hrs!).
Post Reply