Skip to content

Not connected after waking from sleep #149

Closed

Description

@chazmo03

Coder Desktop does not seem to stay connected or reconnect when my machine wakes from an overnight sleep.

The hostname aliases to my workspaces no longer work. When I try to disconnect Coder Connect by toggling it off, it just hangs.

I am able to exit and restart Coder Desktop and everything works fine.

This is on a corporate machine using Zscaler.

Activity

  1. matifali commented on Jul 24, 2025

    @matifali
    Contributor

    Hi @chazmo03, is your Coder deployment also accessible only over Zscaler?

  2. added theissue type on Jul 24, 2025
  3. matifali commented on Jul 24, 2025

    @matifali
    Contributor

    This could be related to #147, for which we are working towards a solution.

  4. chazmo03 commented on Jul 25, 2025

    @chazmo03
    Author

    @matifali I'm not 100% sure. Zscaler is always active on my machine. This sounds like a different issue as I am able to connect most of the day. It's only after waking from a long sleep when it is unable to connect.

    Specifically, when I try to ssh:

    ❯ ssh {my-workspace}.coder
    ssh: Could not resolve hostname {my-workspace}: No such host is known.
  5. chazmo03 commented on Jul 25, 2025

    @chazmo03
    Author

    @matifali we do not have DERP enabled.

  6. deansheather commented on Jul 26, 2025

    @deansheather
    Collaborator

    Could you please provide service logs? They can usually be found in C:\Program Files\Coder Desktop. NOTE that these files do currently have secrets in them, so you will probably want to blank them out. I would delete them all, reproduce this again, then send me all the logs in the folder.

    You can send the logs to my email, which is <my first name>@<github org>.com

  7. deansheather commented on Aug 1, 2025

    @deansheather
    Collaborator

    @chazmo03

    Wanted to follow up with some logs here for the past 36 hours or so. Also, I realized that my workspace shuts down over night, likely circa 8pm and auto starts again at 8:15am Easter time.

    Thanks for the email!

    I think this may have been a bug that we've already fixed in Coder server v2.23 onwards. Could you please provide:

    • Coder Desktop version
    • Coder server version (it's in the user dropdown in the dashboard)
  8. chazmo03 commented on Aug 1, 2025

    @chazmo03
    Author

    @deansheather, see the versions below:

    • Desktop: 0.6.3.0
    • Server: v2.23.2+75e7a93

    These appear to be the latest versions, and I can confirm I am still seeing the issue this morning.

  9. ethanndickson commented on Mar 24, 2026

    @ethanndickson
    Member

    This was an issue in coder/coder (Coder Desktop executes a binary downloaded from the Coder deployment), and was fixed in coder/coder#22977. The fix is available in releases v2.31.5, v2.30.4, and later.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions