$RodHat_/search
An empty office chair under a desk lamp at night

Rod's Tales

War stories. His own fuckups included, especially his own.

55 on file, newest first. By subject instead? → Topics

November 2026

  1. The key was right and sshd refused it without saying why.

    A deploy user's SSH key worked for two years, then one Monday it got Permission denied (publickey). Nothing about the key changed. A recursive chmod on the home directory tripped StrictModes, and the only explanation was in the server log, not the client.

  2. tail -f followed the old log after rotation and the new one got nothing.

    A log shipper built on tail -f went silent after logrotate ran, because -f follows the file descriptor, not the name. How rotation by rename breaks it, how tail -F and reopen-on-rotate fix it, and how to prove which one you have.

  3. The tmp cleaner deleted the socket and the daemon kept running.

    A long-running daemon's Unix socket lived in /tmp, an age-based cleaner unlinked it, and the process stayed up and healthy while every new client got ENOENT. What unlink does to a listening socket, how to see it, and where sockets belong.

  4. The dump piped into gzip exited zero and the backup was half a database.

    A nightly 'dump | gzip > file' job reported success for weeks while the dump died partway through. A pipeline's exit status is the last command's, so gzip's clean zero hid the failure. Here is the incident, the pipefail fix, and the check that would have caught it.

  5. The nightly job ran at 2:30 AM and the clock had two of them.

    A billing export scheduled for 02:30 local time ran twice on the night the clocks fell back, and a sibling job skipped entirely in spring. How cron treats daylight saving time, and why the fix is UTC on the box.

  6. The restore worked and every file belonged to a stranger.

    A tar restore onto a rebuilt host came back byte-perfect and owned by the wrong people. Names mapped to different numbers, and tar had been quietly translating.

  7. sed -i turned the symlink into a regular file and the deploy kept shipping the old config.

    A one-line sed -i edit on a symlinked config looked fine and changed nothing in production. In-place editing writes a temp file and renames it over the path, which replaces the symlink itself. Here is how it happened and how to check for it.

  8. The cron line worked in the shell and died at the percent sign.

    A nightly dump pasted from a terminal into crontab ran clean by hand and never produced a file. Cron treats an unescaped % as a newline, so date +%F was cut in half and the error went to a mailbox nobody read.

  9. The rename was atomic, except the one time it wasn't.

    A config publisher wrote to /tmp and mv'd into place. Atomic for two years, until someone mounted tmpfs on /tmp and mv quietly became copy-then-delete under a live reader.

  10. Binance stopped withdrawals. The wallet kept withdrawing.

    Binance says attackers reached its wallet signing service and used EIP-7702 delegations to keep moving assets after withdrawals stopped. The interesting failure is where the emergency brake ended.

  11. The list was sorted and comm disagreed.

    A nightly reconcile job told finance that 9,000 accounts were missing. The input was sorted. It was sorted by a different locale than the one comm was reading it in.

October 2026

  1. The mirror was perfect and the source was empty.

    The nightly rsync exited 0 for eleven months. Then the data disk failed to mount, the mountpoint was an empty directory, and --delete did exactly what it was told.

  2. The kernel was current and the box was compromised.

    The packages were up to date. The CVE was patched. The package manager said so. The attacker said otherwise. One uname -r later, we knew who to believe.

  3. The coredump landed and the debugger found nothing.

    Two months of crashes, every core file faithfully written, every stack trace a column of ?? from 0x0. The data was there. We had stripped it out of the binary ourselves.

  4. The memory was freed and the heap kept growing.

    valgrind found no leaks. The code called free() on every allocation. RSS climbed 200MB a day regardless, until the OOM killer arrived on schedule. The allocator was not leaking. It was hoarding.

  5. The DNS was right and the name resolved wrong.

    dig confirmed the correct IP. The service connected to the wrong server anyway. Because dig and your application are not using the same name resolution stack, and on most production boxes those two stacks have never agreed on the same set of facts.

  6. The tuning lasted until the reboot.

    sysctl -w exits zero and prints the new value. It looks authoritative. Six months later a kernel patch triggered a maintenance reboot and every number we had spent a day setting went back to whatever the kernel felt like on a fresh boot.

  7. The certificate renewed and nginx kept the old one.

    Let's Encrypt ran on schedule, certbot said success, and the cert on disk was valid. nginx served the expired one anyway. Ninety days of silent post-hook failures, caught only when everything stopped working.

  8. The bug was gone the moment I looked for it.

    A race condition that disappeared under strace and came back the moment you detached. Six months of incident reports, one Heisenbug. bpftrace is how you observe without touching.

  9. The disk had space and nothing would write.

    "No space left on device" at 3am, forty gigabytes free. Inode exhaustion is the sysadmin trap that catches everyone eventually, usually at the worst possible time.

  10. The daemon wrote the files. The backup was empty.

    Six months of successful backups, all empty. The data files existed. The backup user just could not read them. The daemon had been running with umask 077 since the night someone daemonized it by hand during an incident.

  11. The code ran in three milliseconds and the request took two hundred

    Internal RPC service, 3ms processing time, 210ms p99 latency. The time was not in the code. It was not in the database. Nagle and the delayed ACK timer had been tax-collecting for eighteen months.

