Skip to content

Troubleshooting

7 pages
  • host diagnostics

    In Posts 114 words 1 min

    LinuxDevopsTroubleshooting

    Diagnosing a single host with a single symptom. I don’t waste time searching Google — I first run a verified set of commands to catch context and understand the investigation direction. systemctl –failed systemctl --failed outputs a list of units …

    Diagnosing a single host with a single symptom. I don’t waste time searching Google — I first run a verified set of commands to catch context and understand the investigation direction. systemctl –failed systemctl --failed outputs a list of units …

  • dig +trace for a single name

    In Posts 706 words 4 min

    DnsDigTroubleshooting

    dig +trace shows the full resolution path from root servers to the authoritative answer in a single command. It’s the go‑to tool for diagnosing where a domain resolves and where the delegation chain may break. Below are the practical details you’ll …

    dig +trace shows the full resolution path from root servers to the authoritative answer in a single command. It’s the go‑to tool for diagnosing where a domain resolves and where the delegation chain may break. Below are the practical details you’ll …

  • journalctl: Filtering and Formatting systemd Logs

    In Posts 838 words 4 min

    LinuxSystemdTroubleshootingDevops

    Logs disappeared. Server rebooted, and the familiar less /var/log/syslog returns nothing. On modern distros with systemd, logs are collected by journald and read with journalctl. Without knowing its filters, system debugging turns into guesswork. Why …

    Logs disappeared. Server rebooted, and the familiar less /var/log/syslog returns nothing. On modern distros with systemd, logs are collected by journald and read with journalctl. Without knowing its filters, system debugging turns into guesswork. Why …

  • lsof: which processes listen on port and hold file

    In Posts 611 words 3 min

    LinuxTroubleshootingProcessesDebugging

    Service won’t start — port 8080 is already bound. You dig into who’s holding it, and discover the same process has your config file open while you’re trying to edit it. lsof answers both questions: which processes opened which files and sockets. …

    Service won’t start — port 8080 is already bound. You dig into who’s holding it, and discover the same process has your config file open while you’re trying to edit it. lsof answers both questions: which processes opened which files and sockets. …

  • strace: System Call Tracing for Diagnosing Hangs and Leaks

    In Posts 822 words 4 min

    LinuxDebuggingTroubleshootingPerformance

    When a service hangs, standard tools like top, htop, and ps show the state but not the cause. If a process is in state D (uninterruptible sleep), it’s waiting on a syscall. strace attaches to a live process and outputs every system call in real time. …

    When a service hangs, standard tools like top, htop, and ps show the state but not the cause. If a process is in state D (uninterruptible sleep), it’s waiting on a syscall. strace attaches to a live process and outputs every system call in real time. …

  • ss: socket statistics instead of deprecated netstat

    In Posts 1044 words 5 min

    LinuxNetworkCliTroubleshooting

    When netstat hangs on a server with tens of thousands of connections, it’s time to switch to ss. Part of the iproute2 package, ss queries the kernel directly via netlink instead of parsing /proc/net/*. The result is instant output with minimal …

    When netstat hangs on a server with tens of thousands of connections, it’s time to switch to ss. Part of the iproute2 package, ss queries the kernel directly via netlink instead of parsing /proc/net/*. The result is instant output with minimal …

  • SSH Escape Sequences: Reviving a Frozen Terminal

    In Posts 731 words 4 min

    SshLinuxDevopsTroubleshooting

    SSH session froze, Ctrl+C does nothing, Ctrl+D spits out garbage — familiar situation. Before closing the terminal and losing the session, try built-in escape sequences. They operate at the SSH client level before data reaches the remote host. How to …

    SSH session froze, Ctrl+C does nothing, Ctrl+D spits out garbage — familiar situation. Before closing the terminal and losing the session, try built-in escape sequences. They operate at the SSH client level before data reaches the remote host. How to …