Use it as the entry point for any Linux problem, then go to the specific symptom.
Linux Troubleshooting
Linux troubleshooting is a method: define the symptom and when it started, check the basics (resources, failed units, logs, recent changes), find the first failing layer, fix it and verify.
1. Symptom and exact start time?
2. Basics: df -h, free -h, uptime, systemctl --failed.
3. Logs at that time: journalctl --since '…' -p warning.
4. What changed? package history, config backups, last reboot.
5. Fix the first failing layer and verify the original symptom.
symptom → time → basics → logs → recent changes → first failing layer → fix → verify
For Linux Troubleshooting, continue with the first unproven Topic check: Pin host, boot ID, exact timestamp/timezone, affected user/session and original failing transaction. If that boundary is healthy, advance to the adjacent check: Define expected behavior and blast radius: one process, host, subnet, filesystem, user or all systems. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
journalctl -b -p errVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
symptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failing step → minimal controlled change → repeat original test → regression/posture check
Healthy evidence: one reproducible symptom is tied to a precise scope/time, the first failing step is evidenced, a minimal remediation changes that boundary as predicted, and the original workload plus regression checks pass.
Step 2 Verification and output interpretation Verify boundary
Verification path. Re-run the original failing operation with the same identity, namespace, input and dependency path. Verify the local owning state and one adjacent dependency, then use timestamps/counters to show the changed state actually participated in the successful result. A substitute test is useful for isolation but does not close the incident unless it represents the original requirement. Preserve before/after evidence when the change affects safety, security, storage or availability.
Existing fast checks for this Topic. - Pin host, boot ID, exact timestamp/timezone, affected user/session and original failing transaction.
- Define expected behavior and blast radius: one process, host, subnet, filesystem, user or all systems.
- Compare recent change/config/runtime evidence and walk dependencies until the first failing step is confirmed.
- Apply one minimal reversible change, repeat the original test, then check adjacent regressions and evidence retention.
Verification chain. symptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failing step → minimal controlled change → repeat original test → regression/posture check
Step 3 Commands Verify boundary
journalctl -b -p err
systemctl --failed
dmesg -T | tail -50
df -h ; free -h ; uptime
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: changes are made before baseline/scope is captured, only a final error string is followed, multiple layers are changed at once, or a green intermediate command is accepted without the original workload passing.
It does not show behavior outside the captured host, boot, process/user, dependency, time or workload scope.
Next check: Continue from the first step that has not been verified: reproduce the exact original failure, collect the responsible subsystem evidence at the same time, change only the confirmed cause or prerequisite, then repeat the original workload and regression checks.
Step 5 Common mistakes Narrow the fault
- Changing several things at once.
- Rebooting before collecting logs.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
Boot Failure isolates why Linux does not reach the intended boot target, login surface or workload by separating firmware/bootloader, kernel/initramfs, root-filesystem, PID 1/systemd, mount and service dependencies.
Subtopic Service FailureService Failure isolates a Linux daemon or systemd unit that is failed, inactive, flapping or technically active while its socket, dependency, readiness or workload remains unusable.
Subtopic High CPUHigh CPU isolates sustained or burst CPU consumption to the responsible process/thread, workload, kernel path, interrupt/softirq, steal/throttling or scheduler pressure before tuning or killing anything.
Subtopic High Memory UsageHigh Memory Usage separates healthy Linux cache use from application RSS growth, anonymous/file cache, slab, shared memory, cgroup limits, reclaim pressure, swap and OOM behavior.
Subtopic Disk FullDisk Full distinguishes block/filesystem capacity exhaustion from inode exhaustion, reserved blocks, quotas, deleted-open files, mount-overlay mistakes, snapshots/thin pools and unexpected growth paths.
Subtopic Filesystem ErrorsFilesystem Errors isolates mount/read-only, metadata, journal, I/O and corruption symptoms while distinguishing filesystem-level evidence from underlying block device, path or hardware failure.
Subtopic Permission DeniedPermission Denied isolates Linux access failures across process credentials, path traversal, owner/group mode bits, ACLs, sudo transitions, mount options, SELinux/AppArmor and service sandboxing.
Subtopic DNS FailureDNS Failure separates application resolver behavior, nsswitch/systemd-resolved or local resolver state, configured nameservers/search domains, transport reachability and authoritative DNS response correctness.
Subtopic Network ConnectivityNetwork Connectivity isolates Linux packet-path failures from namespace/interface and link through addressing, neighbor resolution, routing/policy, MTU/firewall and remote service reachability.
Subtopic SSH FailureSSH Failure isolates an SSH connection from name resolution and TCP reachability through host-key trust, algorithm negotiation, authentication, sshd effective policy, session setup and requested subsystem/command.
Subtopic Package ProblemsPackage Problems isolates repository metadata/trust, candidate selection, dependency/conflict resolution, download/integrity, dpkg/RPM database, maintainer scripts and post-install service/workload effects.
Subtopic Process ProblemsProcess Problems isolates missing, stuck, zombie, uninterruptible, crashing or unexpectedly restarting Linux processes using identity, parentage, state, signals, resources, syscalls and supervisor context.
Subtopic Log AnalysisLog Analysis is the troubleshooting discipline for turning Linux journal/syslog/application records into time-correlated evidence without confusing noisy messages, missing collection or downstream symptoms with causation.
Subtopic Performance TroubleshootingPerformance Troubleshooting isolates Linux latency, throughput or saturation problems by defining an SLO/workload and correlating CPU, memory, storage, network, scheduler and application queues rather than tuning a single metric.
Ask what changed (updates, config, reboot) — dnf history, /var/log/apt/history.log, last reboot. Check the cheap things first: disk full, failed units, time, DNS. Change one thing at a time and keep notes.
last reboot | head— recent rebootsjournalctl -b -p err— errors this bootsystemctl --failed— failed unitsdf -h; df -i— space and inodesss -tulpn— listening socketsdmesg -T | tail— recent kernel messages
ReferenceWhat it is1 section · depth on demand
Core model
Start with the exact symptom, time, host, user and original workload. Establish what changed and the expected baseline, reproduce safely, then walk from requested behavior through effective configuration and runtime state to the first step where observed evidence diverges. Hand off to the responsible specialist branch once localized.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Once the first failing step is known, continue in Boot, systemd & Services, Processes, Filesystem/Storage/LVM, Users & Permissions, Networking/DNS, SSH, Package Management, Logging, Performance, Security or the application-specific branch.
In depth
A method for Linux troubleshooting
Most Linux problems can be narrowed down with the same sequence: define the symptom precisely, find what changed, gather evidence, form a hypothesis, test it, and fix one thing at a time. The journal is usually the first source of evidence. The journalctl(1) manual page describes the filters that make it fast:
-bfor a boot, with-b -1for the previous one.-ufor a unit, and-pfor a minimum priority.--since/--untilfor a time window.-kfor kernel messages, and-gfor a pattern.
The sequence
| Step | Questions | Tools |
|---|---|---|
| 1. Define | What exactly fails? For whom? Since when? Always, or sometimes? | The user's report, monitoring |
| 2. What changed | Updates, deployments, configuration, certificates, network, load | dnf history, /var/log/apt/history.log, Git, change records |
| 3. Evidence | Errors at the time of the failure | journalctl -b -p warning --since ..., application logs |
| 4. Resources | CPU, memory, disk space, inodes, I/O, network | top, free, df -h, df -i, iostat, ss -s |
| 5. Hypothesis and test | One cause, one test | Reproduce in a controlled way |
| 6. Fix and verify | One change at a time; confirm it worked | The same evidence as in step 3 |
| 7. Document | Cause, fix, prevention | Ticket, runbook |
Quick triage on an unknown host
| Command | Shows |
|---|---|
uptime | Load and time since boot (a recent reboot?) |
systemctl --failed | Failed units |
journalctl -b -p err -n 50 | Recent errors |
df -h; df -i | Full file systems or inodes |
free -h | Memory and swap |
dmesg -T --level=err,warn | tail | Kernel problems: disks, OOM, hardware |
ss -tulnp | Listening services |
last -x | head | Reboots and shutdowns |
host$ uptime
15:42:10 up 2 days, 4:11, 2 users, load average: 0.31, 0.44, 0.40
host$ systemctl --failed --no-legend
report-api.service loaded failed failed Report API
host$ journalctl -u report-api -b -p warning --no-pager | tail -3
report-api[8812]: FATAL: could not connect to database at 10.30.0.40:5432: connection refused
host$ df -h /var/lib/postgresql; df -i /var/lib/postgresql
host$ ssh db1 'systemctl is-active postgresql; journalctl -u postgresql -n 5 --no-pager'
host$ grep -E "Start-Date|Upgrade" /var/log/apt/history.log | tail -4
Follow the dependency
The failing service reports "connection refused" from its database. The real problem is probably on db1, not on this host. Following the evidence to the dependency that actually failed, instead of restarting the symptom, is the most important habit in troubleshooting.
Documented example, not captured output.
How it works at runtime
Linux Troubleshooting is part of Linux Troubleshooting. Linux Troubleshooting is the cross-domain fault-isolation method for moving from an observed Linux symptom to the first failed kernel, process, service, identity, storage, network, package or application boundary without guessing from the loudest error.
Runtime state ownership and mechanics. Linux troubleshooting should localize the first failing ownership boundary while preserving original evidence. Symptoms are observations, not components: high CPU, disk full, DNS failure, permission denied or service failure can originate in several layers. The durable model is time/scope → exact failing operation → owning process/unit/namespace → kernel/resource or dependency state → minimal change → replay of the original operation.
Topic-specific state model. Linux Troubleshooting is the cross-domain fault-isolation method for moving from an observed Linux symptom to the first failed kernel, process, service, identity, storage, network, package or application boundary without guessing from the loudest error.
Technical metadata. Host/distribution/kernel release, boot ID, monotonic/realtime time, exact workload/test, user/session/PID/unit, CPU/memory/load, block/filesystem/mount/inode, identity/UID/GID/mode/ACL/LSM, interface/address/neighbor/route/DNS, SSH transport/auth/session, package manager/repository/database, journal/log source, recent changes, first failing step, remediation, original-test result and regression result.
Interpretation rule. - Symptom ≠ root cause; the first visible error can be downstream fallout.
- A command exits 0 ≠ effective state or workload acceptance is confirmed.
- A temporary restart/retry success ≠ durable remediation until the original test and regression checks pass.
- Absence of evidence ≠ evidence of absence unless collection, timing and scope are confirmed.
Method
Linux troubleshooting order:
1. What changed? journalctl --since, package history (dnf history, /var/log/apt/history.log), config management logs, last, etckeeper diffs.
2. Resources: uptime, free -h, df -h, df -i, vmstat 1, iostat -xz 1.
3. Service state: systemctl --failed, systemctl status <unit>, journalctl -u <unit> -b.
4. Kernel messages: dmesg -T | tail, OOM kills, I/O errors.
5. Network: ip a, ip r, ss -tulpn, DNS.
6. Security layers: permissions, SELinux/AppArmor denials.
The "60-second analysis": uptime; dmesg | tail; vmstat 1 5; mpstat -P ALL 1 3; pidstat 1 3; iostat -xz 1 3; free -m; sar -n DEV 1 3; top.
Limits and how it fails
Preserve at least three independent checks: prerequisite/interface or identity/transport state; the responsible control/service/policy state; then effective data-plane, backend or workload state. A healthy upstream step does not show the downstream consumer or return path.
Model. A symptom label does not identify root cause. Restarting can temporarily recover service while erasing failure state. “Works as root” localizes authorization context but does not identify whether DAC, ACL, capability, LSM or application policy is responsible. “Ping works” does not show DNS/TCP/TLS/application service. Pcornel should hold the precise reference and evidence model; ChatGPT should synthesize the concrete incident from supplied outputs instead of the site encoding a large decision tree.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Configuration intent and lifecycle. Do not start with configuration changes. First capture enough state to distinguish persistent intent from runtime state and to identify which subsystem owns the next transition. When a change is justified, keep it narrow and reversible and record whether reload, restart, remount, new login/session or reboot is required. Avoid “cleanup” actions that destroy logs, counters, failed process state or filesystem evidence before the boundary is understood.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Linux Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Linux Troubleshooting operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Linux Troubleshooting.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Linux Troubleshooting is the cross-domain fault-isolation method for moving from an observed Linux symptom to the first failed kernel, process, service, identity, storage, network, package or application boundary without guessing from the loudest error. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin symptom + exact time + host/boot/user → define scope + expected baseline → preserve original failing test → collect targeted kernel/process/service/storage/network/security/log evidence → identify first divergent boundary → make one minimal reversible change → repeat original test → verify adjacent regressions and retain before/after evidence. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | symptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture check | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Linux Troubleshooting troubleshooting is complete only when evidence localizes the first failed Linux boundary and the original failing workload passes after the smallest justified change; intermediate command success is not final proof. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux troubleshooting evidence can establish this proof path: symptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture check | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host, boot, process/user, dependency, time or workload scope. Linux Troubleshooting troubleshooting is complete only when evidence localizes the first failed Linux boundary and the original failing workload passes after the smallest justified change; intermediate command success is not final proof. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: reproduce the exact original failure, collect the owning subsystem evidence at the same time, change only the proven cause or prerequisite, then repeat the original workload and regression checks. | Continue to the next unresolved boundary while preserving the original test condition. |
Linux Troubleshooting · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Linux Troubleshooting |
|---|---|
| Topic path | Linux Troubleshooting |
| Runtime state | Linux Troubleshooting is the cross-domain fault-isolation method for moving from an observed Linux symptom to the first failed kernel, process, service, identity, storage, network, package or application boundary without guessing from the loudest error. |
| Fast checks | - Pin host, boot ID, exact timestamp/timezone, affected user/session and original failing transaction. - Define expected behavior and blast radius: one process, host, subnet, filesystem, user or all systems. - Compare recent change/config/runtime evidence and walk dependencies until the first failed boundary is proven. - Apply one minimal reversible change, repeat the original test, then check adjacent regressions and evidence retention. |
| Verification chain | symptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture check Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Linux Troubleshooting troubleshooting is complete only when evidence localizes the first failed Linux boundary and the original failing workload passes after the smallest justified change; intermediate command success is not final proof. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. Preserve at least three independent checks: prerequisite/interface or identity/transport state; the owning control/service/policy state; then effective data-plane, backend or workload state. A healthy upstream boundary does not prove the downstream consumer or return path. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |