Cannot enable group runners for a project

Problem to solve

Clicking on “Enable Group Runners” in any of the projects, e.g. https://gitlab.com/mygroup/subgroup/repo/-/settings/ci_cd#js-runners-settings gives back 500 error page.

terraform gitlab provider reports success, but group runners remain disabled. Repos that had group runners enabled before keep working fine.

Does anyone else have the same problem? It hasn’t worked for me for weeks.

Versions

Please select whether options apply, and add the version information.

  • Self-managed
  • [x ] GitLab.com SaaS
  • [x ] Self-hosted Runners

I’ve encountered the same issue on our Gitlab.com projects in a newly created group that were created via Terraform. Once created with gitlab_runners_enabled=false in the provider it doesn’t seem that I can change the setting. Whether with the Terraform provider or via the API directly via curl the response always returns a value of null instead of true or false.

On the other hand, if I create a project with the Terraform provider and the group_runners_enabled setting is toggled to true at initial creation the setting is still false, but I am able to go into the UI (presumably this also works with curl) and tick the toggle to enable group runners, at which point the runners successfully pick up CI jobs.

TL;DR - creating a project via the API with group_runners_enabled set to false produces a null value for that setting. Subsequent changes via the API are ignored, and changing the setting in the UI produces the 500 error the original poster shared. Creating a project via the API with group_runners_enabled set to true produces a project with a group_runners_enabled setting of false, but it is possible to go into the UI and toggle the setting to true to make the project behave as intended.

 ➜ curl -X PUT --header "PRIVATE-TOKEN: <aToken>" \
     --url "https://gitlab.com/api/v4/projects/<projectId>" \
     --data "group_runners_enabled=true" | jq | grep "runners"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5435  100  5409  100    26   7253     34 --:--:-- --:--:-- --:--:--  7295
  "shared_runners_enabled": false,
  "runners_token": null,
  "group_runners_enabled": null, **<- the problem is here