Error messages, explained
49 errors you meet on real systems. Each page says what the message means, the usual causes with a command to check each one, and the fix. Then you can practise on a live machine that has the same problem.
Kubernetes
- CrashLoopBackOffA container keeps exiting, and Kubernetes waits longer and longer before restarting it.
- ImagePullBackOff / ErrImagePullThe node can't pull the container image, so the Pod never starts.
- 0/3 nodes are available: insufficient cpuNo node fits the Pod, so the scheduler leaves it Pending and says why in the events.
- OOMKilled (exit code 137)The container used more memory than its limit and the kernel killed it.
- Service has no endpointsThe Service exists, but its selector matches no ready Pods, so connections fail.
- Node NotReadyThe node's kubelet stopped reporting healthy, so no new Pods go there and existing ones may be evicted.
- Error from server (Forbidden): pods is forbidden: User cannot list resourceThe user or ServiceAccount is authenticated but RBAC doesn't allow the action.
- The connection to the server localhost:8080 was refused - did you specify the right host or port?kubectl found no kubeconfig and fell back to localhost:8080.
- Unable to connect to the server: x509: certificate signed by unknown authoritykubectl doesn't trust the API server's certificate, or the certificate doesn't cover the address used.
- Readiness probe failed: HTTP probe failed with statuscode: 503The Pod runs but reports not ready, so it's removed from the Service.
- Liveness probe failed ... Container will be restartedThe kubelet restarts a container whose liveness probe fails, often before a slow app has started.
- CreateContainerConfigError: configmap not foundThe container can't be created because a ConfigMap, Secret or key it references doesn't exist.
- PersistentVolumeClaim is Pending: no persistent volumes available for this claimThe claim can't find or create a matching volume, so Pods using it stay Pending.
- 0/3 nodes are available: 1 node(s) had untolerated taintThe only nodes with room are tainted, and the Pod doesn't tolerate the taint.
- Error creating: pods is forbidden: exceeded quotaA ResourceQuota blocks new Pods, and the error hides in the ReplicaSet's events.
- 503 Service Temporarily Unavailable (ingress-nginx)The ingress controller has no healthy backend for the route, or no rule matches the request.
- nslookup: can't resolve 'my-service' / could not resolve hostA Pod can't resolve a Service name, so calls fail before any connection.
- Cannot evict pod as it would violate the pod's disruption budgetA PodDisruptionBudget allows no more disruptions, so drain waits forever.
Linux
- No space left on deviceA write failed because the filesystem is full, or out of inodes, or a deleted file is still held open.
- Permission deniedThe user the process runs as lacks the read, write or execute right on the file or a directory on its path.
- /bin/bash^M: bad interpreter: No such file or directoryThe script has Windows line endings, so Linux looks for an interpreter called "bash\r".
- Out of memory: Killed processThe system ran out of memory and the kernel killed the process using the most.
- Too many open filesThe process hit its limit on open file descriptors (files, sockets, pipes).
- Cron job not runningThe job never starts, or starts and fails silently because cron's environment differs from your shell.
- Permission denied (publickey)The server didn't accept any key the client offered.
- Process won't stop (kill doesn't work)The process ignores SIGTERM, is stuck in the kernel (D state), or is a zombie that's already dead.
Networking
- bind: address already in useAnother process (often an old copy of the same one) already listens on that port.
- connect: connection refusedThe host answered, but nothing listens on that address and port.
- x509: certificate signed by unknown authorityThe client can't build a chain from the server's certificate to a CA it trusts.
- x509: certificate is valid for a.example.com, not b.example.comThe certificate's Subject Alternative Names don't include the hostname the client used.
- x509: certificate has expired or is not yet validThe certificate's validity window doesn't include the current time (or the client's clock is wrong).
- curl: (6) Could not resolve hostThe name couldn't be turned into an IP address.
Docker
- exec format errorThe binary in the image was built for another CPU architecture (arm64 vs amd64), or a script lacks a shebang.
- no space left on device (Docker)Old images, stopped containers, volumes, build cache or container logs filled /var/lib/docker.
- Container takes 10 seconds to stop (exit code 137)The app never receives SIGTERM, so Docker waits 10 seconds and kills it.
- E: Unable to locate packageapt-get install runs with a stale or empty package list.
- permission denied while trying to connect to the Docker daemon socketYour user can't open /var/run/docker.sock.
Git
- error: failed to push some refs to ... (fetch first / non-fast-forward)The remote branch has commits you don't have, so pushing would throw them away.
- CONFLICT (content): Merge conflict in ... Automatic merge failedBoth branches changed the same lines, and Git needs you to choose.
- You are in 'detached HEAD' stateYou checked out a commit or tag, not a branch; new commits belong to no branch.
- fatal: refusing to merge unrelated historiesThe two branches share no common commit, usually a new local repo and a remote created with a README.
- error: Your local changes to the following files would be overwritten by checkoutSwitching or pulling would replace files you changed but haven't committed.