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
macOS default socket handling of tailscale and tailscaled are different #5761
Comments
On macOS, it first tries the Unix socket and then if that fails it assumes you're trying to connect from the open source CLI to the GUI, which it uses localhost TCP. So if both fail, you'll see that TCP error. |
As you can see in "Steps to reproduce", it dials |
@bradfitz I think here is the root cause: There is a symlink file |
This could be related to switching between the AppStore and open source versions. I recently installed the AppStore version and ran into this after uninstalling. Unlinking the ipnport file mentioned above solved this for me. |
We should make Tailscaled-on-macOS not use a localhost socket, if it still does. |
GOOS=darwin tailscaled has always used a Unix socket |
How to unlink? Just remove the "ipnport"? Thank you! |
|
thanks! |
I just ran into this (nix-darwin). You'll likely hit this if you're moving between the AppStore version (macsys) and OSS From the little sleuthing I did, the culprit is tailscale/safesocket/safesocket_darwin.go Lines 32 to 33 in 7a82fd8
If you remove this directory, Should we instead look at if |
Fixes tailscale#5761 Signed-off-by: Paul Scott <408401+icio@users.noreply.github.com>
Fixes tailscale#5761 Signed-off-by: Paul Scott <408401+icio@users.noreply.github.com>
PR tailscale#9217 attempted to fix the same issue, but suffered from not letting the user connect to non-oss tailscaled if something was listening on the socket, as the --socket flag doesn't let you select the mac apps. Rather than leave the user unable to choose, we keep the mac/socket preference order the same and check a bit harder whether the macsys version really is running. Now, we prefer the App Store Tailscale (even if it's Stopped) and you can use --socket to sswitch. But if you quit the App Store Tailscale, we'll try the socket without needing the flag. Fixes tailscale#5761 Signed-off-by: Paul Scott <408401+icio@users.noreply.github.com>
PR tailscale#9217 attempted to fix the same issue, but suffered from not letting the user connect to non-oss tailscaled if something was listening on the socket, as the --socket flag doesn't let you select the mac apps. Rather than leave the user unable to choose, we keep the mac/socket preference order the same and check a bit harder whether the macsys version really is running. Now, we prefer the App Store Tailscale (even if it's Stopped) and you can use --socket to sswitch. But if you quit the App Store Tailscale, we'll try the socket without needing the flag. Fixes tailscale#5761 Signed-off-by: Paul Scott <408401+icio@users.noreply.github.com>
…9234) PR #9217 attempted to fix the same issue, but suffered from not letting the user connect to non-oss tailscaled if something was listening on the socket, as the --socket flag doesn't let you select the mac apps. Rather than leave the user unable to choose, we keep the mac/socket preference order the same and check a bit harder whether the macsys version really is running. Now, we prefer the App Store Tailscale (even if it's Stopped) and you can use --socket to sswitch. But if you quit the App Store Tailscale, we'll try the socket without needing the flag. Fixes #5761 Signed-off-by: Paul Scott <408401+icio@users.noreply.github.com>
…ailscale#9234) PR tailscale#9217 attempted to fix the same issue, but suffered from not letting the user connect to non-oss tailscaled if something was listening on the socket, as the --socket flag doesn't let you select the mac apps. Rather than leave the user unable to choose, we keep the mac/socket preference order the same and check a bit harder whether the macsys version really is running. Now, we prefer the App Store Tailscale (even if it's Stopped) and you can use --socket to sswitch. But if you quit the App Store Tailscale, we'll try the socket without needing the flag. Fixes tailscale#5761 Signed-off-by: Paul Scott <408401+icio@users.noreply.github.com> Signed-off-by: Alex Paguis <alex@windscribe.com>
What is the issue?
tailscale
claims it's default socket is/var/run/tailscaled.socket
, same astailscaled
's, but in fact it dials[::1]:64511
.Steps to reproduce
Are there any recent changes that introduced the issue?
Seems it's introduced by version
1.30.2
.OS
macOS
OS version
macos 12.6
Tailscale version
1.30.2
Bug report
BUG-9d2329911aa0d09a17272bf7484567e965d2956691dcab7aee5a67ecdd98385d-20220927091756Z-0faaddd812048e06
The text was updated successfully, but these errors were encountered: