# Pipeline Error Messages

Course: [CI/CD](https://www.devtutorials.ai/learn/cicd) · Section: Reference
Source: https://www.devtutorials.ai/learn/cicd/reference/error-messages

> The error lines you will meet in pipeline logs, what each one means, how to fix it and which lesson explains it.

## Pipeline Error Messages

Search this page for the words in your log. Each row says what it means and where to fix it.

**Simple lesson:** read the first error line, then find it here.

## The File Will Not Load

| You see | It means | Fix | Lesson |
|---|---|---|---|
| `Tab character used for indentation` | A tab, not spaces | Use two spaces per level | What Happens After You Push |
| `All mapping items must start at the same column` | Lines are not lined up | Line up keys at the same level | What Happens After You Push |
| `Required property is missing: jobs` | No jobs block | Add `jobs:` | Your First Pipeline |
| `The job 'x' is missing 'runs-on'` | No machine chosen | Add `runs-on: ubuntu-latest` | Your First Pipeline |
| `depends on 'x', but there is no job with that name` | A typo in needs or dependsOn | Match the job's exact name | Your First Pipeline |

## No Run Started

| You see | It means | Fix | Lesson |
|---|---|---|---|
| A pull request shows no checks | The pull request trigger is missing | Add `pull_request:` or `pr:` | What Happens After You Push |
| A job is skipped on a pull request | Its condition is main-only | Expected for deploy jobs | Environments and Secrets |
| `Skipped: a job it needs did not succeed` | An earlier job failed | Fix that job first | Your First Pipeline |

## A Step Failed

| You see | It means | Fix | Lesson |
|---|---|---|---|
| `Could not read package.json`, `MSB1003` | No code on the runner | Add the checkout step | What Happens After You Push |
| `vitest: not found`, `NETSDK1004` | Packages not installed | Add `npm ci` or `dotnet restore` | Reading Red Builds |
| `Unknown command`, `dotnet-xyz does not exist` | A typo in a command | Fix the spelling | What Happens After You Push |
| `is not a function`, `NETSDK1045` | Tool version too old | Set node-version 22 or dotnet-version 10.0.x | Reading Red Builds |
| `API_URL is not set` | A setting is missing | Add it with `env:` or `variables:` | Reading Red Builds |
| `exceeded the maximum execution time` | Time limit too small | Raise the limit, or speed up the job | Reading Red Builds |
| `error TS2322`, `error CS0029` | A type error | Fix the file and line it names | Quality Gates on Pull Requests |
| `no-unused-vars`, `WHITESPACE` | A lint rule broke | Fix the named line | Quality Gates on Pull Requests |
| `continue-on-error is on` | A failure was hidden | Remove continue-on-error from gates | Quality Gates on Pull Requests |

## Artifacts and Deploys

| You see | It means | Fix | Lesson |
|---|---|---|---|
| `No files were found with the provided path` | Saved before the build | Save after build or publish | Artifacts and Versions |
| `Artifact not found for name` | The saving job had not finished | Add needs or dependsOn | Artifacts and Versions |
| `Unable to get ACTIONS_ID_TOKEN_REQUEST_URL` | The job may not ask for a token | Add `id-token: write` | Environments and Secrets |
| `No credentials found. Add an Azure login action` | No `azure/login` before the deploy (GitHub) | Add `azure/login` first, with `id-token: write` | Deploy for Real |
| `Resource shop-web-stage of type Microsoft.Web/Sites doesn't exist` | Wrong app name | Copy the exact name from the portal | Deploy for Real |
| `image … was not found in the registry` | The deploy did not wait for the push | Add needs or dependsOn on the image job | Deploy for Real |
| `curl: (22) … error: 503` | The app is not healthy | Fix the release, or add retries for slow starts | Deploy and Smoke Test |
| `No credentials found` in the rollback job | The rollback cannot reach the cloud | Sign in at the start of the rollback job | Rollback and Recovery |
| The smoke step is green, but the page shows 503 | curl without `--fail` | Add `--fail` | Deploy and Smoke Test |

## Tests and Containers

| You see | It means | Fix | Lesson |
|---|---|---|---|
| `ECONNREFUSED 127.0.0.1:5432` | No database for the tests | Add a postgres service container with a health check | Tests and Workflow Logic |
| A value from another job is empty | An output name does not match | Match the step id, output name and job name | Tests and Workflow Logic |
| `denied: permission_denied: write_package` | GITHUB_TOKEN cannot push packages | Add `packages: write` to the job | Containers in CI |
| `unauthorized: authentication required` | No registry sign-in | Add `docker/login-action` or a registry service connection | Containers in CI |
| `Total: 3 (HIGH: 2, CRITICAL: 1)` | The image has known security holes | Use a newer base image tag | Containers in CI |
| `Hint: add 'attestations: write'` | The attestation step lacks permissions | Add `attestations: write` and `id-token: write` | Containers in CI |
| `⚠ This lab does not run …` | The lab cannot simulate that action | Fine in real runs. Read that action's docs | Your First Pipeline |

If your error is not here, copy the first error line into a search engine with the platform's name. Someone has almost always seen it before.
