A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(rexctl): check an unpublished edge in its container (#3640)
Hampusccf2a1b02aa9
diff --git a/fluxer_rexctl/internal/checks/health.go b/fluxer_rexctl/internal/checks/health.goindex 668046638..085f5904e 100644--- a/fluxer_rexctl/internal/checks/health.go+++ b/fluxer_rexctl/internal/checks/health.go@@ -78,8 +78,12 @@ func runHealth(ctx context.Context, e *Env) Result {if err != nil || !slices.ContainsFunc(states, func(s ServiceState) bool { return s.Name == "edge" && s.Running() }) {return skip("")}- if e.mode() == modeProxy && !e.edgePublished() {- if _, err := e.exec(ctx, "edge", "", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/_health"); err != nil {+ if !e.edgePublished() {+ probe := "http://127.0.0.1:8088/_edge"+ if e.mode() == modeProxy {+ probe = "http://127.0.0.1:8080/_health"+ }+ if _, err := e.exec(ctx, "edge", "", "wget", "-q", "-O", "/dev/null", probe); err != nil {return fail("Fluxer doesn't answer inside the edge container.", "Run rexctl logs edge to see why.")}return pass("Fluxer answers inside the edge container.")