← Notes

Notes · AI operations

What I Learned Running an AI Agent on My Home Server for 36 Days

A home server kept an AI agent running on a schedule for 36 days. The machine never went down. Five scheduled jobs broke, and three of them broke silently.

A Raspberry Pi in a red case zip-tied to a wall beside a coiled nest of cables, with a sticky note reading Server / Don't touch

The server had been up for 36 days and 17 hours. No service was down. No systemd unit had failed. On every surface I use to check on it, the report was good.

It was also incomplete. A scheduled job that maintains the writing folder had failed 554 times, every six minutes, for 56 hours. It wrote each failure to a table nobody reads. My watchdog, which checks the machine every fifteen minutes, had nothing to say about it, because nothing was wrong with the machine.

This is an account of what an AI agent on a home server actually does when you leave it alone for a month. It is less dramatic and more useful than the version I expected.

What access it actually had

The agent could not use sudo. That limit is real and worth keeping.

It was also in the docker group, and on Linux, membership in the docker group is root under another name. An agent with that membership can start a container that mounts the host filesystem and read, write, or delete anything on the disk.

So the boundary was not what I thought it was. The agent could do nearly anything, and could only do it if someone had already written the instruction. That is the honest description of agent access on a small server: not a locked box, but a wide room with specific labels on the doors.

The scoreboard

The machine held. Nothing was corrupted. Nothing was lost.

Everything that broke was made of expectations.

1. A configuration change silently disarmed jobs for up to twelve days

I changed the provider and model in one global setting. The scheduled jobs kept reporting “ok.” They were not running. They were skipping, and the log recorded it clearly enough for anyone who read the log:

[drift_skip:silent] Skipped to prevent unintended spend: global inference config
drifted since this job was created ... No inference call was made.

That refusal is correct behavior. Stopping is better than spending money on a model I did not choose. But the skip was filed as a skip, nothing crashed, and every surface I look at said “ok.” It happened three separate times. The longest stretch ran twelve days.

2. A model that stopped existing

RuntimeError: HTTP 404: The model gpt-5.5 does not exist or you do not have access to it.

A vendor retired a model. The schedule had no way to know. No deprecation notice has ever reached a cron file.

3. The same connection error, on and off for four weeks

Hermes can't reach the model provider. You may be offline.
Check your internet connection and try again.

“You may be offline” is a reasonable message for a laptop. It is not useful for a server with 36 days of uptime. The cause was DNS, resolved in seconds each time, and the retry logic treated a two-second blip as a permanent state.

4. An update paused the gateway while the schedule kept firing

GatewayUnavailableError: Gateway draining: update_paused

Self-inflicted and correct. I updated the system and left jobs pointed at a door that was, briefly and deliberately, closed.

5. A 4,096-byte macOS file broke the writing pipeline, 554 times

A file appeared in the content folder with a name starting ._. It is an AppleDouble file: the metadata stub macOS leaves behind when it touches a file in a shared folder. It is not text. The reconciliation script opens every markdown file and decodes it as UTF-8, so this one raised an error, the run exited 1, and six minutes later the scheduler tried again.

It did that 56 hours in a row. Twelve of those files were sitting in the folder.

The repair was two lines and one stale index entry. The part worth keeping is how long it took to notice, and why.

The two silences

The whole system was built around one convention: every job prints nothing when it works, and nothing arrives in my inbox. Silence means healthy.

That convention was sound. What I had not checked was whether both silences meant the same thing.

Silence from the watchdog meant: I looked at the machine, and it is well. It checks temperature, load, memory, swap, out-of-memory kills, and runaway processes. All of that was true.

Silence from the reconciler meant: I failed, and I wrote it to a table you do not read.

Same absence of a message. Opposite meaning. The system was fluent in “nothing happened” and could not distinguish nothing happening from nothing working.

This is the failure mode that matters when an agent runs on a schedule. It does not crash the server. It stops doing the invisible work, and the only way to find out is to ask a specific question about it.

What I changed

  1. Two questions, two dashboards. “Is the machine well?” is a hardware question. “Is the work getting done?” is a timestamp question. They were one report, and they are now two.
  2. Alert on exit codes, not on output. A nonzero exit should page once, on the first occurrence, rather than 554 times into a log nobody reads. Silence is only trustworthy from a job whose last successful run keeps moving.
  3. Pin the model to the job. Anything scheduled carries its own provider and model, so a global edit cannot quietly disarm months of work.
  4. Exclude noise by rule. Metadata files, .DS_Store, and editor swap files are skipped by name before anything tries to read them as text.
  5. Read the ledger once a week. Not to fix things. To notice which timestamps stopped moving.

What the 36 days were worth

The machine did what a home server should do. It stayed up, ran the work, and kept the data. The failures were all in the reporting layer, which is the cheaper place to fail and the easier place to ignore.

What it cost was the ability to say “it is fine” and have that be a measurement rather than a mood. A quiet system can be mistaken for a healthy one for a month.

If you are considering something similar for a small business, the order matters more than the tools. A run ledger first, alerts on completion second, autonomy third. The agent is the easy part. Knowing whether it is working is the whole job.

An earlier note in this collection ended with a simpler version of the same claim: an AI worker is not a replacement for a responsible owner. Thirty-six days of logs agree.


The watchdog script, the ledger layout, and the cron conventions behind this note are available on request.