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

Majid Parvin picture Majid Parvin · Jun 25, 2017 · Viewed 13.5k times · Source

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!

Answer

fedorqui 'SO stop harming' picture fedorqui 'SO stop harming' · Dec 28, 2017

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.