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

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

  •  
  •   toby1902 · 4 天前 · 780 次点击

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

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

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

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

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

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

    8 条回复    2024-09-23 20:13:39 +08:00
    chyiz
        1
    chyiz  
       4 天前   ❤️ 1
    我升完 Firefox 无法解析 DNS 。IP 直接访问是没问题的。最后找了条命令:
    ·/usr/libexec/ApplicationFirewall/socketfilterfw --add /Applications/Firefox.app·
    看上去好了。
    你换成 GitLab 试试看吧
    z7356995
        2
    z7356995  
       4 天前 via Android   ❤️ 1
    我黑苹果 big sur 刚升级完,ssh 连接本地 nas 不能证书登录,原来是系统升级了 ssh 8 以后,禁止 rsa 证书了,要换其他格式证书,。你这个如果也是 ssh 连接服务器,八成也是这个原因
    superwater
        3
    superwater  
       4 天前
    我试了一下没问题啊,GitLab 安装在 MacOS 下面的 Docker 里面。

    要不然你试试把 GitLab 服务器加到 /etc/hosts 里面?
    toby1902
        4
    toby1902  
    OP
       4 天前
    @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
       4 天前
    @superwater

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

    但是 gitlab-runner install 以后,gitlab-runner start 在后台运行,就会断开连接
    toby1902
        6
    toby1902  
    OP
       4 天前
    @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
       4 天前
    superwater
        8
    superwater  
       4 天前
    我的 Settings --> Privacy & Security --> Local Network 下面也没有 gitlab-runner
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1789 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 16:23 · PVG 00:23 · LAX 09:23 · JFK 12:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.