Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Fix standalone docker agent version comparison prefix mismatch
rcourtman04d1e1bcf43a
diff --git a/internal/dockeragent/agent.go b/internal/dockeragent/agent.goindex 942e4a0714..ec03975876 100644--- a/internal/dockeragent/agent.go+++ b/internal/dockeragent/agent.go@@ -1615,8 +1615,10 @@ func (a *Agent) checkForUpdates(ctx context.Context) {return}- // Compare versions- if versionResp.Version == Version {+ // Compare versions - normalize by stripping "v" prefix for comparison.+ // Server returns version without prefix (e.g., "4.33.1"), but agent's+ // Version may include it (e.g., "v4.33.1") depending on build.+ if normalizeVersion(versionResp.Version) == normalizeVersion(Version) {a.logger.Debug().Str("version", Version).Msg("Agent is up to date")return}@@ -1882,3 +1884,8 @@ func (a *Agent) selfUpdate(ctx context.Context) error {return nil}++// normalizeVersion strips the "v" prefix from version strings for comparison.+func normalizeVersion(version string) string {+ return strings.TrimPrefix(strings.TrimSpace(version), "v")+}