Skip to content

race condition for gitlab-workhorse

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

When installing Gitlab ee 18.1.1 on Kubernetes (helm) I get one of the gitlab-workhorse container in webservice failing. It seems to be because its /scripts/start-workhorse is an empty file. Restarting the pod until it starts working does the trick. k logs gitlab-webservice-default-588974c794-n44zv -c gitlab-workhorse:

Begin parsing .tpl templates from /var/opt/gitlab/templates

Writing /srv/gitlab/config/workhorse-config.toml

{"time":"2025-07-08T16:04:28.970996573Z","level":"WARN","msg":"Deprecated: the 'slice' alias for coll.Slice is deprecated - use coll.Slice instead"}

Copying other config files found in /var/opt/gitlab/templates to /srv/gitlab/config

/scripts/exec-env: line 14: /scripts/start-workhorse: Success

It seems that with an empty files exec-env exit 0 and the pod ends up in CrashLoopBackOff

Edited by 🤖 GitLab Bot 🤖