Gitlab-runner: The dependency service or group failed to start

FATAL: Failed to start gitlab-runner: The dependency service or group failed to start

I am trying to run gitlab-runner as a service using a user account so that it has access to some software licenses. I did the following on windows 11 in the PowerShell:

mkdir C:\gitlab-runner
cp gitlab-runner-windows-amd64.exe C:\gitlab-runner\gitlab-runner.exe
cd gitlab-runner
gitlab-runner install --user “AzureAD\username” --password “password”
gitlab-runner register
gitlab-runner start
FATAL: Failed to start gitlab-runner: The dependency service or group failed to start

A google search revealed nothing specific to gitlab-runner. I checked the gitlab-runner service which does not depend on any other services. So I do not understand the error message. I would appreciate any help I could get.

2 Likes

I have the same problem on windows 10. Help is welcome !

1 Like

I found a workaround that works for me. I created a local user named gitlab-runner.

gitlab-runner install --user “.\gitlab-runner” --password “password”

Additionally, I had to allow to add the user, gitlab-runner, to “Log on as a service” (see : Install GitLab Runner on Windows | GitLab) .

This worked for me on windows 11 and windows 10 installations.

Thanks for feedback. Unfortunately I have to use the “AzureAD\username” account, because only this account gets a necessary software licence from a licence server.