Skip to content

Permission was not granted to execute the CoderVPN dylib #142

Closed
@hugodutka

Description

@hugodutka

Coder Desktop Version: 0.3.0

Every couple of hours, most noticeably when my laptop wakes from sleep, Coder Connect becomes disabled and I get the error "Permission was not granted to execute the CoderVPN dylib." When I re-enable Coder Connect, I have to type in my admin password to grant permission, even though I've done it before.

Image

Activity

ethanndickson

ethanndickson commented on Apr 29, 2025

@ethanndickson
Member

Few things to note:

  • Coder Connect stops itself on device sleep, and starts on device wake to workaround the issue described in Improve Coder Connect tunnel reconnect handling internal#563
  • macOS calls wake on system VPNs even whilst the lid is closed.
  • A new .dylib is downloaded on Coder Connect start whenever the hash of the one on the Coder deployment changes.
    • For https://dev.coder.com, this is whenever there's a push to coder/coder main (exacerbating this issue).
  • When a new .dylib is downloaded, the user must approve it's execution by entering their password (see fix: unquarantine dylib after download #38 for why).
    • If that dialog times out, this is the error message returned.

Once coder/internal#563 (in review) is resolved, Coder Connect won't turn itself off on sleep, which will mean it won't restart on wake and attempt to download the latest .dylib, which will mean you won't see this anymore. but you'll still need to enter your password whenever you start Coder Connect against a fresh build of dev.coder.com.

Once #135 is complete, the user won't be prompted to enter their password when a new .dylib is downloaded, the privileged helper will take care of it.

added theissue type on May 2, 2025
added a commit that references this issue on May 19, 2025
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

      Permission was not granted to execute the CoderVPN dylib · Issue #142 · coder/coder-desktop-macos