YunoHost-Apps / gitlab-runner_ynh

GitLab runner package for YunoHost
https://gitlab.com/gitlab-org/gitlab-runner
GNU Affero General Public License v3.0
5 stars 6 forks source link

YNH GitlabRunner fails on "Cannot connect to the Docker daemon" #104

Closed colmoneill closed 6 months ago

colmoneill commented 6 months ago

Describe the bug

YNH GitlabRunner fails on "Cannot connect to the Docker daemon"

Context

Steps to reproduce

Expected behavior

Logs

app installation logs: https://paste.yunohost.org/raw/fihagicewo

Thank you for any help you can provide!

Best regards,

colmoneill commented 6 months ago

This line in the install log caught my eye, because it is the same message as my gitlab-ci error :

2024-04-04 09:05:47,429: WARNING - Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

So my belief is that 'gitlab-runner_ynh' was not starting the docker process (in my case anyway). I ran this command and my pipeline worked, resolving the issue:

sudo service docker restart

https://paste.yunohost.org/mezanavose.yaml

Hope this helps

kay0u commented 6 months ago

Thanks for the report and your help on matrix to find out what the problem was, I tried to solve it by starting the docker service if it's not before installing gitlab-runner.

Let's wait the CI: https://github.com/YunoHost-Apps/gitlab-runner_ynh/pull/105/