Skip to content

AsyncSocketModeHandler: new session established after idle reconnect but handlers stop receiving events (no "Bolt app is running!" after reconnect) — 1.27.0 #1529

Closed as not planned

Description

@GirthTender

slack-bolt 1.27.0 · slack-sdk 3.40.1 · Python 3.11 · AsyncApp + AsyncSocketModeHandler · multiple bots in one workspace.

After idle periods, some apps reconnect Socket Mode ("A new session (...) has been established" is logged) but the normal "Bolt app is running!" line never follows, and from that point inbound events are silently never delivered. Process stays alive, health/memory logs continue — only event dispatch dies. Other identically-deployed bots that emit regular outbound traffic survive the same idle windows, suggesting idle-reconnect handler reattachment as the locus.

Repro pattern (consistent across multiple apps/hosts):

working: connect → auth → new session → "Bolt app is running!" → events flow
failure: idle → old session abandoned → new session established → no "Bolt app is running!" → no events, no errors

Mitigation found: a 60s per-app auth.test keepalive prevents the failure entirely — which works but shouldn't be necessary.

Questions:

  1. Known issue in 1.27.0 with handler reattachment after idle reconnect?
  2. Is the missing "Bolt app is running!" after a new session a reliable failure signal we can watchdog on?
  3. Is this fixed in a newer release?

Happy to provide sanitized reconnect logs.

Activity

  1. WilliamBergamin commented on Jun 8, 2026

    @WilliamBergamin
    Contributor

    Hello @GirthTender thanks for writing in 💯

    Please try updating your slack-sdk version from 3.40.1 to the latest (currently 3.42.0) PR slackapi/python-slack-sdk#1854 introduced improvements to the lock acquisition logic during the reconnect race condition, along with other improvements to the socket mode logic

  2. added
    question
    on Jun 8, 2026
  3. github-actions commented on Jul 13, 2026

    @github-actions

    👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.

  4. github-actions commented on Aug 31, 2026

    @github-actions

    👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.

  5. github-actions commented on Sep 14, 2026

    @github-actions

    As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.

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

    auto-triage-stalequestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions