Resolved: gitlab-runner was not running on MacOS after the server restarted

Problem

Resolved: gitlab-runner was not running on MacOS after the server restarted

Problem

Today I find that the gitlab-runner was not started on the remote server after the server restarted, and I remember that it occurred before, today, I find the cause is that I need to login to the MacOS with the user running gitlab-runner with desktop.

Solution

The solution to start the gitlab-runner is connecting to the remote server with remote desktop.

I originally connect to the remote server in Terminal with ssh, but I failed to start the gitlab-runner. So I tried to login with remote desktop, and try to start the gitlab-runner again, and find that the gitlab-runner was running when I login to the remote desktop.