bluegreen-deploy.sh does not update env vars in dependent services on slot flip #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
When
bluegreen-deploy.shflips the active slot (blue → green or vice versa), it updates nginx00-backends.confbut does not update the hardcoded backend URLs in dependent services that call the blue/green services directly (bypassing nginx).Affected compose files
compose/agent-proxy.yml—INCIDENT_SERVICE_URL,SERVICES_DEVICES_URL,SERVICES_FLEET_URLcompose/analytics.yml—INCIDENT_SERVICE_URL,SERVICES_DEVICES_URL,SERVICES_FLEET_URLcompose/recon.yml—SERVICES_INCIDENT_URLcompose/reports.yml—INCIDENT_SERVICE_URLImpact
Discovered 2026-06-29 after stopping the green standby instances post-maintenance-window. Agent-proxy was forwarding all agent heartbeats and journal events to the stopped
hiveiq-incident-greencontainer, silently failing (agent got 200, internal call dropped). Result: 572 AGENT_OFFLINE incidents stuck open, plus dead internal calls in analytics, recon, and reports.Fix required
bluegreen-deploy.shmust sed the active color in all dependent compose files in addition to updating00-backends.conf, then rundocker compose up -d --no-depson the affected containers so they pick up the corrected env vars on each slot flip.Workaround applied 2026-06-29
Manually sed all 4 compose files (green → blue) and restarted agent-proxy, analytics, recon, reports.