September 2026

  1. The service was healthy and accepting no new connections

    Seven hundred clients got connection refused. Health checks passed. Metrics reported normal. The process had opened one thousand and twenty-two file descriptors and the system limit was one thousand and twenty-four.

  2. The config file changed and nothing reloaded

    A deployment notifier stopped picking up config changes. No errors. The file was being written. The watcher process was alive. Eight thousand and ninety-two inotify watches and no room for one more.

  3. The host had sixteen gigabytes free and the container had none

    Four OOM kills in eleven months, none of them visible in host memory graphs. The limit was 512 megabytes, set by a provisioning template, inherited by a service that eventually needed 800. The kernel tracked every kill. Nobody was reading the right counter.

  4. The listen queue had been five since 2014

    Nine years of incrementing connection drops, masked by retry logic added in 2017 and promptly forgotten. The counter was in netstat -s. The backlog was in ss -tlnp. Both said the same thing for nine years.

  5. The ephemeral port range had eight hundred slots left

    The inventory service was throwing EADDRNOTAVAIL on database connections. CPU fine. Memory fine. The connection pool was configured exactly as intended. That was the problem.

  6. The conntrack table had twenty-four slots left

    The load balancer was healthy. CPU fine. Memory fine. One in thirty connections was timing out and nobody could explain why. The answer was in dmesg, six lines down, logged and completely ignored.

  7. The transaction counter hit two billion

    Production PostgreSQL stopped accepting writes on December 21st. Disk fine. CPU fine. Connections fine. The error said something about 'wraparound data loss.' I had seen it once before and I knew immediately how bad the next six hours were going to be.

  8. The load was forty and the box was idle

    Load average alert fired at 47.8 on an eight-core box. SSH'd in, ran top, saw 95% idle. Every metric looked healthy except the number that triggered the page. Thirty-two processes in D state, waiting on an NFS mount that had stopped answering three hours earlier.

  9. The machine that forgot what year it was

    A dead CMOS battery on a physical box meant the hardware clock reset to January 1, 2000 on every reboot. NTP would correct it in about ninety seconds. Everything that happened during those ninety seconds was wrong in ways that took hours to untangle.

  10. The disk was forty percent free

    Production throwing ENOSPC. df shows 40% free. You run df again because you don't believe it. Same numbers. The filesystem is completely full and completely not full at the same time, and once you understand why, you will never run df without -i again.

  11. The process that wouldn't die

    kill -9 is supposed to be final. You send it, the process is gone. Then one morning you send it and nothing happens, and you send it again, and the process is still sitting there in ps, and you have to go rebuild an assumption you've had for twenty years.

  12. The conntrack table was full

    Connections to services behind our firewall started failing intermittently. The iptables rules were correct, the NICs were clean, the routing was fine. The problem was a kernel table we had never configured, silently dropping packets when it ran out of room.

