[Solved] Gitlab-runner - Could not resolve host: my.domain.ltd

,

For several days, I tried to run gitlab-runner_ynh
First error which came when I pipelined a simple job was: Could not resolve host: my.domain.ltd

Trying to fix that issue, I had several other errors.
Finally, returning to the original setup for the file config.toml, I added this line inside the [[runners]] section: dns_search = [“my.domain.ltd”]

Here is my file located @: /etc/gitlab-runner/config.toml
Hoping it may helps someone:

concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "Yunohost"
  tls_verify = false
  url = "https://my.domain.ltd/"
  token = "*************"
  executor = "docker"
  dns_search = ["my.domain.ltd"]
  [runners.custom_build_dir]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]
  [runners.docker]
    image = "alpine:latest"
    privileged = false
    disable_entrypoint_overwrite = false
    oom_kill_disable = false
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0

Pendant plusieurs jours, j’ai essayé de faire tourner : gitlab-runner_ynh
La première erreur que j’ai eu sur le pipeline d’un simple job a été : Could not resolve host: my.domain.ltd

En essayant de résoudre le problème, j’ai eu plusieurs autres types d’erreurs.
Finalement, je suis revenu au fichier de base de config.toml.
J’y ai ajouté cette ligne dans la section [[runners]] : dns_search = [“my.domain.ltd”]

Voici mon fichier se trouvant dans : /etc/gitlab-runner/config.toml
En espérant qu’il puisse aider quelqu’un :

concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "Yunohost"
  tls_verify = false
  url = "https://my.domain.ltd/"
  token = "*************"
  executor = "docker"
  dns_search = ["my.domain.ltd"]
  [runners.custom_build_dir]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]
  [runners.docker]
    image = "alpine:latest"
    privileged = false
    disable_entrypoint_overwrite = false
    oom_kill_disable = false
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0
1 Like

Hi!

Thank you for this feedback, I’ll add it to the Additional information section of the readme.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.