V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
toby1902
V2EX  ›  macOS

升级 macOS Sequoia 后, GitLab Runner 无法连接本地的 GitLab 服务器

  •  
  •   toby1902 · 348 天前 · 2010 次点击
    这是一个创建于 348 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我已经知道原因是 macOS Sequoia Version 15.0 需要本地网络权限

    我试了很多办法,包括重新安装,注册 GitLab Runner 都没有办法弹出本地网络权限授权窗口。

    官方安装文档: https://docs.gitlab.com/runner/install/osx.html

    但是,我的 GitLab 安装在本地的另一台服务器上,云服务器又买不起,这可怎么办呀?

    难道,最近我的 iOS App 打包都不能自动化构建了么?

    求助,有没有大神知道怎么操作?

    第 1 条附言  ·  57 天前

    居然是 golang 的 bug,啊这,等待升级 go 1.24

    最新进展:

    https://github.com/golang/go/issues/68678

    https://developer.apple.com/forums/thread/761001

    https://gitlab.com/gitlab-org/gitlab/-/issues/500056

    https://gitlab.com/gitlab-org/gitlab-runner/-/issues/38044

    • 使用 homebrew 的 gitlab-runner,但是我不推荐,因为在打包 iOS 时无法读取证书,需要额外的配置
    • 本来说升级到 go 1.24 可以修复,反正我现在还是不行
    • 最终还是打开终端 gitlab-runner run 挂着
    ~ /usr/local/bin/gitlab-runner --version
    Version:      18.1.1
    Git revision: 2b813ade
    Git branch:   18-1-stable
    GO version:   go1.24.4 X:cacheprog
    Built:        2025-06-26T16:25:31Z
    OS/Arch:      darwin/amd64
    
    10 条回复    2024-11-15 12:06:29 +08:00
    chyiz
        1
    chyiz  
       348 天前   ❤️ 1
    我升完 Firefox 无法解析 DNS 。IP 直接访问是没问题的。最后找了条命令:
    ·/usr/libexec/ApplicationFirewall/socketfilterfw --add /Applications/Firefox.app·
    看上去好了。
    你换成 GitLab 试试看吧
    z7356995
        2
    z7356995  
       348 天前 via Android   ❤️ 1
    我黑苹果 big sur 刚升级完,ssh 连接本地 nas 不能证书登录,原来是系统升级了 ssh 8 以后,禁止 rsa 证书了,要换其他格式证书,。你这个如果也是 ssh 连接服务器,八成也是这个原因
    superwater
        3
    superwater  
       348 天前
    我试了一下没问题啊,GitLab 安装在 MacOS 下面的 Docker 里面。

    要不然你试试把 GitLab 服务器加到 /etc/hosts 里面?
    toby1902
        4
    toby1902  
    OP
       348 天前
    @chyiz

    我尝试了如下

    sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/local/bin/gitlab-runner

    sudo /usr/libexec/ApplicationFirewall/socketfilterfw --unblock /usr/local/bin/gitlab-runner

    还是不行
    toby1902
        5
    toby1902  
    OP
       348 天前
    @superwater

    如果我执行 gitlab-runner run 可以接收构建任务

    但是 gitlab-runner install 以后,gitlab-runner start 在后台运行,就会断开连接
    toby1902
        6
    toby1902  
    OP
       348 天前
    @superwater

    已经加了 /etc/hosts

    目前的错误还是 WARNING: Checking for jobs... failed runner=waUWr1MBb status=couldn't execute POST against https://gitlab.xxx.com/api/v4/jobs/request: Post "https://gitlab.xxx.com/api/v4/jobs/request": dial tcp 192.168.88.101:443: connect: no route to host
    toby1902
        7
    toby1902  
    OP
       348 天前
    superwater
        8
    superwater  
       348 天前
    我的 Settings --> Privacy & Security --> Local Network 下面也没有 gitlab-runner
    slight
        9
    slight  
       295 天前
    有解决吗?
    toby1902
        10
    toby1902  
    OP
       295 天前
    @slight 每天上班手动打开 iTerm2 然后输入 gitlab-runner run 挂着,唉
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   913 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 20:23 · PVG 04:23 · LAX 13:23 · JFK 16:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.