【问题标题】:GitLab Runner - ERROR: Failed to remove network for buildGitLab Runner - 错误:无法删除网络以进行构建
【发布时间】:2022-06-14 17:20:57
【问题描述】:

这是我的 gitlab-ci.yml:

image: vibraniumcore/gcc-cmake-boost-mysqlcon
#image: gitlab/dind

stages:
  - test
  - build

Run Tests:
  stage: test
  tags:
    - c++
  script:
    - mkdir build
    - cd build
    - cmake ..
    - cmake --build . --target VibraniumCoreTests
    - cd ./Tests
    - ./VibraniumCoreTests

Build VibraniumCore:
  stage: build
  tags:
    - c++
  script:
    - mkdir build
    - cd build
    - cmake ..
    - cmake --build .

Build AuthServer:
  stage: build
  tags:
  - c++
  script:
    - cd Scripts
    - ./build_authserver.sh

Build WorldServer:
  stage: build
  tags:
  - c++
  script:
    - cd Scripts
    - ./build_worldserver.sh

当我尝试运行我的管道时,我收到了这个错误:

Running with gitlab-runner 13.1.1 (6fbc7474)
  on GCC-CMAKE HdBd6UX6
Preparing the "docker" executor
00:35
ERROR: Failed to remove network for build
ERROR: Preparation failed: error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.25/info: read unix @->/var/run/docker.sock: read: connection reset by peer (docker.go:894:4s)
Will be retried in 3s ...
ERROR: Failed to remove network for build
ERROR: Preparation failed: error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.25/info: read unix @->/var/run/docker.sock: read: connection reset by peer (docker.go:894:10s)
Will be retried in 3s ...
ERROR: Failed to remove network for build
ERROR: Preparation failed: error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.25/info: read unix @->/var/run/docker.sock: read: connection reset by peer (docker.go:894:10s)
Will be retried in 3s ...
ERROR: Job failed (system failure): error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.25/info: read unix @->/var/run/docker.sock: read: connection reset by peer (docker.go:894:10s)

知道为什么会出现此错误以及如何修复它吗?

【问题讨论】:

标签: gitlab gitlab-ci-runner


【解决方案1】:

这个问题是由于您在 gitlab runner 中使用的 executor="docker" 造成的。尝试更改为“shell”或“ssh”

【讨论】:

    【解决方案2】:

    我有同样的问题。 我使用“sudo gitlab-runner register”而不是“gitlab-runner register”,在我的情况下问题解决了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-10-07
      • 2022-01-08
      • 1970-01-01
      • 2021-02-24
      • 2023-03-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多