Skip to content

Bug: OFFLINE applications wont' recover #5960

Done

Description

@cdprete

Hello.

In version 4.1.5 it seems like that once an application gets marked as OFFLINE then it never recovers and it stays like so forever even if its health status is UP.

For example:

image

vs

image

Activity

  1. sahushivam commented on Nov 24, 2026

    @sahushivam

    I'd like to investigate this on 4.1.5. I'll reproduce the UP → OFFLINE → UP sequence and compare the status recorded by the admin server with the status shown in the UI, so the regression test covers the component that gets stuck. Could you assign this to me?

  2. SteKoe commented on Nov 30, 2026

    @SteKoe
    Contributor

    We investigated the reported UP → OFFLINE → UP sequence using Spring Boot Admin 4.1.5 with:

    • three SBA nodes backed by Hazelcast
    • self-registration and Eureka discovery
    • rolling restarts and hard node failures
    • Hazelcast cluster partitions and node rejoining
    • Eureka restarts and instance eviction
    • health endpoint timeouts and connection failures
    • event-store TTL expiration

    The backend/Hazelcast scenarios were run repeatedly over several hours, including extended recovery periods, without producing a permanently stuck OFFLINE status. The backend consistently recovered the instance to UP. We observed only short-lived inconsistencies between nodes; we could not reproduce an instance remaining permanently OFFLINE.

    We did, however, reproduce a related UI problem. When the SSE connection between the browser and SBA was silently stalled—without being closed and without raising an error—the UI kept displaying the last known status indefinitely, even though the SBA API already reported UP. This is particularly relevant for deployments behind proxies or routes.

    The fix is implemented in #5995:

    • detect missing SSE activity using the server’s periodic :ping comments
    • reconnect after 30 seconds without activity
    • reload missed journal events after reconnecting
    • add regression tests for the heartbeat timeout and reconnection behavior

    The fix was verified against the silent SSE failure scenario: without the fix, the UI remained OFFLINE for more than 100 seconds; with the fix, it recovered to UP after approximately 30 seconds without a browser reload.

    The empty exception and message fields visible in the screenshot were also identified as the separate health-details rendering issue tracked in #5923 and fixed by #5935.

    Since the backend issue itself could not be reproduced, while the related stale-UI behavior is addressed by #5995, we are closing this issue. Please reopen it if the problem persists with a build containing #5995, especially if a full browser reload still shows the wrong status.

  3. cdprete commented on Nov 30, 2026

    @cdprete
    ContributorAuthor

    Hi @SteKoe.

    Thanks for the fix.
    I'll test it as soon as it gets released and I'll open this again if the issue would still occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions