Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

GitLab "This job is stuck": no active runners online, or none that match the job's tags

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A GitLab job that shows "This job is stuck because ..." is pending because no runner is able to pick it up. The usual reasons are that every matching runner is offline or paused, that the job lists a tag no runner carries, or that the only runners are limited to protected branches or to other projects. Compare the job's tags with the runner's tags, status and settings, then change the one that differs.

What the message means

GitLab's translation file shows three messages that begin "This job is stuck because". All three are present at tags v15.11.0-ee, v16.11.0-ee and v18.0.0-ee:

  • "This job is stuck because you don't have any active runners that can run this job."
  • "This job is stuck because the project doesn't have any runners online assigned to it."
  • A longer one that begins "This job is stuck because of one of the following problems." and goes on to list "There are no active runners online" and "no runners that match all of the job's tags". It also names a missing runner for the protected branch; in the file the words "protected branch" are marked as link text.

At tags v14.0.0-ee and v15.0.0-ee the third message instead reads "This job is stuck because you don't have any active runners online or available with any of these tags assigned to them:". That wording is not in the file at v15.11.0-ee or later. Which of these a given job shows depends on the GitLab version and the pipeline's situation. The causes below therefore come from GitLab's runner documentation, not from the wording of one message.

GitLab's job troubleshooting page adds that a job which does not progress is dropped automatically. A pending job is dropped after 1 hour with the failure reason stuck_pending_no_matching_runners, or after 24 hours with stuck_pending_with_matching_runners.

Likely causes

Cause What you see How to confirm
The job lists a tag that no runner has Runners exist and are online, but the job waits Compare tags: in .gitlab-ci.yml with each runner's Tags field
The job has no tags and every runner is limited to tagged jobs A tagged-only runner leaves an untagged job stuck The runner's Run untagged jobs box is cleared
The runner is offline or stale Status other than online Status column in the runner list; gitlab-runner status on the host
The runner is paused Resume accepting jobs button shown Runner list
Instance runners are turned off for the project No instance tab runner is usable Settings > CI/CD > Runners, Instance tab toggle
The runner is protected and the branch is not Job on an unprotected branch waits Runner's Protected box; branch protection
The runner is locked or assigned to other projects Runner not listed for this project Project's Assigned project runners tab

Prove the cause before changing anything

All of these only read.

1. Read the job's tags. In the repository:

grep -n -B2 -A3 "tags:" .gitlab-ci.yml

GitLab's YAML page says "To pick up and run a job, a runner must be assigned every tag listed in the job." A job with no tags: key can go only to a runner set to run untagged jobs. Remember that a job-level tags: replaces default:tags, because the page says the default configuration is then not used.

2. Read each runner's state in the GitLab interface. For a project runner: Settings > CI/CD > Runners, then the Assigned project runners tab. GitLab's page defines the statuses: online means the runner "has contacted GitLab in the last 2 hours and is available to run jobs"; offline means it "has not contacted GitLab in more than 2 hours". Stale means more than 7 days. Note the Tags, Run untagged jobs, Protected and Locked settings, and whether the runner shows a Resume accepting jobs button, which means it is paused.

3. On the runner host, read the service and the connection.

sudo gitlab-runner status
sudo gitlab-runner list
sudo gitlab-runner verify

GitLab's runner page says status "prints the status of the GitLab Runner service" and exits with zero when it is running and non-zero when it is not. list lists the runners saved in the configuration file. verify checks that the registered runners can connect to GitLab, but "doesn’t verify if the runners are being used by the GitLab Runner service". A healthy line reads Verifying runner... is alive.

4. Check the protected setting. GitLab says runners can be configured to run jobs only "on protected branches, or jobs that have protected tags". Look at whether the branch that started the pipeline is protected.

Fix

Change the smallest thing that explains the result of the checks above. Do not combine fixes.

The job's tags do not match

First save the current state:

cp -p .gitlab-ci.yml .gitlab-ci.yml.2026-12-03

Risk: the next edit changes which runners can run this job. Pipelines on other branches that use the same file start picking different runners as soon as the commit lands.

Edit tags: in the job so that every tag listed is one that a runner has, or remove tags: if an untagged-capable runner should take the job. Commit and push the change.

To undo it, only if you need to: the copy below overwrites the current .gitlab-ci.yml, so any edit made to the file since the save is lost, and the restoring commit again changes which runners take this job on every branch that uses the file. Once the change is pushed, copying the saved file back does not remove the pushed commit; the undo is a new commit. Copy the saved file back, then commit and push that restoring change.

cp -p .gitlab-ci.yml.2026-12-03 .gitlab-ci.yml

The runner's tags or untagged setting do not match

First save the current state, by writing down what the runner's Edit page shows now, in this form:

runner: <name>
tags: <tags as shown>
run untagged jobs: <selected or cleared>
protected: <selected or cleared>
paused: <yes or no>

Risk: the next edit changes which jobs this runner accepts, for every project that can use it. A group or instance runner serves other projects, and those projects' jobs start or stop matching.

As a user with the role the page names for that runner type (an administrator for instance runners, the Owner role for group runners, the Owner role for project runners), open the runner's Edit page. GitLab's page says to enter tags separated with a comma in the Tags field, or to select the Run untagged jobs checkbox, and then to select Save changes. The same Edit page holds the Protected checkbox. Whether a runner should be protected, locked or limited to certain projects is a decision for the administrator or Owner who manages it. The last two rows of the table show how to recognise the protected runner and the locked or assigned runner.

To undo it, only if you need to: the saved values replace what the Edit page holds now, so the runner again accepts or refuses the jobs it did before, for every project that uses it. Open the same Edit page and set the fields back to the saved values.

Instance runners are turned off for the project

First save the current state, by writing down whether the "Turn on instance runners for this project" toggle on the Instance tab under Settings > CI/CD > Runners is on or off.

Risk: the next step turns on instance runners for this project, so every job in the project becomes eligible to run on shared instance runners.

On the Instance tab, enable the Turn on instance runners for this project toggle. GitLab's Manage runners page gives this as the step.

To undo it, only if you need to: switching the toggle back makes the project's jobs ineligible for the shared instance runners again, so jobs waiting for them stay pending. Switch the same toggle back to the saved state.

The runner is paused

First save the current state with the same notes as above, including paused: yes.

Risk: resuming the runner lets it accept jobs from every group and project that uses it, including jobs that queued while it was paused.

In the runner list, select Resume accepting jobs. GitLab's page names it as the control to the right of the runner.

To undo it, only if you need to: pausing the runner again stops it taking new jobs from every group and project that uses it. Select Pause from accepting jobs on the same runner.

The runner service is not running

First save the current state:

sudo gitlab-runner status > runner-status-before.txt 2>&1

Risk: the next command starts the GitLab Runner service on the host, so that host begins taking jobs from GitLab.

sudo gitlab-runner start

GitLab's page says start "starts the GitLab Runner service".

Disruptive step, only if you need to back out and only if runner-status-before.txt shows the service was stopped before you started it: the next command stops the GitLab Runner service on this host, so the host stops taking jobs. The page describes it as gitlab-runner stop.

sudo gitlab-runner stop

Then run sudo gitlab-runner status and compare it with runner-status-before.txt.

Restart and configuration reload are separate changing steps; the page documents gitlab-runner restart and a reload with systemctl reload gitlab-runner.service, and each needs the same save, warning and undo.

Example (illustrative): On ci01, the project example-org/example-repo has a job build with tags: of docker and gpu. The only runner, on build-agent1, shows online with the single tag docker. The job sits pending with "This job is stuck". Step 1 shows two tags in the job, and step 2 shows one on the runner, so no runner is assigned every tag. The team removes gpu from the job because the job does not use a GPU. The next pipeline's build job is picked up by that runner.

Confirm the fix

  1. Start a new pipeline. A job that was already pending may need to be run again, because GitLab drops a stuck job after the times above.
  2. The job leaves Pending and shows a runner name in its log.
  3. sudo gitlab-runner verify still reports the runner as alive.

What to watch afterwards

  • Keep runner tags and the tags in .gitlab-ci.yml in step: when a runner is replaced, copy its tag list first.
  • A runner whose host was switched off becomes offline after 2 hours and stale after 7 days, per GitLab's page.
  • GitLab's Manage runners page notes that deleting a runner in the interface leaves its entry in config.toml, so the host keeps contacting GitLab until the runner is also unregistered.
  • Pending jobs that are dropped carry the two failure reasons above, which helps when searching job history.

Risks and limits

  • These commands have not been run or lab-tested.
  • The causes are taken from the runner, tags and status documentation.
  • Changing a shared runner affects every project that uses it.
  • GitLab's page says gitlab-runner verify --delete removes runners that no longer exist in GitLab and that the operation cannot be undone; it is not part of the fixes here.
  • Runner registration and token handling differ by GitLab version; follow GitLab's own page for the version in use.

Sources