Dedicated Servers Turkey | GPU & Data Center | SistemDC

Why Did My Server Shut Down? Find the Cause in the Logs

Why Did My Server Shut Down? How to Find the Cause of a Restart From the Logs (Technical Inspection Guide)

Why Did My Server Shut Down? How to Find the Cause of a Restart From the Logs (Technical Inspection Guide)

You arrive in the morning and find the server off, or find that it restarted during the night. The application seems to be running, but there is a gap of a few hours and everyone asks the same question: why did the server shut down? It is easy to answer "probably the power" or "I think it was an attack", but the right answer lies in the records, not in guesses. This guide explains step by step how to find the cause of a shutdown or restart from the logs, what each trace does and does not prove, and how a good technical inspection is written.

What to do in the first 10 minutes after a shutdown

First moves made in a panic often erase the most valuable evidence. Keep this order:

  1. Is it off or just unreachable? If ping, SSH or RDP do not answer, the server is not necessarily off; a network, firewall or service problem is also possible. Confirm the real state from the management panel and the console.
  2. Write down the time and the time zone. "Around 3 at night" is not enough. The time the customer saw, the time on the panel and the time on the server may be in different time zones; a three-hour offset is a common mistake.
  3. Take the console screen before powering on. A kernel panic, a disk error or a "disk not found" screen disappears when the server starts.
  4. After starting, save the logs first. Logs of the previous boot are not persistent on some systems and can be lost after several restarts.
  5. Do not change anything by hand. Restarting services, cleaning disks or editing settings spoils the evidence and makes the later inspection harder.

The difference between a clean shutdown and a sudden stop

A server stops in one of two ways. In a clean shutdown the operating system receives the shutdown command, stops services in order and writes a "shutting down" trace to the log. In a sudden stop, power, hardware, memory exhaustion, a kernel error or an event in the virtualization layer gives the system no chance to shut itself down; the log is cut in the middle of a sentence. The first question of an inspection is therefore: does the end of the previous boot's log contain a shutdown trace?

On Linux you can see this with these commands:

journalctl --list-boots
journalctl -b -1 -n 40 --no-pager
last -x reboot shutdown | head

journalctl --list-boots shows how many times the system has booted and the first and last record time of each boot. -b -1 returns the previous boot; if its last lines contain an expression such as Reached target Shutdown or System is powering off, the shutdown was started from the inside. If you see a reboot ... - crash line in the last -x output, the system stopped by crashing.

On Windows the equivalent is the event log:

Get-WinEvent -FilterHashtable @{LogName='System'; Id=41,1074,1076,6005,6006,6008} -MaxEvents 30 |
  Select-Object TimeCreated, Id, ProviderName, Message

Event 1074 shows that a user or process started a shutdown or restart, and 6006 shows that the event log service stopped cleanly. Events 41 (Kernel-Power) and 6008 say that the system restarted without a clean shutdown. The important point: event 41 does not tell the cause, it only tells that the stop was sudden.

Possible causes of a sudden stop and the trace each one leaves

The table below summarizes common causes and the record in which each leaves a trace. A single trace does not count as a certain cause; the reasons are explained below.

Possible causeTrace to look forDoes it prove the cause by itself?
Memory exhaustion (OOM)"Out of memory" and "Killed process" lines in the kernel log, close to the shutdown timeProves that a process was killed; explains a full stop only together with other records
Disk error or file-system problem"I/O error", "remounting filesystem read-only", a SMART warningProves a disk problem; whether it led to the shutdown is judged by time correlation
Power lossA power-loss record in the hardware (BMC) event log, a log cut off abruptlyStrong hint when backed by a BMC record; a cut-off log alone does not prove power loss
Kernel panic or hardware error"Kernel panic", "Machine check", "Hardware Error" linesYes, if the record exists it shows the cause directly
Restart of the host (virtualization server)No clean-shutdown trace inside the virtual server; a restart at the same time in the host recordsTime correlation is a strong hint; someone looking only from the inside cannot see it
Management action (power off or restart from the panel)Management-layer task record, the account that made the actionProves the action was requested; who asked and why is verified separately
Scheduled task or updateUpdate or installation records right before the shutdown, event 1074Explains a clean shutdown

Building a timeline: the same minute matters, not a single line

The strongest tool of a shutdown inspection is the timeline. You line up the records inside the server, on the host and in the management layer on the same axis in the same time zone. A story like this emerges: "memory exhaustion began at 04:32, the VM's log was cut at 04:47, the host restarted at 04:50 and the server came up at 04:51". Each event is labelled either evidenced or assumption.

  • Convert the times to one time zone (for example all UTC, or all local time).
  • Determine the outage window: between the last log record and the first record after the restart.
  • Separate the events that fall inside and just before this window; a warning hours earlier is context, not cause.
  • Test each candidate with this question: does this event explain the full stop of the server by itself?

Three common traps that lead to the wrong conclusion

1. Mistaking noise for the cause

Thousands of failed SSH or RDP attempts reaching a server are a real security problem; you should restrict access by IP and use keys instead of passwords. But these attempts do not shut a server down. Finding such lines at the time of the shutdown is a coincidence; they exist on every server every day. A report should state separately that "these attempts are not the cause of the shutdown".

2. Taking another server's record for this server's record

Dozens of virtual servers run on the same host. A memory-exhaustion line in the host's log sometimes kills another virtual server. In an inspection the line should not be counted as a root cause unless its relation to your server is shown.

