Error patterns: symptom, cause, fix
Real errors from production – each with the actual output, the commands to diagnose it and the fix. Tested on real servers. And for each one a free course day where you break it yourself and track it down.
-
The connection to the server was refused - did you specify the right host or port?kubectl: connection refused – API server dead or wrong port?Either the API server is not running, or the kubeconfig points to the wrong port.CKA · Day 14 -
forbidden: exceeded quotaexceeded quota: deployment only half up – the ResourceQuota is fullThe deployment shows 3/6, and the reason is not on the deployment but on the ReplicaSet.CKA · Day 5 -
wget: download timed outdownload timed out: a NetworkPolicy drops the trafficA timeout instead of connection refused – the packets vanish because a NetworkPolicy drops them.CKA · Day 9 -
NotReadyNode NotReady: kubelet stopped, misconfigured or without a runtimeThe node conditions show whether the kubelet has gone silent or the container runtime is missing.CKA · Day 14 -
CreateContainerConfigErrorCreateContainerConfigError: Secret, ConfigMap or key missingThe container is never created – usually a reference the pod needs is missing.CKAD · Day 15 -
error: deployment exceeded its progress deadlineexceeded its progress deadline: the rollout is stuckThe new pod never becomes ready, the deadline runs out – and Kubernetes does not roll back by itself.CKAD · Day 11 -
failed quota: must specify limits.cpufailed quota: must specify limits – pod without requests and limitsAs soon as a ResourceQuota counts CPU or memory, every new pod has to specify those values.CKAD · Day 7 -
no matches for kind "Ingress" in version "networking.k8s.io/v1beta1"no matches for kind: the manifest uses a removed API versionAn old manifest names an apiVersion the cluster no longer knows – kubectl convert upgrades it.CKAD · Day 15 -
CrashLoopBackOffCrashLoopBackOff: why the pod keeps dyingExit code 127, 1 or 137 – what it means and how to find the cause.Debugging Kubernetes · Day 5 -
exceeded its progress deadlineRollout stuck: deployment exceeded its progress deadlineThe rollout doesn't abort, it only reports – the new ReplicaSet gets no ready pod.Debugging Kubernetes · Day 17 -
Could not resolve hostCould not resolve host: finding DNS faults in a Kubernetes PodNamespace missing from the name, a NetworkPolicy blocking DNS or dnsPolicy Default – resolv.conf and the message show the reason.Debugging Kubernetes · Day 8 -
Unexpected connection to K8s API Server from containerFalco: Unexpected connection to K8s API Server from containerA legitimate job triggers the rule – a narrow exception with values ends the noise.Debugging Kubernetes · Day 13 -
ImagePullBackOffImagePullBackOff: why Kubernetes can't pull the imageWrong tag, unreachable registry or missing credentials – the message behind the status names the reason.Debugging Kubernetes · Day 4 -
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?connection to the server :6443 was refused: API server won't startWithout an API server kubectl is useless – crictl and the log files on the node show the reason.Debugging Kubernetes · Day 15 -
OCI runtime exec failed: exec failed: cannot exec in a stopped containerkubectl exec: cannot exec in a stopped container – now what?The container isn't running and the image has no shell – kubectl debug --copy-to gets you in.Debugging Kubernetes · Day 6 -
admission webhook denied the requestKyverno: reading admission webhook … denied the requestThe message names sender, policy and reason – and if you don't see it, it's on the ReplicaSet.Debugging Kubernetes · Day 12 -
Liveness probe failedLiveness probe failed: why the kubelet restarts the containerRestarts without an error in the log – the liveness probe kills the container before it has finished starting.Debugging Kubernetes · Day 5 -
TerminatingNamespace stuck in Terminating: find the cause, don't force itThe namespace conditions say what it's waiting for – a finalizer or broken discovery.Debugging Kubernetes · Day 16 -
NotReadyNode NotReady: check lease, conditions and kubeletConditions set to Unknown mean the kubelet is silent – the lease and the journal show why.Debugging Kubernetes · Day 14 -
OOMKilledOOMKilled (exit code 137): container exceeds its memory limitThe kernel kills the container at its memory limit – how to find the proof and the right limit.Debugging Kubernetes · Day 5 -
PendingPod stuck in Pending: why the scheduler finds no nodeOversized requests, a taint, a PVC without a StorageClass or no event at all – the scheduler's message shows the reason.Debugging Kubernetes · Day 3 -
pod has unbound immediate PersistentVolumeClaimsPVC stuck in Pending: unbound immediate PersistentVolumeClaimsPod and PVC stuck in Pending – the answer is not on the Pod but on the PVC and in the provisioner.Debugging Kubernetes · Day 10 -
ForbiddenForbidden: why the service account isn't allowedWho, verb, resource, API group, scope – the message names everything you need for the fix.Debugging Kubernetes · Day 11 -
Could not connect to serverService without endpoints: Could not connect to serverWrong selector, targetPort or port name – the EndpointSlice shows at which station the request gets stuck.Debugging Kubernetes · Day 7 -
404 page not foundIngress returns 404 page not found: Traefik matches no routerWrong ingress class or wrong Service port – Traefik's access log tells you which.Debugging Kubernetes · Day 9 -
failed to generate apparmor spec opts: apparmor profile not foundapparmor profile not found: profile missing on the pod's nodeThe pod is accepted and scheduled, only containerd fails – the AppArmor profile is not loaded on the node.CKS · Day 8 -
error during command execution: no signatures foundcosign verify: no signatures found – image unsigned or wrong keycosign finds no signature for the image, or none that matches the public key.CKS · Day 14 -
[FAIL] 1.4.1 Ensure that the --profiling argument is set to false (Automated)kube-bench [FAIL]: reading and fixing CIS findings properlykube-bench checks running processes, file permissions and configuration – not every remediation fits every cluster.CKS · Day 3 -
container has runAsNonRoot and image will run as rootrunAsNonRoot and image will run as root: admission yes, kubelet noPod Security Admission accepts the pod, the kubelet doesn't start it – the image runs as root.CKS · Day 9 -
forbidden: violates PodSecurityviolates PodSecurity: Pod Security Admission rejects the podThe namespace enforces baseline or restricted – the message names every violated field.CKS · Day 9 -
failed to parse kubelet flag: unknown flagTalos node NotReady: failed to parse kubelet flagA wrong extraArgs entry in the KubeletConfig – talosctl service and logs kubelet show it without a shell.Debugging Kubernetes · Day 19 -
Unable to connect to the server: EOFTalos: Unable to connect to the server: EOF – find the API serverkubectl is blind, the Talos API isn't – staticpodstatus and the container logs show the reason.Debugging Kubernetes · Day 19 -
Split-Brain detected but unresolved, dropping connection!DRBD split-brain: recognize StandAlone and resolve it safelyBoth sides wrote separately – look first, then use --discard-my-data on the losing side.k0s and LINSTOR · Day 11 -
Not enough available nodesLINSTOR: PVC Pending with Not enough available nodesThe message lists every criterion but not the one that failed – usually a zone is out of space.k0s and LINSTOR · Day 12 -
TerminatingStatefulSet pod stuck in Terminating because the node is goneKubernetes won't start pg-0 elsewhere until someone confirms the old node is dead.k0s and LINSTOR · Day 10 -
Cluster health: 1/3 reachableCilium "Cluster health: 1/3 reachable": one node is an islandAll Cilium pods are running, but pods on one node reach nobody – the tunnel between the nodes doesn't match.Cilium · Day 21 -
cni plugin not initialized"cni plugin not initialized": node NotReady, pods in ContainerCreatingThe CNI configuration in /etc/cni/net.d is missing – usually because the Cilium agent isn't running on the node.Cilium · Day 2 -
Access deniedCilium 403 "Access denied": the L7 rule blocks the requestA 403 without a timeout comes from Envoy – the method or path is missing from the HTTP rules of the CiliumNetworkPolicy.Cilium · Day 12 -
No egress gateway found DROPPEDCilium egress gateway: "No egress gateway found" and "No Egress IP"Pods of a CiliumEgressGatewayPolicy can't reach the destination – no gateway node matches, or the egress IP is missing there.Cilium · Day 16 -
Policy denied DROPPEDCilium "Policy denied DROPPED": find and open default denyTimeouts after a NetworkPolicy – hubble observe shows which packet is dropped, and often it is DNS.Cilium · Day 12 -
Continuing after timeout: 10sLinkerd: exactly 10 seconds of delay – opaque port missingWith protocols where the server speaks first, the proxy waits ten seconds for protocol detection.Linkerd · Day 16 -
linkerd_pool_p2c: No ready endpointsLinkerd 503 "No ready endpoints": the Service finds no podThe client proxy answers with 503 itself after three seconds because linkerd-destination hands out no endpoints.Linkerd · Day 16 -
no "linkerd-proxy" containers foundLinkerd: namespace annotated, but no proxy in the podPods show 1/1 instead of 2/2 and linkerd check finds no proxies – the webhook only acts when a pod is created.Linkerd · Day 16 -
Request deniedLinkerd 403 "Request denied": default deny or wrong identityEverything 403 usually means default deny without rules, a single client with 403 usually the wrong ServiceAccount.Linkerd · Day 16 -
UPGRADE FAILED: another operation (install/upgrade/rollback) is in progressHelm: another operation (install/upgrade/rollback) is in progressAn orphaned revision with status pending-* locks the release – usually after Helm was killed hard.Helm Charts · Day 19 -
UPGRADE FAILED: resource … not ready … context deadline exceededHelm: not ready – context deadline exceeded after --waitHelm waited until the timeout and the resource never became ready – the cause is in the Pods and events.Helm Charts · Day 13 -
exists and cannot be imported into the current release: invalid ownership metadataHelm: exists and cannot be imported – invalid ownership metadataThe object already exists and belongs to no release or to another one – Helm won't take it over unasked.Helm Charts · Day 19 -
nil pointer evaluating interface {}Helm: nil pointer evaluating interface {} – wrong contextA template accesses a field below a value that doesn't exist – often because include got the wrong context.Helm Charts · Day 6 -
Working WAL archiving: FailingCloudNativePG: Working WAL archiving: FailingThe backup only says "rpc error" – the cause is in the log of the plugin-barman-cloud sidecar.PostgreSQL · Day 15 -
FATAL: no pg_hba.conf entry for hostno pg_hba.conf entry for host: why PostgreSQL rejects youNo line matches host, role, database and encryption – pg_hba_file_rules shows which rules apply.PostgreSQL · Day 3 -
FATAL: password authentication failed for userpassword authentication failed: what the server log tells youA wrong password or an old MD5 hash behind a SCRAM rule – the client won't tell you, the server log will.PostgreSQL · Day 3 -
ERROR: permission denied for schema publicpermission denied for schema public: no CREATE since PG 15Since PostgreSQL 15, PUBLIC may no longer create anything in the public schema – and without USAGE even reading fails.PostgreSQL · Day 2 -
ERROR: cannot execute INSERT in a read-only transactioncannot execute INSERT in a read-only transaction: you hit a replicaThe connection lands on a standby – through the wrong service, port or a pooler of type ro.PostgreSQL · Day 14 -
All visitors are onePlausible counts all visitors as one: trusted_proxies is missingBehind a reverse proxy every request comes from the proxy – without trusted_proxies Plausible sees one IP.Plausible Analytics · Day 4 -
Invalid API key or site IDPlausible after restore: API key invalid without old SECRET_KEY_BASEDatabases restored but a new .env – and no API key works any more.Plausible Analytics · Day 8 -
x-plausible-dropped: 1202 Accepted but not counted: x-plausible-droppedPlausible almost always answers 202 – only a header tells you whether an event was counted.Plausible Analytics · Day 2 -
Group 0: FAILEDsops: Group 0: FAILED – which key is missing?sops can't find a matching key. The list below it shows the file's recipients.SOPS for Kubernetes · Day 14 -
MAC mismatchsops: MAC mismatch – file changed outside of sopsSomeone changed the file behind sops' back, usually the plain text. How to spot it and fix it.SOPS for Kubernetes · Day 14
No error pattern matches. Try another search or search the course catalog.