# Troubleshooting

> For AI agents: the complete documentation index is at https://buddy.works/llms.txt

Real error messages from Buddy artifact actions, bdy, docker, npm, composer, git, Turso and the API, with the cause and the setting that fixes each.

Error messages related to artifacts are grouped by where you see them: a pipeline action, `bdy`, `docker`, `npm`, `composer`, `git`, the Turso client, the API or the UI.

Most pipeline problems come from a pipeline that has no permissions to the artifact. First, open the **Permissions** tab of the artifact and check the level in the **Pipeline** section. If the pipeline has its own entry there, the level from that entry applies instead of the **All pipelines** row, even when it is lower.

## Pipeline actions

### Pipeline is not allowed to use artifact

```
Pipeline is not allowed to use artifact: my-app-build [BE2810035]
```

The pipeline has no access to the artifact, and the action tries to download a version or run an image from the artifact registry.

In the **Permissions** tab of the artifact, in the **Pipeline** section, give the pipeline at least **Read-only**. Change the **All pipelines** level or add this pipeline with the **+** button. See [Permissions and access](https://buddy.works/docs/artifacts/permissions-and-access.md).

### Pipeline is not allowed to publish artifact

```
Pipeline is not allowed to publish artifact: my-app-build [BE2810035]
```

The **Publish Artifact Version** action requires the **Read-write** level. With **Read-only**, the pipeline downloads versions but does not publish them. The error appears only after the file list is built, after the `File list ready. Starting upload...` line.

Raise the pipeline level to **Read-write** in the **Permissions** tab of the artifact, in the pipeline's own entry or, if it has none, in the **All pipelines** row. See [Artifacts in pipelines](https://buddy.works/docs/artifacts/pipelines.md).

The **Composer Publish** action returns the same error in a pipeline other than the one that created the artifact. Give that pipeline **Read-write** in the same way.

### Pipeline is not allowed to manage artifact

```
Pipeline is not allowed to manage artifact: my-app-build
```

The **Artifact Cleanup** action deletes versions, which requires the **Manage** level. **Read-write** is not enough.

Give the pipeline with the Artifact Cleanup action the **Manage** level. See [Cleanup and retention](https://buddy.works/docs/artifacts/cleanup-and-retention.md).

### Path already exists and cannot be overwritten

```
Path /downloaded/index.html already exists and cannot be overwritten [BE3000000]
```

The **Download Artifact Version** action does not overwrite files by default, and the pipeline filesystem persists between runs. The destination directory already has files from an earlier run. **Retry** returns the same error, because it repeats only the failed action on the filesystem from the previous attempt.

Add `overwrite: true` to the action or clear the destination directory before the download. See [Quickstart](https://buddy.works/docs/artifacts/quickstart.md).

### Artifact 'identifier' must be unique

```
ERROR: Artifact 'identifier' must be unique [BE3000000]
```

The **Publish Artifact Version** action points to an artifact in an environment scope, and the pipeline does not have that environment assigned or the run is outside it. Running in the environment is not enough if the pipeline does not have it assigned.

Assign the environment to the pipeline (`environments` in YAML) and start the run in that environment. See [Scopes](https://buddy.works/docs/artifacts/scopes.md).

### Image not found after a successful pull

```
Image not found: container.registry.sh/my-workspace/my-images:1.0.0 [BE6021]
```

The image from the artifact registry was pulled (the log shows the digest), but its architecture differs from the runner. Most often it is an `arm64` image built on a Mac with Apple Silicon and run on an X64 runner.

Build the image for `linux/amd64` and push it as a new version:

```bash
docker build --platform linux/amd64 -t container.registry.sh/my-workspace/my-images:1.1.0 .
docker push container.registry.sh/my-workspace/my-images:1.1.0
```

To build an image for several architectures, use `docker buildx build --platform linux/amd64,linux/arm64`.

## Sandboxes

### The sandbox is not allowed to fetch the artifact

```
The sandbox is not allowed to fetch the artifact 'my-app-build'
```

The sandbox has no access to the artifact. The fetch ends with the `ERROR` status, and the destination directory stays empty. A new artifact has the **Deny** level in the **All sandboxes** row, no matter how it was created.

In the **Permissions** tab of the artifact, in the **Sandbox** section, give the sandbox at least **Read-only**, and then fetch the source again. The files land in the directory without a token or login. See [Artifacts in Sandboxes](https://buddy.works/docs/artifacts/sandboxes.md).

## bdy CLI

### Artifact not found

```
Artifact not found. Change artifact name or use --create to create one
```

An artifact with this name does not exist in the selected scope. Often the `-p` flag is missing for an artifact in the project scope.

Check the name and add `-p my-project` or `--scope WORKSPACE`. The `-c` flag creates the missing artifact, but with public access, so it is usually better to create it first with `bdy artifact create -b`. See [Access control](https://buddy.works/docs/artifacts/access-control.md).

### Directory is not empty

```
Directory ... is not empty. Use --merge or --replace flags
```

`bdy artifact download` saves to a directory that already contains files.

Add `-m` to add the version files and keep the local ones, or `-r` to clear the directory before the download.

## docker

### denied on push or pull

```
denied
```

The image address contains the project name. In the artifact registry, the address consists only of the workspace and the artifact name, even for an artifact in the project scope.

Use the `container.registry.sh/my-workspace/my-images:1.0.0` address and log the client in with `bdy artifact docker login`. See [Container registry](https://buddy.works/docs/artifacts/container-registry.md).

> **Warning**
>
> `docker push` to a name that does not exist in the workspace creates a new artifact in the workspace scope without an error. A typo in the image name therefore creates a separate artifact. It has **All pipelines** set to **Deny**, so check its **Permissions** tab.

## npm

### E404 Package not found

```
E404 Package not found or you have no access to it (check npm login)
```

The `npm.registry.sh` registry returns 404 for a package that does not exist and also for a missing token, a wrong token or missing permissions to the artifact. It does not return E401 or E403, so E404 for an existing package means an access problem.

Check `.npmrc`. The package scope must point to the Buddy registry, and the token must be valid:

```
@my-workspace:registry=https://npm.registry.sh/
//npm.registry.sh/:_authToken=<token>
```

The package name without the scope is the artifact identifier, and the scope is the workspace name. See [npm registry](https://buddy.works/docs/artifacts/npm-registry.md).

### Cannot publish over previously published versions

```
You cannot publish over the previously published versions: 1.0.0.
```

A package version with this number already exists in the artifact.

Bump the version in `package.json`, for example with `npm version patch`, and publish again.

## Composer

### URL required authentication (HTTP 401)

```
The 'https://composer.registry.sh/my-workspace/my-php-lib/metadata.json' URL required authentication (HTTP 401).
```

`composer install` connects to the Buddy registry without a token.

Save a personal access token with `composer config --global bearer.composer.registry.sh "$REGISTRY_TOKEN"` or, in a pipeline, pass it in the `COMPOSER_AUTH` variable. See [Composer registry](https://buddy.works/docs/artifacts/composer-registry.md).

### Artifact 'version' must be unique

```
ERROR: Artifact 'version' must be unique [BE3000000]
```

The **Composer Publish** action publishes a version number that the artifact already has. You cannot overwrite a published version.

Bump the version in the **Version** field of the action or in `composer.json`, for example to `1.0.1`.

## git

### could not read Username

```
fatal: could not read Username for 'https://git.buddy.works': terminal prompts disabled
```

The repository address does not contain a token, and `git` runs without a terminal, for example in a pipeline action, so it cannot ask for a username.

Add a personal access token to the address: `https://${REGISTRY_TOKEN}@git.buddy.works/my-workspace/my-repo`. See [Git repository](https://buddy.works/docs/artifacts/git-repository.md).

### Version must start with refs/heads/ or refs/tags/

A Git artifact version was created through the API with a name without a ref prefix, for example `v1`.

Create the version by pushing a branch or a tag with `git push`.

## Turso

### HTTP error 401 or 404

```
LibsqlError: HTTP error! status: 401
```

Status 401 means that the Turso client connects without a token or with a wrong token. Status 404 means that the address points to a version the artifact does not have, for example because of a typo in the version name.

Pass a personal access token as `authToken` in `createClient` and check the `https://<version>-<artifact>-<workspace>.turso-1.registry.sh` address from the **Connect to database** window. See [Turso database](https://buddy.works/docs/artifacts/turso-database.md).

## API and MCP

### Artifact version not found

```
Artifact version my-app-build:9.9.9 not found
```

The `run-pipeline` MCP tool received a version that the artifact does not have. The run does not start.

Check the list of versions in the **Versions** tab or with `bdy artifact version ls`. See [Artifacts and AI agents](https://buddy.works/docs/artifacts/ai-agents.md).

### Run has no artifact files or BUDDY_RUN_ARTIFACT_* variables

The pipeline has no artifact context. A run started through the API or MCP then starts without a version, even if the request specifies one.

Add the context in the **Workflow** tab, in the **Contexts** section, or add the `artifacts` list to the pipeline YAML. See [Run a pipeline with an artifact version](https://buddy.works/docs/artifacts/run-with-version.md).

## Web interface

### 404 when opening an artifact

The project role has the **Artifacts** module set to **None (Deny)**. The project artifacts then disappear from the list ("Nothing yet"), and the direct address of an artifact returns a 404 page instead of a permissions message. Artifacts in the workspace scope are still visible.

Ask a workspace administrator to raise the level of the Artifacts module in the role. See [Permissions and access](https://buddy.works/docs/artifacts/permissions-and-access.md).

### You do not have permissions to access this feature

```
You do not have permissions to access this feature
```

The **Permissions** and **Settings** tabs of an artifact require the **Manage** level in the Artifacts module of the role. With Read-only and Read-write, they are grayed out, and this text appears in the tooltip.

Ask for the Manage level, or ask someone who has it to change the settings.

See also:

- [Permissions and access](https://buddy.works/docs/artifacts/permissions-and-access.md) - the Deny, Read-only, Read-write and Manage levels and project roles
- [Artifacts in pipelines](https://buddy.works/docs/artifacts/pipelines.md) - the Publish, Download and Cleanup actions and their fields
- [Artifacts in the CLI](https://buddy.works/docs/artifacts/cli.md) - step-by-step `bdy artifact` scenarios
- [Versions](https://buddy.works/docs/artifacts/versions.md) - messages about existing and missing versions
- [Access control](https://buddy.works/docs/artifacts/access-control.md) - 401 and 302 responses at the version address
- [Sandboxes: Troubleshooting](https://buddy.works/docs/sandboxes/troubleshooting.md) - sandbox problems, including fetching sources


---
Original source: https://buddy.works/docs/artifacts/troubleshooting