Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metrics occassionally spuriously show "Unknown" #1722

Open
mcm001 opened this issue Jan 13, 2025 · 0 comments
Open

Metrics occassionally spuriously show "Unknown" #1722

mcm001 opened this issue Jan 13, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mcm001
Copy link
Contributor

mcm001 commented Jan 13, 2025

Describe the bug

After flashing dev-v2025.0.0-beta-8-42-g04e28bc2 on my Orange Pi 5, when refreshing metrics, metrics will sometimes show "unknown". Logs don't inidcate any commands failed either.

Screenshots / Videos

image
image

[08:58:25] [2025-01-13 16:58:15] [General - MetricsManager] [DEBUG] Publishing Metrics...
[08:58:25] [2025-01-13 16:58:15] [General - ShellExec] [DEBUG] Executing "cat /sys/class/thermal/thermal_zone1/temp | awk '{printf "%.1f", $1/1000}'"
[08:58:25] [2025-01-13 16:58:15] [General - ShellExec] [DEBUG] Got exit code 0
[08:58:25] [2025-01-13 16:58:15] [General - ShellExec] [DEBUG] Executing "top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print 100 - $1}'"
[08:58:25] [2025-01-13 16:58:15] [General - ShellExec] [DEBUG] Got exit code 0
[08:58:25] [2025-01-13 16:58:15] [General - ShellExec] [DEBUG] Executing "uptime -p | cut -c 4-"
[08:58:25] [2025-01-13 16:58:15] [General - ShellExec] [DEBUG] Got exit code 0
[08:58:25] [2025-01-13 16:58:15] [General - ShellExec] [DEBUG] Executing "free -m | awk 'FNR == 2 {print $3}'"
[08:58:25] [2025-01-13 16:58:15] [General - ShellExec] [DEBUG] Got exit code 0
[08:58:25] [2025-01-13 16:58:15] [General - ShellExec] [DEBUG] Executing "df ./ --output=pcent | tail -n +2"
[08:58:25] [2025-01-13 16:58:15] [General - ShellExec] [DEBUG] Got exit code 0
[08:58:25] [2025-01-13 16:58:15] [General - ShellExec] [DEBUG] Executing "cat /sys/kernel/debug/rknpu/load | sed 's/NPU load://; s/^ *//; s/ *$//'"
[08:58:25] [2025-01-13 16:58:15] [General - ShellExec] [DEBUG] Got exit code 0
[08:58:25] [2025-01-13 16:58:15] [General - MetricsManager] [DEBUG] Requesting IP addresses for "end1"
[08:58:25] [2025-01-13 16:58:15] [General - MetricsManager] [DEBUG] Got value "10.0.0.182/8"
[08:58:25] [2025-01-13 16:58:15] [WebServer - Server] [DEBUG] Handled HTTP request of type POST from endpoint /api/utils/publishMetrics of req size 0 bytes & type null with return code 204 for host 10.0.0.118 in 279.6006 ms

photonvision-logs(3).zip

Platform:

  • Hardware Platform: Orange Pi 5
  • Network Configuration: Home router
  • PhotonVision Version: dev-v2025.0.0-beta-8-42-g04e28bc2
@mcm001 mcm001 added the bug Something isn't working label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant