Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect on localized Windows - Wireguard socket permissions problems #2443

Closed
chompomonim opened this issue Jul 7, 2020 · 3 comments · Fixed by #2451
Closed

Can't connect on localized Windows - Wireguard socket permissions problems #2443

chompomonim opened this issue Jul 7, 2020 · 3 comments · Fixed by #2451

Comments

@chompomonim
Copy link
Contributor

No description provided.

@tadaskay
Copy link
Contributor

tadaskay commented Jul 7, 2020

2020-07-01T18:56:39.000 ??? INFO: (myst) 2020/07/01 18:56:39 Starting wireguard-go version 0.0.20200320
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: event worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: handshake worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: encryption worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: decryption worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: handshake worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: encryption worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: decryption worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: encryption worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: encryption worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: decryption worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: handshake worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: handshake worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: decryption worker - started
2020-07-01T18:56:39.000 ??? DEBUG: (myst) 2020/07/01 18:56:39 Routine: TUN reader - started
2020-07-01T18:56:39.000 INF Setting interface configuration
2020-07-01T18:56:39.000 ERR wg-up failed error="could not listen for user API wg configuration: open \\\\.\\pipe\\ProtectedPrefix\\Administrators\\WireGuard\\myst: Access is denied."
2020-07-01T19:00:40.000 ??? ERROR: (myst) 2020/07/01 19:00:40 Failed to read packet from TUN device: file already closed
2020-07-01T19:00:40.000 ??? INFO: (myst) 2020/07/01 19:00:40 Device closing
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: handshake worker - stopped
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: event worker - stopped
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: decryption worker - stopped
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: handshake worker - stopped
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: handshake worker - stopped
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: decryption worker - stopped
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: encryption worker - stopped
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: encryption worker - stopped
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: decryption worker - stopped
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: encryption worker - stopped
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: handshake worker - stopped
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: decryption worker - stopped
2020-07-01T19:00:40.000 ??? DEBUG: (myst) 2020/07/01 19:00:40 Routine: encryption worker - stopped

@tadaskay tadaskay changed the title Can't connect on locallised Windows - Wireguard socked permissions problems Can't connect on localized Windows - Wireguard socket permissions problems Jul 7, 2020
@tadaskay
Copy link
Contributor

tadaskay commented Jul 7, 2020

Reproduced this on Win 10 Familie (French)

@tadaskay
Copy link
Contributor

tadaskay commented Jul 9, 2020

Related: #2450

The root cause is that gateway detection fails due to jackpal/gateway#19 (fixed in the latest version)
And cleanup is not performed (#2450).
As a result, the wireguard socket is busy and any further tries result in an access denied error.

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

Successfully merging a pull request may close this issue.

2 participants