Troubleshooting
Browse all articles, tutorials, and guides about Troubleshooting
Posts
When the Clock Is Wrong: TLS, JWT and Signed-Request Failures From Clock Skew
A few minutes of clock skew can look like a broken certificate, bad credentials, or an authentication regression. Learn how time checks fail, how to inspect Linux time sync, and how to alert before an incident.
ndots:5 in Kubernetes: Why One DNS Lookup Turns Into Ten Queries
A normal external hostname can make eight or ten DNS requests from a Kubernetes Pod before it succeeds. Trace the resolver rule behind that fan-out, measure it, and choose fixes that do not break cross-namespace Service names.
Disk Full but du Disagrees: Finding Deleted Files That Still Use Space
When df reports a full filesystem but du cannot find the bytes, an unlinked log held open by a process is often the missing space. Find the holder, release space safely, and prevent the next midnight disk-full incident.
Ping: Request Timed Out vs Destination Host Unreachable
"Request timed out" means no reply came back. "Destination host unreachable" means a router, or your own machine on the LAN, says it cannot reach the host.
The 5-Minute Kubernetes Cluster Health Check
Learn how to quickly assess your Kubernetes cluster's health with essential commands and catch issues before they become critical problems.
How to Free Up a TCP/IP Port on Linux, macOS, and Windows
Learn how to identify processes using a port and free it up by stopping the service, killing the process, or changing configuration across different operating systems. Find an available port, and close a port with ufw, firewalld or nftables.
Close a Port on Windows from the Command Line
Find the PID with netstat -ano | findstr :PORT, checking the Local Address column, then end it with taskkill /PID <pid> /F, or block the port with netsh.
How to Get Logs From All Pods, Events and Files With kubectl
Read the logs of every pod of a Deployment or ReplicationController at once, follow them live, see the events of one pod, and copy files out of a pod with kubectl.
How to List Volumes in Docker Containers
Learn multiple ways to view Docker volumes attached to containers, inspect volume mounts, find volume locations on the host, and understand volume usage across your Docker environment.
How to Find and Restore a Deleted File in Git
Accidentally deleted a file and need it back? Learn how to find when a file was deleted and restore it from Git history.
How to Fix SSH "Could Not Resolve Hostname" Error
Troubleshoot and fix the SSH 'nodename nor servname provided, or not known' error with DNS checks, host file configuration, and SSH config debugging.
Fix Docker 'Cannot Connect to the Docker Daemon' and 'Permission Denied' Errors
Fix 'Cannot connect to the Docker daemon at unix:///var/run/docker.sock', permission denied on the Docker socket and on volumes, and 'denied: requested access to the resource is denied' on docker push. Learn why the docker group equals root, and how to harden a Docker host.
How to Fix Pods Stuck in Terminating and Delete All Resources
Why a pod or namespace stays in Terminating, when a force delete is safe, how to handle finalizers, down nodes and volumes, and how to list or delete all resources and pods.
How to Reset Local Git Branch to Match Remote Repository HEAD
Learn different methods to reset your local Git branch to exactly match the remote repository HEAD, including hard reset, fetch and reset, and when to use each approach safely.
How to Fix Docker "The input device is not a TTY" Error
Learn what causes the Docker TTY error and discover multiple solutions to fix it, from command-line flags to proper terminal configuration for interactive containers.
How to Rebuild, Restart and Upgrade a Docker Compose Container
restart, up -d, up --build and --force-recreate each apply a different kind of change, and only one of them rebuilds your image. Tested on Compose 5.6: which command picks up which change, how to start only some services, wait for a healthy database, upgrade without losing data, get a shell in a crashed service, and what changed from docker-compose v1.
How to Undo a Git Rebase with ORIG_HEAD or reflog
Just rebased? Check git log -1 ORIG_HEAD, then run git reset --hard ORIG_HEAD. Otherwise find the old commit in git reflog. Mid-rebase: git rebase --abort.
How to Force a Clean Docker Build and Fix Common Build Errors
Rebuild without the cache, fix "docker build requires 1 argument", use files from outside the build context, look inside a build that failed, and give a build SSH keys or secrets without baking them into the image.
Who is Listening on a Given TCP Port on Mac OS X?
Need to find out which process is using a specific port on your Mac? Here's how to check which application is listening on a TCP port using built-in macOS tools.
How to Find Which Process Is Listening on a Port in Windows
Need to know which application is using a specific TCP or UDP port on Windows? Here's how to check using netstat, tasklist, PowerShell, and Resource Monitor.
How to List and Remove Docker Containers and Images
List running and stopped containers, fix "name is already in use", remove old containers and images safely, delete every local image, find where Docker stores its data, and free disk space when Docker fills the disk.
How to Restart, List and Keep Containers Running in a Kubernetes Pod
Kubernetes has no command to restart one container. Learn the ways that work, how to restart pods after a ConfigMap or Secret change, how to list containers, run several commands, keep a container running, and use local images.