-
-
Notifications
You must be signed in to change notification settings - Fork 409
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
I was running the macOS agent on two machines, and one of them randomly started sending malformed data blocks. I connected an SSH client to it to see what it was sending, and it was still live, but suddenly, the 'container' object was missing a double quote character.
Expected Behavior
The agent should continue sending data.
Steps to Reproduce
- Start an agent on macOS Apple Silicon
- Leave it running for several hours
OS / Architecture
darwin/arm64 (agent) / linux/amd64 (hub)
Beszel version
0.9.1
Installation method
Binary
Configuration
Hub Logs
From the hub logs:
id gd4bp2903rtotc3
level ERROR (8)
created 2025-02-06 11:31:59.654 UTC
message Failed to get system stats:
data.err invalid character '\u0000' looking for beginning of value
I substituted a \u0000 for the actual null character that was shown in the logs.
Agent Logs
The agent is sending this malformed data:
{"stats":{"cpu":5.75,"m":24,"mu":15.15,"mp":63.14,"mb":8.44,"d":926.35,"du":565.55,"dp":61.05,"dr":0.79,"dw":0.01,"ns":0.02,"nr":0.03,"t":{"NAND CH0 temp":39,"PMU tcal":51.82,"PMU tdev1":44.26,"PMU tdev3":45.07,"PMU tdev4":43.86,"PMU tdev5":46.01,"PMU tdev6":41.94,"PMU tdev7":45.07,"PMU tdev8":43.99,"PMU tdie1":43.89,"PMU tdie10":43.49,"PMU tdie11":44.77,"PMU tdie12":45.01,"PMU tdie13":44.45,"PMU tdie14":44.77,"PMU tdie2":43.73,"PMU tdie3":44.21,"PMU tdie4":44.05,"PMU tdie5":44.77,"PMU tdie6":45.4,"PMU tdie7":45.8,"PMU tdie8":45.09,"PMU tdie9":44.93}},"info":{"h":"ChristohersMini.local","k":"\u00004.3.0","c":14,"t":14,"m":"Apple M4 Pro","u":806937,"cpu":5.75,"mp":63.14,"dp":61.05,"b":0.05,"v":"0.9.1"},container":null}
I see the kernel version string also suddenly started with a null character instead of the `2` it should start with.
The correct info being returned now after restarting it:
{"stats":{"cpu":4.81,"m":24,"mu":15.2,"mp":63.33,"mb":8.13,"d":926.35,"du":565.64,"dp":61.06,"dr":0.02,"dw":0.56,"ns":0.01,"nr":0.01,"t":{"NAND CH0 temp":39,"PMU tcal":51.82,"PMU tdev1":43.72,"PMU tdev3":44.76,"PMU tdev4":43.15,"PMU tdev5":45.72,"PMU tdev6":41.59,"PMU tdev7":44.49,"PMU tdev8":43.33,"PMU tdie1":43.33,"PMU tdie10":42.61,"PMU tdie11":44.05,"PMU tdie12":44.13,"PMU tdie13":43.73,"PMU tdie14":44.05,"PMU tdie2":43.65,"PMU tdie3":43.65,"PMU tdie4":43.73,"PMU tdie5":44.13,"PMU tdie6":45.09,"PMU tdie7":44.93,"PMU tdie8":44.61,"PMU tdie9":43.25}},"info":{"h":"ChristohersMini.local","k":"24.3.0","c":14,"t":14,"m":"Apple M4 Pro","u":808093,"cpu":4.81,"mp":63.33,"dp":61.06,"b":0.02,"v":"0.9.1"},"container":null}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Projects
Status
Next