The steps to find a fault in a server
Published on 2026-09-12 by frfrand
A six-step method that avoids blind diagnosis: what to ask first, in what order to look, how to rule out one by one, and why the restart goes last.

Short answer: to find a fault in a server, follow six steps in order: define the symptom (what, for whom, since when, and what changed), check the obvious (disk, memory, service status), read the logs from the first error, isolate the failing layer, change one thing at a time, and note what you found. If you have to restart, first save the evidence.
Something isn't working. The temptation is to open five terminals and start looking at things. Almost always that takes longer than following an order.
This is a method that works.
1. Define the symptom precisely
Before touching anything, answer:
- What exactly fails. "The site isn't working" doesn't work. Does it give an error, is it slow, does it show something incorrect? What status code?
- For whom. All users or some? From all networks?
- Since when. And above all: what changed around that moment. A deployment, an update, a traffic spike, an expired certificate.
That last question resolves more incidents than any tool. The vast majority of production failures follow a change.
2. The obvious, which isn't always checked
Four commands, thirty seconds:
df -h # full disk free -h # available memory systemctl status miapp journalctl -u miapp -n 50 --no-pager
A full disk deserves separate emphasis. When there is no space left, the failures it produces look nothing like "disk full": the database cannot write its log, the application cannot create temporary files, logs stop being written just when you need them most. It looks chaotic and the cause is a single one.
And watch out for inodes: they can run out with the disk half full if there are many small files.
df -i
3. Read the logs from the beginning
The important error is almost never the last one. It is the first one.
When a system breaks, it produces a cascade: the original failure generates ten derived errors. If you look at the last lines, you are seeing the consequences.
journalctl -u miapp --since "14:30" --no-pager
Go to the moment it started, not the current moment.
4. Isolate the layer
A request goes through several layers. You have to find out where it breaks, and you do it from outside in:
- Does the server respond? A ping or a connection to the port.
- Does nginx respond? Ask it for something static.
- Does the application respond directly, bypassing the proxy? A request to localhost on its port.
- Does the database respond? Connect and run a trivial query.
The first one that fails is where the problem is. That order avoids hours of looking at the wrong layer.
5. One change at a time
When you find the probable cause, change one single thing and verify.
If you change three and it works, you don't know which one was it, you learned nothing, and you probably left two unnecessary changes that will confuse someone in six months.
6. Write it down
Three lines: what was happening, what it was, what was done. In a server file, in the ticket, wherever.
The value appears next time, when someone looks for the same symptom.
About restarting
Restarting is legitimate when there are users waiting: it stops the damage.
The problem is restarting without capturing anything, because with the restart the evidence is gone and the problem returns without explanation.
Before restarting, thirty seconds:
journalctl -u miapp -n 500 > ~/incidente.log ps aux > ~/incidente-ps.txt df -h; free -h; ss -tulpn
Save it outside /tmp: on many systems /tmp is emptied when the machine restarts. With that you can restart calmly and diagnose later, with peace of mind.


A procedure you can repeat without improvising
When faced with a 502 error in an application hosted on a VPS, do not restart services at random. First confirm whether the DNS points to the correct server; then check if Nginx responds and if it can connect to the application process. Consult the proxy and service logs, and verify code changes and variables introduced in the latest deployment.
In ArduMaker, the VPS panel shows its status (CPU, memory, disk, services) and allows you to read systemd logs, task logs, and nginx logs for each domain, as well as the web terminal. A platform-specific detail: a published domain without a target port reaches the nginx inside your VPS; if there is no server block for that domain there, the result is a 502 even if the application is healthy. Record time, symptom, affected service, hypothesis, and result of each test: this way the next incident will be investigated faster.
Related: What is Nginx · Where logs are stored.
Frequently Asked Questions
Where do I start when a server fails? With the exact symptom and with what changed just before (a deployment, an update, a certificate). Then, disk, memory, and service status: they take thirty seconds and rule out the most common causes.
Why read the first error in the log and not the last? Because a failure generates a cascade of derived errors. The last one is usually a consequence; the first one, the cause.
Is it wrong to restart to get by? No, if there are users waiting. What is convenient is to save the logs and the state (processes, disk, memory, ports) beforehand, because the restart erases the evidence.