Any engine fix: A machine that was working is now offline

The machine went offline

A machine that worked yesterday and is grey today has a short list of causes, and one line of the agent log on that machine tells them apart.

is offline. Retrying
Printed by Termdeck.

Diagnosis

What it actually is

The agent process is not running

A laptop that slept, a reboot where the service was never enabled for boot, or a manual stop. From the other end of a socket that is no longer there, this is indistinguishable from a network failure, which is why the dashboard does not try to guess.

The machine is awake and the link is not

A captive portal, a VPN that took the route, or a firewall that started inspecting outbound WebSockets. The agent keeps dialing and logs a connection problem each time, and that is the difference from a stopped process: a stopped process logs nothing at all.

An update started and never finished

A self-update that left nothing running is its own state rather than an ordinary offline, and it is worth naming separately because the repair is not the same as a restart.

The account changed underneath it

A machine removed in the dashboard, or a plan that no longer covers it, is refused on the next dial with an HTTP status. That is a loud failure rather than a silent one, and the log carries it.

Check

Confirm it before you fix it

Run thisWhat a good answer looks like
systemctl --user status termdeck-agentOn Linux: running, stopped or failed, plus the last few log lines. macOS uses launchctl for the same question and Windows the service list.
tail -n 20 ~/.termdeck/logs/agent.logA repeating connection problem is a network cause. An HTTP status is an account cause. Nothing since yesterday means the process is not running.
curl -sS -o /dev/null -w "%{http_code}" https://termdeck.io/healthzRun on the machine itself. Proves it can reach the service at all, which separates a local network problem from everything else on this list.

Every command here has been run on a real machine. Termdeck answers the same questions for every machine you have connected, without opening a terminal on any of them.

Fix

Cheapest thing first

1. Start the service and enable it for boot

A machine that only returns once somebody logs in has the service installed but not enabled.

2. Wake the machine and read the log

A sleeping laptop is the most common cause by a distance, and nothing about it needs repairing.

3. Re-run the install to repair a stuck update

The install command is safe to run again on a machine that already has an agent, and it is the repair rather than a reinstall.

Not this

What will not help

Removing the machine and adding it again

That mints a new token while the old agent keeps running against a revoked one. A stopped process becomes a machine that can never come back without a second install.

FAQ

A machine that was working is now offline, answered

Does the agent reconnect on its own?

Yes, continuously, on a backoff. Fixing the underlying cause is picked up without restarting anything.

Why does the dashboard not say why?

Because a stopped process and a dropped network are the same silence from the other end. The log on the machine is where the difference lives.

Do my chats survive it?

The transcripts are on that machine and stay there. What stops is reading and running them until it reconnects.