tailscale icon indicating copy to clipboard operation
tailscale copied to clipboard

Daemon not running on MacOS

Open torrance opened this issue 1 year ago • 1 comments

What is the issue?

I have had Tailscale running fine on my MacOS 1.47 system fine for over a year. This morning it was disconnected and I couldn't get it to reconnect. I decided to upgrade to the latest version of Tailscale in case it was now out of date.

However, now I cannot log in:

https://github.com/user-attachments/assets/63d03a11-f1f4-4388-92c4-3b980005db80

Using the CLI tool, I am unable to login or bring Tailscale up as it complains the daemon is not running:

277966k@M-A009474 ~ % /Applications/Tailscale.app/Contents/MacOS/Tailscale up
2024/10/18 10:31:50 failed to connect to local Tailscale service; is Tailscale running?
277966k@M-A009474 ~ % /Applications/Tailscale.app/Contents/MacOS/Tailscale login
2024/10/18 10:31:56 Failed to connect to local Tailscale daemon for /localapi/v0/profiles/; not running? Error: dial unix /var/run/tailscaled.socket: connect: no such file or directory
277966k@M-A009474 ~ % /Applications/Tailscale.app/Contents/MacOS/Tailscale status
2024/10/18 10:32:09 failed to connect to local Tailscale service; is Tailscale running?
277966k@M-A009474 ~ % /Applications/Tailscale.app/Contents/MacOS/Tailscale bugreport
2024/10/18 10:32:26 Failed to connect to local Tailscale daemon for /localapi/v0/bugreport; not running? Error: dial unix /var/run/tailscaled.socket: connect: no such file or directory
277966k@M-A009474 ~ % /Applications/Tailscale.app/Contents/MacOS/Tailscale version
1.76.1
  tailscale commit: 24929f6b611127cdc40d45ef40d75c6afc1fcc4c
  other commit: 5e54dcf15265cb83e84e617a5a7e0c1b013c61c7
  go version: go1.23.1

I have tried removing Tailscale and reinstalling, as well as removing support files in /Library and ~/Library (although it's possible I'm not deleting everything - it no longer asks me to sign in when I reinstall).

How can I debug this further?

Steps to reproduce

No response

Are there any recent changes that introduced the issue?

No response

OS

macOS

OS version

14.7

Tailscale version

1.76.1

Other software

No response

Bug report

No response

torrance avatar Oct 18 '24 02:10 torrance

The Tailscale UI and CLI is just a user-facing process that talks to the network extension; you need to understand why the Tailscale network extension is not starting. On App Store builds, this is called IPNExtension, on Standalone it is io.tailscale.ipn.macsys.network-extension. Look for logs matching this process in the Console app. Did you reboot your Mac since this started happening? Also, if you're using the App Store build, switch to the Standalone variant (.pkg installer) which is now the recommended variant.

agottardo avatar Oct 18 '24 16:10 agottardo

Hello there, I'm facing exactly the same issue.

OS macOS

OS version 15.0.1

Tailscale version 1.76.1 (Standalone)

When trying to use the CLI commands, I'm getting this: 2024/10/21 13:45:12 failed to connect to local Tailscale service; is Tailscale running?

mateuszstonawski avatar Oct 21 '24 11:10 mateuszstonawski

There are some errors in the logs that mention io.tailscale.ipn.macsys.network-extension (I have Tailscale installed as standalone extension).

These are the entries that stood out:

taskgated-helper: io.tailscale.ipn.macsys.network-extension: Unsatisfied entitlements: com.apple.security.application-groups
taskgated-helper: Disallowing: io.tailscale.ipn.macsys.network-extension
tccd: Failed to create LSApplicationRecord for file:///Library/SystemExtensions/68D292AE-CD5E-4835-94D5-E6347FF7AE38/io.tailscale.ipn.macsys.network-extension.systemextension/: 'The operation couldn’t be completed. (OSStatus error -10811.)'
kernel: System Policy: syspolicyd(290) deny(1) file-write-xattr /Library/SystemExtensions/68D292AE-CD5E-4835-94D5-E6347FF7AE38/io.tailscale.ipn.macsys.network-extension.systemextension
io.tailscale.ipn.macsys.network-extension: [0x7fd1d7e04080] Channel could not return listener port.
io.tailscale.ipn.macsys.network-extension: cannot open file at line 49437 of [1b37c146ee]
io.tailscale.ipn.macsys.network-extension: os_unix.c:49437: (2) open(/private/var/db/DetachedSignatures) - No such file or directory

