How to Stop a Log File from Filling Your SSD in 5 Minutes

The problem

On a fresh SSD a single log file can grow fast enough to fill the drive in minutes.
Typical culprits are:

  • Systemd journal when systemd-journald is left to write to /var/log/journal/ without limits.
  • Application logs that never rotate, e.g. nginx, docker, postgres, or custom scripts.
  • Debug or verbose modes that are left enabled in production.

When the disk is full, services stop, new writes fail, and the machine can become unresponsive. Below is a hands‑on guide that shows how to stop a log file from filling an SSD in 5 minutes, using tools that are already part of most distributions.

[Read More]

When nftables silently drops your local web server: a step‑by‑step debug

If a browser on the same machine can’t reach http://localhost:8080 but curl from another host works, the culprit is often nftables. Unlike iptables, nftables doesn’t log dropped packets by default, so you may not see any trace in /var/log/syslog. Below is a concise, hands‑on checklist that will help you locate the invisible rule that’s blocking local traffic.

1. Verify the service is listening

sudo ss -tulpn | grep 8080

You should see something like:

[Read More]

Why My Home Assistant Timer Never Fires—and How to Fix It

If you’ve ever set a timer in Home Assistant and then stared at the clock wondering why nothing happened, you’re not alone.
The culprit is almost always one of three things:

  1. Time‑zone or daylight‑saving mis‑configurations
  2. Timer entity state or YAML syntax errors
  3. System clock drift or NTP hiccups

Below is a practical walk‑through that keeps the technical meat intact while sounding like a coffee‑shop chat between two sysadmins.


1. Verify the System Clock and Time Zone

Home Assistant piggybacks on the host’s clock. If that’s off, timers will be mis‑aligned or never fire.

[Read More]

Fixing a Broken /etc/hosts When systemd‑resolved Hides It

When systemd‑resolved hides /etc/hosts, how to get it back

You’ve edited /etc/hosts to add a local hostname for a home‑lab service, but after a reboot the entry disappears from the output of getent hosts. The system still resolves the name, but it comes from a different source. That’s because systemd‑resolved, the default DNS stack on most recent Linux distributions, now prefers its own cache and configuration over the traditional /etc/hosts file. The result is a silent break in the workflow many beginners rely on.

[Read More]

Fixing GNOME Terminal Freezes on Wayland

Heavy background jobs on a 4K laptop display

Why GNOME Terminal can freeze on a 4K Wayland display

When you fire up a heavy background job—think dd, fio, or a long‑running rsync—the terminal can suddenly stop answering. On a 4K laptop running Wayland the culprit is usually the compositor trying to keep the terminal’s output fresh while the CPU is busy elsewhere. The rendering loop stalls, and the window looks frozen even though the shell is still alive. The cure is to separate the terminal’s repainting from the job’s I/O, or to give the compositor a lighter load.

[Read More]

Safely Deleting Old Log Files with find and xargs

Avoiding destructive mistakes when cleaning up logs

The “find + xargs” combo is a classic for cleaning up old logs, but it can be a double‑edged sword if you’re not careful.

Below is a step‑by‑step guide that shows how to target only the log files you want to delete, keep your home folder safe, and understand the trade‑offs of the different options you’ll see.


Why find and xargs instead of rm -r?

find is the Swiss‑army knife of file searching: you can filter by name, age, size, permissions, and more.
xargs takes the list that find spits out and feeds it to another command, usually rm.
The pair is efficient because it processes files in batches, sidestepping the “argument list too long” error that can bite you if you try to delete thousands of files with a single rm.

[Read More]

Stopping a Podman Container from Filling Disk

Capping logs from a hello-world container

Why a “Hello‑World” Container Can Become a Disk‑Hog

When you first dip your toes into Podman, the classic “hello‑world” test is the go‑to command. It’s fast, it’s tiny, and it proves the runtime is up and running:

podman run --rm docker.io/library/hello-world

A single run looks harmless, but if you fire it off repeatedly—say, in a cron job, a CI pipeline, or a home‑lab health‑check script—the logs that Podman keeps for each run can pile up. On a busy homelab, that accumulation can eat up several gigabytes in a matter of days, especially if you’re using the default local log driver that writes to a file on disk.

[Read More]

Why My Custom Systemd Timer Keeps Firing Twice and How to Fix It

I’ve seen this go wrong when the timer unit is enabled in two places or when Persistent=true is left on a daily job. The result is a backup that starts right after boot and then again at the scheduled hour. It’s annoying, but the fix is usually a few quick edits and a reload. Below is a practical walk‑through that keeps the technical detail but feels like a coffee‑chat with a seasoned sysadmin.

[Read More]

Using find + xargs to purge old log files without risking accidental deletes

Safely Removing Old Log Files with find and xargs

Log files are the lifeblood of debugging, but they’re also the biggest culprits when a disk starts to feel cramped. If you’re running a home server, a small NAS, or just a personal laptop, you’ll often need a quick way to prune logs older than a set age without accidentally wiping something vital. The classic find … | xargs combo is a battle‑tested, script‑friendly solution that works on almost every Linux box.

[Read More]

Fixing Nginx 502 Errors on a Home-Lab HTTPS Site

Troubleshooting certificate and path configuration issues

502 from Nginx? Let’s Fix the HTTPS Path & Cert Issues

A 502 Bad Gateway is the first thing you’ll see when you expose a service behind Nginx in a home‑lab.
It usually means the proxy can’t talk to the backend – often because the SSL certificate is wrong, the upstream URL is mis‑typed, or the upstream host is unreachable.
Below is a step‑by‑step walk‑through that covers the most common pitfalls, shows how to verify each piece, and explains the trade‑offs you’ll face when choosing a solution.

[Read More]