V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
invictus0741
V2EX  ›  问与答

求指点 tailscale 客户端在 macos 系统无法登录问题

  •  
  •   invictus0741 · Oct 12, 2022 · 6159 views
    This topic created in 1293 days ago, the information mentioned may be changed or developed.

    #M1 macOS 系统使用 dmg 包和 homerbew 、go 源码三种方式安装 tailscale 都遇到问题。如下:

    1.dmg 包安装是 1.30.2 版本,安装后无法登录 tailscale.

    2.homebrew 或 go install 安装后,tailscale up 报错,无法注册到远程的 headscale 服务器,Centos7 系统 tailscale 客户端组网正常。以下是 tailscale up --login-server=http://xxx.xxx.xxx.xx:8080 --accept-routes=true --accept-dns=false 报错信息:

    tailscale up 报错,提示:failed to connect to local tailscaled (which appears to be running as tailscaled, pid 2550). Got error: Failed to connect to local Tailscale daemon for /localapi/v0/status; not running? Error: dial tcp [::1]:50218: connect: connection refused 。

    3.系统使用了 Clash X 代理,看 github 中提到二者兼容问题,但没看明白解决方式。

    希望有经验的同学指点下,问题解决 100 元微信红包感谢。

    20 replies    2023-09-07 08:35:24 +08:00
    cutiechi
        1
    cutiechi  
       Oct 12, 2022
    使用方式 2:

    sudo tailscale up --accept-dns=false --login-server=https:// --hostname mac --force-reauth

    Clash X 加个 Process Name 的规则让 tailscaled 走代理
    lingly02
        2
    lingly02  
       Oct 12, 2022
    我是使用官网的 zip 安装包。 一切正常。clash 也在用。你看下是否是 " defaults write io.tailscale.ipn.macsys ControlURL <你的 headscale 地址" 这个命令没执行。 其中 macsys 在文档原文是 macos ,需要改掉。还有安全性与隐私里是否允许 tailscale 运行。
    invictus0741
        3
    invictus0741  
    OP
       Oct 12, 2022
    @lingly02 GUI 客户端这个命令加过了,无法登录。
    invictus0741
        4
    invictus0741  
    OP
       Oct 12, 2022
    @superchijinpeng tailscale up 直接报错:failed to connect to local tailscaled (which appears to be running as tailscaled, pid 2550). Got error: Failed to connect to local Tailscale daemon for /localapi/v0/status; not running? Error: dial tcp [::1]:50218: connect: connection refused
    cutiechi
        5
    cutiechi  
       Oct 12, 2022
    @invictus0741 sudo /usr/local/opt/tailscale/bin/tailscaled install-system-daemon
    mritd
        6
    mritd  
       Oct 12, 2022
    不用图形化版本, 直接 brew install go ; 然后 `go install tailscale.com/cmd/tailscale{,d}@main` 安装命令行版本; 然后执行一下 `sudo tailscaled install-system-daemon`, 接下来就跟 linux 一样了. 注意一下如果你用 clash 的增强模式(tun fake ip), 那么可能遇到高 CPU 占用问题; 具体去看 issue .
    CrossEntropy
        7
    CrossEntropy  
       Oct 12, 2022
    dmg 安装后是否没有给拓展权限
    invictus0741
        8
    invictus0741  
    OP
       Oct 13, 2022
    @CrossEntropy dmg 安装提示权限都给了。
    invictus0741
        9
    invictus0741  
    OP
       Oct 13, 2022
    @mritd 参考 github 上文档,brew 安装后 tailscaled 正常运行,但是 tailscale up 注册登录时候报错:failed to connect to local tailscaled (which appears to be running as tailscaled, pid 2550). Got error: Failed to connect to local Tailscale daemon for /localapi/v0/status; not running? Error: dial tcp [::1]:50218: connect: connection refused 。
    mritd
        10
    mritd  
       Oct 13, 2022
    @invictus0741 #9 我没有直接用 brew 装过... 看日志是 tailscale 命令读本地的 tailscaled 监听端口失败了. 我看 go 代码本来那个地址我记得应该是连接 sock 文件的. 推荐你先卸载 然后装 go, 在用 go 直接编译安装.
    invictus0741
        11
    invictus0741  
    OP
       Oct 13, 2022
    github 仓库这个新版本依赖安装了 go1.19.2 版本,安装过程不报错,启动 tailscaled 也不报错。注册登录 tailscale up 还是报错相同的信息。
    @mritd
    mritd
        12
    mritd  
       Oct 13, 2022 via iPhone
    🥲 你执行 tailscaled install…. 那个命令了么?
    CrossEntropy
        13
    CrossEntropy  
       Oct 13, 2022
    @invictus0741 #8 安装完启第一次启动的时候 有两个个权限要给
    standin000
        14
    standin000  
       Oct 13, 2022
    用美区帐号换 appstore 的版本试试
    invictus0741
        15
    invictus0741  
    OP
       Oct 14, 2022
    @standin000 美区可以。另外两种 dmg 和源码安装都不行。
    invictus0741
        16
    invictus0741  
    OP
       Oct 14, 2022
    不折腾 dmg 和源码安装了,直接美区 appstore 安装解决。感谢所有热心的朋友提出的建议。刚开始在 macos 安装 tailscale 客户端正常注册到远程 headscale ,登录也正常,后来换 headscale 服务器,卸载重新安装 tailscale 用最新版开始出问题,中间也升级了 Clash X 版本,不知道有没有影响。
    standin000
        17
    standin000  
       Oct 15, 2022
    @invictus0741 appstore 使用的 sandbox 方式完成 vpn ,独立版本和编译版本都是[系统的 system extension]( https://developer.apple.com/system-extensions/),可能这里冲突了。
    PS:红包没发,答复要感谢下吧。
    invictus0741
        18
    invictus0741  
    OP
       Nov 2, 2022
    实际想解决的问题是 tailscale 基于 dmg 包和源码安装无法使用问题,也就是能解决基于这两种安装方式的问题可以送红包。如果您能验证过这两种安装方式,请发到帖子里分享给大家,私信我给您补红包。
    zhehelu
        20
    zhehelu  
       Sep 7, 2023
    @invictus0741 方式 2 ,我亲测可以。版本 1.48.1

    1 、启动:sudo $HOME/go/bin/tailscaled
    2 、登录:
    1 )使用 $HOME/go/bin/tailscale --login-server=http://xxx.xxx.xxx.xx:8080 --accept-dns=false ,报错“connection refused ”
    2 )加上--socket=/var/run/tailscaled.socket 。 即 $HOME/go/bin/tailscale --socket=/var/run/tailscaled.socket --login-server=http://xxx.xxx.xxx.xx:8080 --accept-dns=false ,可以登录成功
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5801 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 106ms · UTC 01:47 · PVG 09:47 · LAX 18:47 · JFK 21:47
    ♥ Do have faith in what you're doing.