Skip to content

Core functionality breaking following an app upgrade #121

Closed

Description

@ethanndickson

Many users, including myself, have noticed the core functionality of the app breaks when the app is upgraded, be it via homebrew, or via the .pkg installer.

This issue is identified in two ways:

  1. The app being unable to load the user's workspaces, i.e. if this message is displayed when the logged in user certainly owns workspaces. Restarting Coder Connect does not fix it, and typically neither does merely restarting the app.

Image

  1. Coder Connect cannot be started, with an error citing the app is not open (and that it must be open during first-time setup).

Image

Both of these issues have the same root cause - the System Network Extension process is unable to communicate with the Coder Desktop application over macOS' XPC.

In the first case, no XPC connection exists to communicate the list of connected workspaces.
In the second case, no XPC connection exists to instruct the app to prompt the user for sudo, in order to mark the .dylib downloaded from the Coder server as safe to execute.

Multiple users on the Apple developer forums have reported this issue in recency:
https://developer.apple.com/forums/thread/711713
https://developer.apple.com/forums/thread/667597
https://developer.apple.com/forums/thread/742992
https://developer.apple.com/forums/thread/728063

Attempts to fix, based off thread responses:

Apple Feedback Assistant

https://feedbackassistant.apple.com/feedback/17032197

(Private link, I believe)

Apple Developer Forum

https://developer.apple.com/forums/thread/779395

Workaround

However, if a user encounters this issue on upgrade, the fix is relatively straightforward. Unfortunately, due to macOS security decisions, it's not possible for the app to automate these steps in totality.

macOS <=14

  1. Delete the application from /Applications
  2. Restart your device

macOS 15+

  1. Open System Settings
  2. Select General
  3. Select Login Items & Extensions
  4. Scroll down, and click the (i) for Network Extensions
  5. Select the (...) next to Coder Desktop, select Delete Extension, and follow the prompts.

This issue is a successor to #83.

Activity

  1. ethanndickson commented on Mar 25, 2025

    @ethanndickson
    MemberAuthor

    As of 25/03/2025, I think the best next step is to contact Apple developer technical support, checking if there's any progress on this issue in their internal bug tracker, as a post on the forum would imply it's been recorded there.

  2. added
    documentation
    on Mar 25, 2025
  3. EdwardAngert commented on Mar 27, 2025

    @EdwardAngert
  4. matifali commented on Mar 27, 2025

    @matifali

    This is now consistently reportable for me after each upgrade. No workspaces appear following each upgrade. I upgrade using the .pkg installer and do not use Homebrew.

  5. self-assigned this
    on Apr 7, 2025
  6. ethanndickson commented on Apr 7, 2025

    @ethanndickson
    MemberAuthor

    The dev forum thread I made has gotten some attention from Apple DTS: https://developer.apple.com/forums/thread/779395

    Going to be working on this intermittently.

  7. ethanndickson commented on Apr 14, 2025

    @ethanndickson
    MemberAuthor

    As mentioned in that dev forum thread, our attempted fix in #92 hasn't been working consistently. #134 effectively ports that fix to older installations that still use the "CoderVPN" configuration.

  8. matifali commented on May 12, 2025

    @matifali

    I got into this when I moved from a preview build to a 0.0.4 one.

    Steps to reproduce

    1. brew uninstall coder/coder/coder-desktop-preview
    2. brew install coder/coder/coder-desktop

    Troubleshooting steps resolve the issue.

    Image
  9. ethanndickson commented on May 12, 2025

    @ethanndickson
    MemberAuthor

    Steps to reproduce

    1. `brew uninstall coder/coder/coder-desktop-preview`
    
    2. `brew install coder/coder/coder-desktop`
    

    Whilst I'm still unable to reproduce the issue following these steps in a fresh 15.4 VM (today!), I've bumped the thread & feedback item, as I have already provided logs where the issue does occur, just under slightly different circumstances, and those might still be useful for resolving the issue.

    In the meantime, I'm going to effectively make the manual workaround part of the app flow. When opening a new version of the app, the user will first be prompted to delete the network extension, then approve the new one, and then install the new VPN configuration.

  10. ethanndickson commented on May 20, 2025

    @ethanndickson
    MemberAuthor

    Closing this as it's practically solved (though the macOS bug is not), and keeping the issue open is confusing.

  11. ethanndickson commented on Jun 9, 2025

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

Metadata

Metadata

Assignees

Labels

documentation

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions