Fix it
Real failures with a symptom, a diagnosis path, the fix and how to prevent it.
- 10 lessons
- 2h 55m estimated time
- 3 hands-on labs
- 2 animated diagrams
- 10 quizzes
4 beginner, 6 intermediate. Start at the top or pick a chapter below.
0 of 10 done
Saved in this browser as you finish lessons.
Cannot reach it
Login, port, DNS and certificate failures between you and the app.
01 Up next Fix SSH permission denied (publickey) Permission denied (publickey) means the server refused every key your SSH client offered, usually because of the wrong user, key or file permissions. 15 min Beginner 05 Up next Fix port already in use (address already in use) Port already in use means another process or container is already listening on that port, so find the owner with ss or lsof and stop it or pick a different port. 10 min Beginner Lab 06 Up next Fix Let's Encrypt certificate errors Let's Encrypt errors come from a failed domain check, usually DNS pointing elsewhere, port 80 blocked or a broken renewal timer, so check each before you retry. 20 min Intermediate 07 Up next Fix a domain that does not resolve A domain that does not resolve returns NXDOMAIN, SERVFAIL or an empty answer, and dig +trace shows which step of the lookup broke so you know whose settings to fix. 20 min Intermediate Diagram
App errors
Restart loops, volume permissions, timeouts and healthy but broken deploys.
03 Up next Fix 504 Gateway Timeout behind a reverse proxy A 504 Gateway Timeout means the reverse proxy reached for your app but got no answer in time, because the app is slow, hung, or not reachable from the proxy. 20 min Intermediate 04 Up next Fix a Docker container that keeps restarting A container that keeps restarting has a main process that exits, and its restart policy starts it again; docker logs and the exit code from docker inspect show why it exits. 15 min Beginner Diagram 08 Up next Fix permission denied on a Docker volume Permission denied on a Docker volume happens because the container's user ID cannot access files owned by a different ID on the host; match the IDs or change the owner. 15 min Intermediate 10 Up next Fix a deploy that passes health checks but serves errors A deploy that passes health checks but serves errors has a health check that tests less than real traffic needs, or traffic is routed somewhere other than the container you checked. 20 min Intermediate
Out of resources
A full disk or the kernel killing processes for memory.
02 Up next Fix a full disk on a Linux server A full disk is fixed by finding the biggest directories with df and du, then removing or shrinking what filled it, such as logs, journal files, Docker data or deleted files still held open. 20 min Beginner Lab 09 Up next Fix out of memory kills (OOM) on a Linux server An out of memory kill happens when the kernel ends a process because the server ran out of RAM and swap; the kernel log names the victim and you fix it by freeing, limiting or adding memory. 20 min Intermediate Lab