3. Missing a time zone shift

A customer saying "it shut down at 4 at night" and the log showing "01:00" can be the same event. A comparison made without knowing this can even lead to the conclusion that the shutdown "did not happen".

Run your server in Istanbul with KVM virtualization

In a data center built to Tier 3 standards, with a 1 Gbps port and 24/7 support.

See the VDS plans

Why inspection differs between a VDS and a physical server

On a virtual server (VDS) a shutdown can start in two places: inside the server or on the host beneath it. When the server shuts down, the log inside it is cut off too; looking only from the inside therefore does not show the cause. The records of the host and the management layer have to be read together with the log inside. On a physical server there is an extra source: the hardware event log of the management controller (BMC/IPMI), which works independently of the operating system. Power loss, overheating and power-supply failure are often recorded here before the operating system can even notice. We explained how to reach this controller from the panel of your dedicated server in our dedicated server checklist guide.

What an evidence-based inspection report looks like

A technical inspection report does not have to say "we found the cause"; what it has to do is separate what is evidenced, what is a possibility and what is unknown. A good report contains:

  • Result and risk level: a one-sentence summary of the inspection and a low / medium / high risk assessment.
  • Findings: for each one, what was found, its certainty level (evidenced, unverified possibility, insufficient evidence), its limit and the recommended step.
  • Timeline: the log lines and times supporting the finding.
  • Points that could not be verified: sources that could not be read and why. For example, if the log inside the server could not be read, the report says so clearly.

If several candidates fall in the same window, a good report does not pick a single cause. Saying "memory exhaustion and a host restart are in the same window; one may be the result of the other, but the order cannot be proven from these records" is worth far more than a false certainty.

How a technical inspection works at SistemDC

The SistemDC support team carries out a records-based technical inspection for the shutdown, slowness, access or service problems you report in a support request. The process is as follows:

  1. You report the server and the problem in a support request; by opening a request you permit the server to be examined within this scope.
  2. The inspection is carried out by read-only methods only: no setting, software, file or data on your server is changed and the server is not restarted.
  3. Your files, databases and e-mails are neither read nor copied; only operating information such as operating-system event logs and service, disk, network and resource status is examined.
  4. The system prepares a draft report from the records; the draft is not sent to the customer automatically. An authorized SistemDC person reviews and approves the draft, and the report is given a number and a verification code.
  5. The approved report is delivered as a PDF to your support request or your registered e-mail address.

The analysis is carried out on SistemDC's own servers by rule-based software; the collected data is not transferred to a third-party artificial-intelligence service. Approved reports are kept for at most 3 years from approval, and unapproved drafts for 60 days. See the technical inspection report document for the details of the scope. This information is not legal advice; the binding texts are the Service and Use Agreement and the privacy agreement.

What to include when you open a support request

The right information shortens an inspection by hours:

  • The service number or the IP address of the server.
  • The time you first noticed the shutdown and which time zone you use.
  • Whether you changed anything before the shutdown (an update, new software, a disk operation).
  • Whether the shutdown happened once or is repeating.
  • If you started the server yourself, at what time and how.

If you cannot reach your server and are only looking for a rescue mode and console path, you can follow the steps in the same guide. If you are experiencing slowness or packet loss rather than a shutdown, the ping and MTR guide is the right first step.

Lasting steps to keep it from happening again

  • Make logs persistent. On Linux the Storage=persistent setting keeps the logs of earlier boots.
  • Set threshold alerts for memory and disk. OOM and a full disk are often visible days in advance.
  • Take backups and test restoring them. A shutdown sometimes damages the file system; a backup is a guarantee independent of any inspection.
  • Restrict management access. Limiting SSH/RDP access by IP reduces both the failed-attempt noise and the real risk.
  • Do not look for a single event in the same window. A shutdown is often a chain of several weak links.

Reach hardware event logs on a dedicated server too

Reach your server even when the operating system does not start, with IPMI/BMC and a KVM console from the browser.

See the dedicated servers

Related Guides

Frequently Asked Questions

What should I do first when my server shuts down?

First tell apart a server that is really off from one that is merely unreachable, note the time of the shutdown and its time zone, and before powering it on, save the console screen and the latest logs if you can.

What does a missing clean-shutdown record mean?

If the system log ends without any trace of a shutdown or reboot command, the server was not shut down from the inside. It may point to a power, hardware, memory-exhaustion or host-level interruption, but it does not show the cause by itself.

What does event 41 Kernel-Power show on Windows?

It shows that the system restarted without being shut down cleanly. The cause is not written in the event itself; it must be read together with other records from the same time and with hardware or virtualization-layer records.

Can thousands of failed SSH attempts shut my server down?

Failed login attempts alone do not shut a server down. They are a real problem and need countermeasures, but they should not be counted as the evidenced cause of a shutdown.

Can the cause of a shutdown always be found?

No. Records sometimes show several possibilities or prove none. A good inspection does not hide this; it writes what is evidenced, what is possible and what is unknown separately.

Why is a view from inside a VDS incomplete?

When a virtual server shuts down, the log inside it is cut off too. To see whether the shutdown started on the host or inside the server, the records of the virtualization layer are needed as well.

Does a SistemDC technical inspection look at the files on my server?

No. Files, databases and e-mails are not read. The inspection looks only at operating-system event logs and service, disk, network and resource status, using read-only methods.

Server packages covered in this article

+902243340242