Hi you all,
it’s too much time I’m facing this issue and hope someone could help me, by the way thanks in advance!
I’m running Gitlab CE on a vm with through docker compose
docker version
Client: Docker Engine - Community
Version: 24.0.4
API version: 1.43
Server: Docker Engine - Community
Engine:
Version: 24.0.4
API version: 1.43 (minimum version 1.12)
yesterday I pulled up a runner, configured and registered it for CI but I’m having a strange problem:
Although the runner is registered and resolves the gitlab istance everytime I launch a build I get this error message:
Running with gitlab-runner 16.1.0 (b72e108d)
on gitlab-runner1 NWkqXZLAt, system ID: r_YSd60Ek1GN7B
Preparing the “docker” executor00:02
Using Docker executor with image gitlab/gitlab-runner:alpine …
Pulling docker image gitlab/gitlab-runner:alpine …
Using docker image sha256:1e3cfe087dff6147c3deb70c80580012a6211e4aa2abfe50e7a26be157dcf13f for gitlab/gitlab-runner:alpine with digest gitlab/gitlab-runner@sha256:e1bab043c24bfd6eac18e521f3569060e0a9173c50ae7226b9217872e76299ff …
Preparing environment00:00
Running on runner-nwkqxzlat-project-29-concurrent-0 via gitlab-runner1…
Getting source from Git repository00:01
Fetching changes with git depth set to 20…
Reinitialized existing Git repository in /builds/r.maggi/enginnen/.git/
fatal: unable to access ‘https://XXX:9443/r.maggi/enginnen.git/’: Could not resolve host: XXX
Cleaning up project directory and file based variables00:00
ERROR: Job failed: exit code 1
while this is a tcpdump to test the connection, so that you can check is
XXX.9443 > gitlab-runner1.37912: Flags [P.], cksum 0x75b3 (incorrect -> 0x2414), seq 39910:40161, ack 170400, win 9019, options [nop,nop,TS val 1920037779 ecr 1480423905], length 251
12:44:12.970793 IP (tos 0x0, ttl 64, id 19907, offset 0, flags [DF], proto TCP (6), length 52)
gitlab-runner1.37912 >XXX.9443: Flags [.], cksum 0x74b8 (incorrect → 0x1c2a), ack 40161, win 6162, options [nop,nop,TS val 1480423906 ecr 1920037779], length 0
^C
960 packets captured
960 packets received by filter
0 packets dropped by kernel
gitlab-runner1:/# tcpdump -v -i eth0
here below you can find the toml
gitlab-runner1:/# cat /etc/gitlab-runner/config.toml
concurrent = 1
check_interval = 0
shutdown_timeout = 0
[session_server]
session_timeout = 1800
[[runners]]
name = “gitlab-runner1”
url = “https://XXX:9443”
id = 4
token = “glrt-NWkqXZLAtKJ9fH2BoCNF”
token_obtained_at = 2023-07-21T09:12:49Z
token_expires_at = 0001-01-01T00:00:00Z
tls-ca-file = “/certificates/wildcard.XXX.ca-bundle”
tls-cert-file = “/certificates/wildcard.XXX.crt”
tls-key-file = “certificates/wildcard.XXX.key”
executor = “docker”
[runners.cache]
MaxUploadedArchiveSize = 0
[runners.docker]
tls_verify = true
image = “gitlab/gitlab-runner:alpine”
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = [“/cache”]
shm_size = 0
Clearly both containers are on the same network.
Any suggestion?