August 2026

  1. The TCP window that ate a gigabit

    The cross-datacenter link was provisioned for 1Gbps. iperf3 consistently showed 180Mbps. The hardware was clean, the routing was clean, the fiber was clean. The problem was a 208KB number that nobody had changed in years, and the unforgiving math of physics.

  2. The disk that du couldn't find

    df said 97% full. I walked every directory with du and came up 40GB short. The filesystem was not corrupted. The math was just wrong in a way that took embarrassingly long to recognize for what it was.

  3. The file that root couldn't touch

    A log directory was filling up. Deletion failed with EPERM. Root was confirmed root. Permissions were correct. The mount was read-write. It took an embarrassingly long time to remember that root is not omnipotent, and that two years earlier someone had applied a hardening script.

  4. The pool was full of dead connections

    An intermittent burst of broken-pipe database errors had been logged as "flaky" for two months before anyone looked closely enough to notice they were always the first query on a connection. The connection pool was handing out corpses.

  5. The OOM killer was doing its job

    A slow memory leak ran undetected for five weeks because the kernel's out-of-memory killer, executing its heuristic correctly, kept choosing the monitoring agent over the leaking service. The pager never fired. The monitoring gaps were there in the data the whole time.

  6. The number 1024 was not a coincidence

    A file descriptor limit from 2003 survived three infrastructure migrations and one complete platform rewrite because nobody ever questioned a number that had always been there. It bit us at 2am on a Tuesday.

  7. The pipeline succeeded. We found out from a customer.

    A deployment that broke production ran undetected for forty minutes because the notification step was written to never fail, and the monitoring alert that should have fired went to the same broken endpoint.

  8. The postrotate script worked. We had no logs.

    Three months of production logs, all gone. logrotate ran clean on schedule every week. The daemon was healthy and writing the whole time. The postrotate signal was firing correctly, just to a PID that had been dead since deployment day.

  9. The storage was fine. We were swapping.

    Three weeks, two engineers, one open storage vendor ticket, and roughly forty collective hours chasing read latency on a ZFS pool. The pool was fine the whole time. There was a swapfile nobody remembered adding seven months earlier.

  10. The change was correct. Deploying it to every region simultaneously was not.

    A one-line config change, reviewed, tested, and correct in every environment we tried it in. It went to all six regions in the same rollout because config isn't code, and config doesn't need a staged rollout. It does now.

  11. The alert had been firing for eight months and it was right the whole time

    A rule that pages nightly and gets acknowledged nightly isn't monitoring, it's a ritual. We had trained an entire team to dismiss a specific alert without reading it, and then it started telling us about something new.

  12. The observability platform was down during the outage. Good. Now do it with your hands.

    A junior engineer froze during a production fire because the SaaS dashboard that watches production was part of the fire. RodHat on the tools that were on every Unix box before the kid was born, the racket that sold competence back to us as a monthly invoice, and why the fire isn't out.

  13. The health check was green because it was checking the wrong damn thing

    A service can answer HTTP 200 while its queue is wedged, its database writes are failing, and every useful request is dying. RodHat on health checks that prove process existence instead of service capability.

  14. Staging had its own everything, except the one thing that mattered

    Separate servers, separate config, separate deploy pipeline, a big banner saying STAGING. And a database connection string that pointed, through two layers of indirection, at production. We found out during a load test.

  15. We wrote the retry logic to survive a blip. It turned a blip into four hours.

    One backend got slow for ninety seconds. Every client retried, in lockstep, three times, with no jitter. The retries were larger than the original traffic, the backend never recovered, and every fix we tried made it worse until we did the thing nobody wanted to do.

July 2026

  1. The temporary NFS mount that ran production for six years

    Somebody stood it up in an afternoon to unblock a launch. It had no monitoring, no owner, no backup, and no entry in any diagram. It survived two datacentre moves, a company acquisition, and every engineer who knew it existed.

  2. The billing job ran twice for six weeks and the totals still balanced

    No errors. No alerts. The reconciliation report matched every single day. And a few hundred customers were being double-charged, because the job that generated the charges and the job that verified them were the same code with the same bug.

  3. The migration was flawless. The TTL was 86400.

    Six weeks of planning, a rehearsed cutover, and a maintenance window we finished forty minutes early. Then a fifth of our traffic kept arriving at a datacentre we'd already started decommissioning, for a full day, and there was nothing whatsoever we could do about it.

  4. The microservice that should have been a function call, and the eighteen months it took anyone to say so

    An architecture rant, grounded in a real bad design RodHat watched calcify for a year and a half before anyone had the standing to kill it.

  5. The restore worked perfectly and we still lost eleven days

    We tested our backups. Monthly, documented, signed off. The restore ran clean, the checksums matched, the database came up on the first try. And the data in it was eleven days old, because for eleven days the job had been backing up a directory nobody was writing to any more.

  6. The Friday deploy that ate my weekend, and whose fault it actually was (mine)

    A sysadmin war story about a Friday-afternoon deploy, a silent DNS TTL assumption, and the two-day outage it caused. RodHat owns every part of it.