вторник, 28 ноября 2023 г.

gitlab runner - Error response from daemon: stat /var/lib/docker/overlay2/xxx: no such file or directory

 i had issue with gitlab runner.

Error response from daemon: stat /var/lib/docker/overlay2/9bc19ea797a618f993714f578e3a08b5e4528f6f524e6fe5efffb312927704a7: no such file or directory

solution:

docker system pruna -a

systemctl stop docker

systemctl start docker

суббота, 11 ноября 2023 г.

gitlan-runner Could not resolve host: gitlab.com fix


I had issue when running job via gitlab-runner.

Could not resolve host: gitlab.com и dial tcp: lookup docker on 8.8.8.8:53: no such host

Solution:
 add marked red and restart runner.

systemctl restart gitlab-runner


concurrent = 1
check_interval = 0
shutdown_timeout = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "your-runner"
url = "https://gitlab.com"
id = xxxx
token = "token"
token_obtained_at = 2023-11-11T10:08:46Z

token_expires_at = 0001-01-01T00:00:00Z

executor = "docker"

[runners.cache]
MaxUploadedArchiveSize = 0
[runners.docker]
tls_verify = false
image = "docker:dind"
privileged = true
dns = ["8.8.8.8"]
network_mode = "host"
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache","/var/run/docker.sock:/var/run/docker.sock"]
shm_size = 0
network_mtu = 0