To be clear, I have Tailscale enabled under "Network Extensions" and I have it enabled under "Allow in the Background". So if this is permission issue with running the extension, I'm unsure why it's not allowing it.

Interestingly, the night before these issues started, and before I tried upgrading from 1.74 to 1.78, there are series of Tailscale crashes in the log, all showing SIGSEGV (EXC_BAD_ACCESS) failures. There are 5 crashes, over the course of 4 hours around midnight to 4am. For example:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               IPNExtension [67666]
Path:                  /Applications/Tailscale.app/Contents/PlugIns/IPNExtension.appex/Contents/MacOS/IPNExtension
Identifier:            io.tailscale.ipn.macos.network-extension
Version:               1.74.0 (275.256.73448)
App Item ID:           1475387142
App External ID:       868968184
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               734694600

Date/Time:             2024-10-18 01:31:38.2033 +0800
OS Version:            macOS 14.7 (23H124)
Report Version:        12
Bridge OS Version:     9.0 (22P353)
Anonymous UUID:        0570AB27-1807-4609-24FA-3FB2D3DEDB51

Sleep/Wake UUID:       21E26B87-6DF4-43CB-B968-6AEC75F728A2

Time Awake Since Boot: 1300000 seconds
Time Since Wake:       2 seconds

System Integrity Protection: enabled

Crashed Thread:        18

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0xfffffffffffffff0
Exception Codes:       0x0000000000000001, 0xfffffffffffffff0

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [67666]

VM Region Info: 0xfffffffffffffff0 is not in any region.  Bytes after previous region: 18446603336222212081  
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      shared memory            7ffffff07000-7ffffff08000 [    4K] r-x/r-x SM=SHM  
--->  
      UNUSED SPACE AT END

Note that these crashes occurred the night before my connection problems arose, but I have since upgraded Tailscale as my first attempt to fix the problem and I don't seem to be seeing these crashes anymore.

torrance avatar Oct 22 '24 01:10 torrance

+1 same issue on 1.78.1 after updating tailscale

tried GUI and CLI versions, just gave an error saying extension failed to start.

appleflyerv3 avatar Dec 08 '24 22:12 appleflyerv3

seems that tailscale fails to get a port, therefore tries to bind port 127.0.0.1:0 which causes a crash.

appleflyerv3 avatar Dec 08 '24 23:12 appleflyerv3

default 2024-12-09 06:58:16.454634 +0800 io.tailscale.ipn.macsys.network-extension [0x151a063d0] Channel could not return listener port. default 2024-12-09 06:58:16.457289 +0800 io.tailscale.ipn.macsys.network-extension failed to run localhost IPC server: listen tcp4 127.0.0.1:0: bind: can't assign requested address default 2024-12-09 06:58:16.461123 +0800 io.tailscale.ipn.macsys.network-extension Entering exit handler.

appleflyerv3 avatar Dec 08 '24 23:12 appleflyerv3

I have exactly the same problem. I uninstalled the App Store app (which works fine) and installed the standalone app. My goal was to get simple use of the CLI tools. Nothing I can find will make it work. After nearly two hours, I gave up and installed the App Store version so I could get some work done.

I did install the previous dot version and no change there. It still doesn't work.

MatthewGardenghi avatar Jan 14 '25 14:01 MatthewGardenghi

I'm having the same problem with 1.80.1 on MacOS 15.0.1

fivestones avatar Feb 08 '25 18:02 fivestones

Has anyone figured out a solution for this yet? Trying to run homebrew Tailscale and running into the same problem.

tholu avatar May 23 '25 19:05 tholu

For me, I solved this by installing Tailscale from the AppStore.

On Sat, May 24, 2025 at 3:18 AM Thomas Lutz @.***> wrote:

tholu left a comment (tailscale/tailscale#13848) https://github.com/tailscale/tailscale/issues/13848#issuecomment-2905558546

Has anyone figured out a solution for this yet? Trying to run homebrew Tailscale and running into the same problem.

— Reply to this email directly, view it on GitHub https://github.com/tailscale/tailscale/issues/13848#issuecomment-2905558546, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAV7UCJ7CEA6TVGN7CUKQL275YBNAVCNFSM6AAAAABQE7MWD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMBVGU2TQNJUGY . You are receiving this because you authored the thread.Message ID: @.***>

torrance avatar May 24 '25 01:05 torrance

I could solve it by starting tailscale with sudo.

tholu avatar May 25 '25 11:05 tholu