We are working with a few OAK 4 S (Wide) cameras installed at a client's facility, running a single, custom OAK App. We have been experiencing issues where the devices shutdown, and have not been able to determine a cause. The client's IT staff have not found any issues with their infrastructure, and we have not found any issues with the software or camera.
We have found some logs like this in dmesg:
PMIC PON log: Fundamental Reset: PON_PBL_STATUS=XVDD, DVDD
PMIC PON log: FAULT_REASON2=RESTART_PON
Some online searches suggest that might indicate a restart due to low voltage, but we have not found a reliable source for that, including in Luxonis documentation or these forums.
Question: Do you have any suggestions for collecting device logs from the OAK 4 S, and which logs would be best to look at?
Logs/Commands
From our own investigation, we have found the following logs/commands, none of which have exposed a root cause:
Files/logs:
/proc/loadavg - 1/5/15-min load averages
/proc/uptime - system uptime
/proc/meminfo - specifically the MemAvailable: line
/sys/class/thermal/thermal_zone*/type and /sys/class/thermal/thermal_zone*/temp - one pair per populated thermal zone
/sys/class/net/eth0/carrier - link state
/sys/class/net/eth0/carrier_changes - link flap counter
/sys/class/net/eth0/statistics/rx_errors and /sys/class/net/eth0/statistics/tx_errors
/overlay/persistent-logs/kern.log (+ .1, .2.gz) - rsyslog's continuous kernel-message mirror
/overlay/persistent-logs/syslog (+ .1, .2.gz) - rsyslog's full syslog mirror, which also captures oak-agent's/agentconfd's own stdout
Commands:
dmesg - wiped on reboot
journalctl --list-boots - reboot history (though on both devices this ended up showing only the current boot, since journald here is volatile-storage and every restart's time-jump artifact triggers a rotation)
journalctl -u oak-agent --since ... --until ... - the oak-agent daemon's log (startup mode line, mDNS announcements, Hub-token warnings)
journalctl -u agentconfd --since ... --until ... - the agentconfd daemon's log (NotSetup/SetupRequest busy-loop signature)
journalctl -k --since ... --until ... - kernel journal (OOM, watchdog, thermal, carrier-loss greps)
systemctl status oak-agent agentconfd --no-pager - current daemon health
uptime, date -u - current boot age / clock sanity
df -h - disk usage, specifically /overlay's free space (the real, writable pool behind /etc, /data, /home, etc.)
Potential Solution
One thing we're looking into doing is having another device on the network periodically pull/poll the logs of all the OAK devices and/or run some of the above commands. That would help us retain logs that are wiped whenever an OAK reboots (e.g. dmesg), and get "snapshots" of each OAKs current state.
However, we need to be pulling the correct logs and running the correct commands for it to actually help.
Device Details
All devices are OAK 4 S (Wide)'s. They're on a mix of OS versions: 1.33.0, 1.35.0, & 1.37.0 (now that I see that, I'll get them all up to the same version).
Thank you.