Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gitlab: Runner is offline, last contact was about some hours ago

Tags:

recently my runners have been stopped and I don't know why?

I've just upgraded nodejs on the server and it did happen.

after this problem, I've tried to update gitlab to the latest version and check the runner status but the problem still persists and in the title of grey icon shows:

Runner is offline, the last contact was about 22 hours ago.

Runner is offline, the last contact was about 22 hours ago

What should I do?

and when I try to Retry stuck jobs, see this error:

This job is stuck, because you don't have any active runners online with any of these tags assigned to them: 'my label'.

Any Help is appreciated!

like image 678
Majid Parvin Avatar asked Jun 25 '17 12:06

Majid Parvin


People also ask

Why is my GitLab runner not picking up jobs?

You can also check if your runner is allowed to run untagged jobs - you can do that under Admin and then edit it to see if that option is enabled. The runner is a specific runner for the project and not a shared one.

Where are the GitLab runner logs?

By default job logs are sent from the GitLab Runner in chunks and cached temporarily on disk in /var/opt/gitlab/gitlab-ci/builds by Omnibus GitLab.

How does GitLab communicate with runner?

GitLab and the Runners only communicate through an API using the https protocol, so the only requirement is that the Runner's host machine has network access to the GitLab instance.


1 Answers

To me, the following solved the problem:

gitlab-runner restart 

Where gitlab-runner is a symlink to gitlab-ci-multi-runner:

GitLab Runner is the open source project that is used to run your jobs and send the results back to GitLab. It is used in conjunction with GitLab CI, the open-source continuous integration service included with GitLab that coordinates the jobs.

like image 64
fedorqui 'SO stop harming' Avatar answered Sep 28 '22 08:09

fedorqui 'SO stop harming'