Failed to process runner error=failed to update executor

:hugs: Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.

Problem to solve

I followed instruction to run the runner on ubuntu, when I do

gitlab-runner --debug run

I see the following error:

WARNING: Failed to process runner builds=0 error=failed to update executor: initializing taskscaler: executor requires autoscaler config executor=instance max_builds=1 runner=nfiGQ8nb4 runner_name=localrunneronubuntu

I see it is online in th gitlab site but pipelines always in suspended mode

so what is missing? There is no docker on this box.

Which troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?

debug:

gitlab-runner --debug run

Versions

19.5

  • Self-managed
  • GitLab.com SaaS
  • Dedicated

Versions

  • GitLab (Web: /help or self-managed system information sudo gitlab-rake gitlab:env:info):

there is no self managed information tab

Thanks for sharing the debug output. This line is the key one:

initializing taskscaler: executor requires autoscaler config executor=instance

Your runner is registered with the instance executor. That’s an autoscaling executor: it always goes through taskscaler and needs a [runners.autoscaler] section in config.toml. That’s why the runner shows as online but never picks up jobs.

On an Ubuntu machine without Docker, you most likely want the shell executor. It runs jobs directly on the host.

  1. Edit /etc/gitlab-runner/config.toml and change the executor:
   [[runners]]
     name = "localrunneronubuntu"
     executor = "shell"
  1. Restart the runner:
   sudo gitlab-runner restart

If you’re testing in the foreground, stop gitlab-runner --debug run and start it again.

  1. Run the pipeline again and check that the job is picked up.

Alternatively, run sudo gitlab-runner unregister --name localrunneronubuntu and register again. When the setup asks for the executor, enter shell.

Worth knowing:

  • With the shell executor, jobs run as the gitlab-runner user on the host. Any tools your jobs need (compilers, Node.js, Python, and so on) must be installed there.
  • The shell executor ignores image: in .gitlab-ci.yml.
  • If jobs still don’t start, check the runner’s tags in Settings > CI/CD > Runners. A job without tags only runs on a runner that has Run untagged jobs enabled.

The shell executor docs explain how it works and how it compares to the other executors.

Thanks dnsmichi, there was no runners section in toml file so I added what you suggested as follows

did

sudo gitlab-runner restart

stopped

gitlab-runner --debug stop the run but got same error

WARNING: Failed to process runner builds=0 error=failed to update executor: initializing taskscaler: executor requires autoscaler config executor=instance max_builds=1 runner=nfiGQ8nb4 runner_name=localrunneronubuntu
Feeding runners to channel builds=0 max_builds=1
Feeding runner to channel builds=0 max_builds=1 runner=nfiGQ8nb4
Processing runner builds=0 max_builds=1 runner=nfiGQ8nb4 runner_name=localrunneronubuntu
Acquiring job slot builds=0 max_builds=1 runner=nfiGQ8nb4
Acquiring request slot builds=0 max_builds=1 runner=nfiGQ8nb4 runner_name=localrunneronubuntu
Acquiring executor from provider builds=0 max_builds=1 runner=nfiGQ8nb4 runner_name=localrunneronubuntu
WARNING: Failed to process runner builds=0 error=failed to update executor: initializing taskscaler: executor requires autoscaler config executor=instance max_builds=1 runner=nfiGQ8nb4 runner_name=localrunneronubuntu
Feeding runners to channel builds=0 max_builds=1
Feeding runner to channel builds=0 max_builds=1 runner=nfiGQ8nb4
Processing runner builds=0 max_builds=1 runner=nfiGQ8nb4 runner_name=localrunneronubuntu
Acquiring job slot builds=0 max_builds=1 runner=nfiGQ8nb4
Acquiring request slot builds=0 max_builds=1 runner=nfiGQ8nb4 runner_name=localrunneronubuntu
Acquiring executor from provider builds=0 max_builds=1 runner=nfiGQ8nb4 runner_name=localrunneronubuntu
WARNING: Failed to process runner builds=0 error=failed to update executor: initializing taskscaler: executor requires autoscaler config executor=instance max_builds=1 runner=nfiGQ8nb4 runner_name=localrunneronubuntu

I tried to unregister but got

sudo gitlab-runner unregister --name localrunneronubuntu
Runtime platform                                    arch=amd64 os=linux pid=23549 revision=33227fd4 version=19.5.3
Running in system-mode.

There might be a problem with your config based on jsonschema annotations in common/config.go (experimental feature):
jsonschema validation failed with 'file:///home/salam/config_schema.json#'

at '/runners/0/url': minLength: got 0, want 1

at '/runners/0/token': minLength: got 0, want 1

ERROR: Unregistering runner from GitLab client error  correlation_id=4c77575b0a9f49dfb8ae3e1fd08248bd runner_name=localrunneronubuntu status=get client: new client: only http or https scheme supported
FATAL: failed to unregister runner                  error=mutate config: unregister runner: failed to unregister runner "localrunneronubuntu"