Troubleshooting

Troubleshooting

Every failure muster recognises, what it means, and how to fix it.

How it works

When a deploy, rollback or health check fails, muster matches the log, the exit code and your machine against the rules below, offline. The first match is shown as the likely cause above the recovery menu, with a one-key fix when a safe one exists. Fixes run only when you pick them.

Terminal
muster explain              # why did the last deploy fail?
muster explain api          # explain api's newest log
muster explain --log FILE   # any log file
muster explain --fix        # explain, then offer the fix
muster doctor --fix         # apply the fixes that are safe to automate

No rule matched? muster ask reads the same logs with an AI model.

Timeouts and resources

deploy_timeout

The hook ran longer than its deploy_timeout and was stopped (exit 124).

Try: If the deploy is just slow (large image builds, slow rollouts), raise deploy_timeout for this service in muster.json. If it hangs, check the log for a step waiting on input or a network call.

Fix: Raise the service's deploy_timeout in muster.json (doubles it, max 3600s).

disk_full

The disk (or Docker's storage) is full.

Try: See what's using space with: docker system df. Removing stopped containers, dangling images and build cache usually frees enough.

Fix: docker system df; docker system prune -f.

exec_format

The image or binary was built for a different CPU architecture (for example arm64 vs amd64).

Try: Build for the target platform: docker build --platform linux/amd64 (or linux/arm64), or set DOCKER_DEFAULT_PLATFORM. Use docker buildx for multi-arch images.

oom_killed

The process ran out of memory and was killed (OOMKilled / exit 137).

Try: Raise the memory limit (k8s resources.limits.memory, compose mem_limit, docker run --memory) or reduce memory use. For Node, set NODE_OPTIONS=--max-old-space-size.

stale_lock

Another deploy holds the lock, or a crashed deploy left its lock behind.

Try: If the owning process is gone, remove the lock (muster doctor --fix) or use muster deploy --force.

Fix: Remove the lock left by a process that no longer exists.

SSH

ssh_host_key

The remote server's SSH host key doesn't match the one you saved before. The server may have been rebuilt — or something may be intercepting the connection.

Try: Confirm the new fingerprint with whoever runs the server, then remove the old key with: ssh-keygen -R <host>. muster never bypasses host key checks for you.

Fix: None, on purpose. muster never bypasses host key checks.

ssh_auth

SSH reached the server but it refused your credentials.

Try: Check the user and identity_file in the service's remote config, load your key with ssh-add, and test with: ssh -i <key> <user>@<host> true

ssh_timeout

Couldn't open an SSH connection to the remote host (timeout, DNS or network).

Try: Check the host name and port, that you're on the right network/VPN, and that sshd is running. Test with: ssh -v <user>@<host>

Docker and registries

docker_sock_permission

Your user isn't allowed to talk to the Docker daemon.

Try: On Linux, add yourself to the docker group, then log out and back in (or run: newgrp docker). On macOS, restart Docker Desktop.

Fix: Linux: sudo usermod -aG docker $USER (log out and back in afterwards).

docker_not_running

Docker is installed but the Docker daemon isn't running.

Try: Start Docker (Docker Desktop, colima or the docker service), wait until 'docker info' works, then retry.

Fix: Start Docker: open -a Docker / colima start on macOS, sudo systemctl start docker on Linux.

registry_rate_limit

Docker Hub's anonymous pull rate limit was hit.

Try: Log in (docker login) to get a higher limit, wait a few hours, or pull from a mirror/your own registry.

Fix: docker login [registry].

registry_manifest_unknown

The image tag doesn't exist in the registry.

Try: Check the image name and tag (typos, a tag that was never pushed, or a build that didn't push). List tags in your registry or push the image first.

registry_pull_denied

The registry refused access to the image — it's private, misspelled, or you're not logged in.

Try: Run docker login for that registry, and check the image name. For k8s, make sure an imagePullSecret is set.

Fix: docker login [registry].

registry_tls

A TLS certificate couldn't be verified (self-signed, expired, or a corporate proxy).

Try: Install the registry/proxy CA certificate on this machine (and in Docker), or fix the expired certificate. Avoid disabling TLS verification.

Kubernetes

k8s_unauthorized

kubectl reached the cluster but your credentials were rejected (expired token or missing permissions).

Try: Refresh your cluster credentials (e.g. aws eks update-kubeconfig, gcloud container clusters get-credentials, az aks get-credentials) and check RBAC for the namespace.

k8s_context

kubectl has no usable context — it isn't pointed at any cluster.

Try: List contexts with: kubectl config get-contexts, then pick one: kubectl config use-context <name>

k8s_namespace

The Kubernetes namespace doesn't exist.

Try: Create it (kubectl create namespace <ns>) or fix the namespace in muster.json (services.<svc>.k8s.namespace).

Fix: kubectl create namespace <ns>.

k8s_unreachable

The Kubernetes API server can't be reached.

Try: Check your VPN/network, that the cluster is running, and the current context: kubectl config current-context

k8s_image_pull

Kubernetes can't pull the container image.

Try: Check the image name and tag in the deployment, that it was pushed, and imagePullSecrets for private registries. For local clusters with pullPolicy Never, load the image into the cluster.

k8s_crashloop

The container starts and then keeps crashing.

Try: Read the crash output: kubectl logs <pod> --previous. Common causes: missing env vars, wrong command, or a dependency (DB) that isn't reachable.

k8s_config_error

A Secret, ConfigMap or PVC the pod needs doesn't exist.

Try: Create the missing object in the namespace (kubectl get secret,configmap,pvc -n <ns>) or fix the reference in the manifest.

k8s_unschedulable

No node has enough free CPU/memory (or matching labels) to run the pod.

Try: Lower resources.requests, add nodes, or check nodeSelector/taints: kubectl describe pod <pod>

prod_context

kubectl's current context looks like production, but this project doesn't.

Try: Double-check before deploying: kubectl config current-context. Switch with kubectl config use-context <name>.

Ports and dependencies

port_in_use

The port this service wants is already taken by another process or container.

Try: Stop whatever holds the port, or change the port the service publishes.

Fix: Stop whatever holds the port: docker stop <container> or kill <pid> (found with docker ps / lsof / ss).

conn_refused_dep

The service couldn't reach something it depends on (a database, cache or another service).

Try: Make sure infrastructure deploys first (deploy_order in muster.json) and that hosts/ports in your config are right.

Fix: Move the dependency before the service in deploy_order.

Builds

npm_lockfile

The install step needs a lockfile that's missing or out of date.

Try: Generate/refresh the lockfile locally (npm install, pnpm install or yarn install), commit it, then redeploy.

Fix: npm install --package-lock-only.

npm_dependency

A JavaScript dependency is missing or the dependency tree can't be resolved.

Try: Make sure the package is in package.json (not just installed locally), then run npm install. For ERESOLVE, fix the conflicting peer versions (or use --legacy-peer-deps as a last resort).

pip_failure

A Python dependency couldn't be installed or imported.

Try: Check the package name/version in requirements.txt (or pyproject), install into a virtualenv, and make sure build tools exist for packages that compile.

go_build

The Go module files are out of date for this build.

Try: Run go mod tidy, commit go.mod and go.sum, then redeploy. If a newer Go is required, update the toolchain/base image.

Fix: go mod tidy.

Git

git_conflict

git pull couldn't merge cleanly — local commits/changes conflict with the remote.

Try: Resolve it by hand: git status, then merge/rebase and commit. muster never discards your local changes.

git_dirty

git pull stopped because uncommitted local changes would be overwritten.

Try: Commit or stash them (git stash), pull, then deploy again.

git_behind

Your branch is behind its upstream — you may be deploying old code.

Try: Pull first (git pull), or deploy anyway if that's intended.

Fix: git pull --ff-only.

Hooks, tools and env

env_missing

A required environment variable isn't set.

Try: Add it to the project's .env (muster loads it before every deploy) or export it in your shell/CI.

hook_not_executable

A hook script isn't executable.

Try: Make it executable: chmod +x .muster/hooks/<service>/*.sh

Fix: chmod +x .muster/hooks/<svc>/*.sh.

command_not_found

A command the hook calls isn't installed (or isn't on PATH).

Try: Install the missing tool, or use its full path in the hook.

Fix: Install the tool with your package manager (brew, apt-get, dnf, yum, apk or pacman).

hook_missing

A service has no deploy hook, so there is nothing to run.

Try: Re-run muster setup (choose Update to keep your changes) to regenerate missing hooks, or add .muster/hooks/<svc>/deploy.sh yourself.

tool_missing

A tool this stack needs isn't installed.

Try: Install it with your package manager (see the suggested command).

Fix: Install the tool with your package manager (brew, apt-get, dnf, yum, apk or pacman).

Health checks

health_wrong_port

The health check targets a port nothing is listening on, but the service is listening on another port.

Try: Point the health check at the port the service actually uses (muster settings, or health.port in muster.json).

Fix: Point health.port at the port the service is listening on.

health_refused

Nothing is listening on the health check port — the service isn't up (yet), or crashed after starting.

Try: Check the service logs (muster logs <svc>); if it is just slow to start, raise health.timeout.

health_timeout

The health endpoint didn't answer before the timeout.

Try: The service may still be starting or be overloaded. Raise health.timeout in muster.json, or check the logs.

health_http_5xx

The health endpoint answered with a server error (HTTP 5xx) — the service is up but unhealthy.

Try: Check the service logs for the error behind the 5xx (often a database or config problem).

health_http_4xx

The health endpoint answered with HTTP 4xx — the path is probably wrong or needs auth.

Try: Fix health.endpoint in muster.json (for example /health or /healthz), or allow unauthenticated access to it.