Cerbo GX watchdog and reboot

Cerbo GX with Venus OS v3.81 repeatedly reboots – watchdog reports “load average too high”

Hello everyone,

My Cerbo GX (“einstein”) has been repeatedly rebooting for the past few days. I was there during one incident: the red fault LED was flashing, the LEDs on the LAN port briefly went out, and the device disconnected my SSH session. After a few minutes, the Cerbo was reachable again; uptime confirmed that it had rebooted.

The logs show the watchdog as the immediate cause. For example, on 15 October:

12:29:46 watchdog: loadavg 12 9 7 is higher than the given threshold 0 10 6!
12:29:47 watchdog: repair binary ... returned 253 = 'load average too high'
12:29:47 watchdog: shutting down the system because of error 253 = 'load average too high'

There are similar watchdog entries and reboots several times on 13, 14 and 15 October. I’m running Venus OS v3.81, Build 30253. /etc/watchdog.conf contains:

min-memory = 2500
max-load-5 = 10
max-load-15 = 6

A snapshot taken during a period of high load showed top reporting around 45% user CPU, 15% system CPU and 34% idle, with a load average of roughly 12 / 10 / 7. There were still several hundred MB of RAM free. No single process that could account for the entire load was apparent in that snapshot. So the elevated load value is confirmed, but its cause is still unknown.

One possible contributing factor is serial-starter: an optically isolated FTDI Quad RS232-HS adapter is connected to the Cerbo. Currently, only one channel (ttyUSB0) is connected to a Victron device. The unused channels ttyUSB1 to ttyUSB3 are continuously checked by VE.Direct and GPS drivers. The logs repeatedly show timeout connecting device for these channels, about every three seconds. In the serial-starter log, I saw around 100 service starts over roughly 3.7 minutes; attempts to use the free channels were repeated about every 17 seconds. I don’t see these repeated timeouts for ttyUSB0.

If possible, I’d like to avoid permanently disabling the free channels, as they may be used later. I couldn’t find a setting for the retry interval in /etc/venus/serial-starter.conf. In the /opt/victronenergy/serial-starter/serial-starter.sh script, the only thing I see at the end of the main loop is sleep 2. So far, I have not changed the script or the watchdog configuration.

My questions:

  1. Is there a supported, update-safe way in Venus OS v3.81 to increase the detection/retry interval for currently unused serial channels without excluding them entirely?

  2. Could the repeated driver starts plausibly cause this kind of load average, or what other metrics/logs should I collect before the next watchdog reboot to identify the actual source of the load?

  3. Are similar watchdog reboots or serial-starter issues known in v3.81?

The watchdog message explains the reboot; before changing the watchdog thresholds or system scripts, I’d first like to find the cause of the high load.

Best wishes,
Stefan

Hi, welcome.
Please try keep topics concise, filtering them through an AI just adds detail, makes it impersonal and adds length that makes it less inviting for people to engage with. It just gets summarised by another bot then we have human proxies for models and not real engagement. We’re all human volunteers not an engineering department and it is far more enjoyable to help when it doesn’t feel like you’re reading a thesis.

These watchdog events only occur with modifications and custom drivers.
You can see them on nodered flows that use cloud services when the internet drops and its more common with setup helper and gui mods.

Watchdog keeps a watchdog_process list log that you can check, top is also a good place to start.

There is no supported way to modify the OS, people do of course but it should not be necessary.
If there are misbehaving mods and customisations they should be improved to behave correctly.

Sorry, won’t happen again. I was looking into the cause with an LLM, and since we’d already gathered the findings, I asked it to put them together. Next time I’ll write the post in my own words. My English isn’t great, but I’ll do my best. :wink:

No need to stress, we automatically translate topics into 7 languages, so just be yourself and let the bits and bytes do the working for you.

Let us know how you go, it usually is straight-forward to find the watchdog culprit.
A mk1 cerbo isn’t as powerful as the new ones, but there should be more than enough horsepower to support almost all requirements.

It’s an MK II, so it’s not quite so old; the DBUS timing is also noticeable.

A mk1 and mk2 share the same cpu, the new mk3 just went quad-core.
Those spikes aren’t good, the rest looks fine. Intermittent load can be more difficult to trace if it isn’t predicable or associated with known processes.

That’s my problem: sometimes it runs for days without a single error, and then you get four errors in one day.
Every now and then, shortly beforehand, VRM reports that the MPPT “Carport” (Master) can’t find the BMS.
The BMS is connected to the second CAN bus, and the error is shown as resolved again just 1–2 seconds later.
Those messages also fit the DBUS timing problem.

When it happens next, pull a copy of /var/log/watchdog_processlist
It should show what it was watching at the time.

If you suspect the serial interface, can you isolate it for a while? The days in between events is going to be challenging.
I recall reading something about issues with quad adapters, not about the watchdog though. Hopefully it comes back to me.

The only thing I found was that the 15-minute value was 7; I couldn’t find a reason for it.

EDIT:

I did manage to find the watchdog_processlist from the last automatic restart. It was at 10:28 UTC on 16 October. The watchdog reported loadavg 12 9 7, with limits of 0 10 6.

From the process list:

Mem: 714868K used, 313096K free
CPU: 22% usr  4% sys  68% idle  0% io
Load average: 12.37 9.19 7.02

%CPU  COMMAND
  9   /opt/victronenergy/gui/gui -neatvnc 127.0.0.1
  5   gps_dbus ... /dev/ttyUSB1
  5   [irq/63-spi0.0]
  0   node-red
  0   serial-starter.sh

gps-dbus is still checking the three unused ports on my quad USB adapter. I can’t tell from this snapshot whether that has anything to do with the high load. I can’t see any single process here that would explain it.

I then tried increasing max-load-15 from 6 to 8; max-load-5 is still set to 10.