The guide: Troubleshooting
Reach is in development. Its packages are not published.
Each entry gives the message you see (from the code), what it means and what to do. Messages from the server to the Reach agent (the read-only program on each machine) arrive as a short code and a plain sentence. Logs: the agent service sudo journalctl -u reach-agent; the server sudo journalctl -u reach-server. Neither logs report bodies, tokens or secrets.
First check, for any agent problem: sudo reach-agent status --machine. It shows enrolment, whether it is paused, whether the service socket is there, the last report, and Last failed check-in: with a time and a code.
The clock#
- Messages:
clock_skew: "The clock of this machine differs too much from the server's clock." Or, from the agent: "this machine's clock is more than 24 hours away from the server's clock". - Meaning: requests are signed with the time. Up to 5 minutes apart is accepted. Between 5 minutes and 24 hours the server replies with its own time and the agent corrects itself once, but fix it anyway. Beyond 24 hours the agent sends nothing.
- Fix: make both clocks follow a time source. On Rocky Linux 9:
timedatectl, thensudo systemctl enable --now chronyd. More in Look after agents.enrol --forcedoes not help.
The server certificate does not match the pin in the token#
- Message: "the server certificate does not match the pin in the token. If this server was reinstalled, get a new token and enrol again with --force". In
status:certificate_pin_mismatch. - Meaning: the server's certificate key is not the one the token recorded. This happens when the server was rebuilt, a certificate was replaced with a new key, or something sits between the agent and the server.
- Fix: if you rebuilt or replaced it on purpose, make a new token and enrol again with
--force, with the two commands in Enrol the machine. If you did not, do not enrol again until you know why.reach-server tls renewkeeps the key, so it does not cause this.
The token was refused#
| Message | Meaning | Fix |
|---|---|---|
"The enrolment token was not accepted." (token_invalid) | Wrong, damaged or unknown token, or a proof that did not verify | Make a new token. Check the file holds the whole token |
"This enrolment token has expired." (token_expired) | Past its lifetime (counted from the server's clock) | Make a new token |
"This enrolment token has been revoked." (token_revoked) | Someone revoked it | Make a new token |
"This enrolment token has been used as many times as it allows." (token_exhausted) | Used up | Make a new token with more uses |
"This server holds demonstration data; enrol against a real server." (demo_tenant) | The server was filled by reach-server demo-seed and only shows made-up machines | Enrol against your real Reach server; keep the demonstration server separate |
"This enrolment token has reached its limit of N enrolments per hour. Wait, or make a new token." (rate_limited), followed by "The server asked to retry in 60 minutes; nothing was sent." | The token's per-hour limit was reached (N is the limit you set on the token) | Wait, or make a token with a higher limit |
"Too many requests. Try again later." (rate_limited) | Another limit: too many requests from one agent in a short time, or too many failed attempts from one address | Wait for the time the agent prints |
"This server is version X and does not accept agent version Y. Upgrade the agent to the server's version." or, for an agent older than the server's floor, "... The oldest agent it accepts is Z. Upgrade the agent to the server's version.", or, when the agent is the newer, "... Upgrade the server to the agent's version." (version_unsupported, HTTP 426), followed on the agent's side by "Nothing was sent. Retrying will not help." | The server accepts agents of its own major version and its own minor version or the two before it, and none older than its floor (0.1.1 for a 0.1.1 server: every earlier build said 0.1.0). So the agent may be newer than the server (a newer minor version), from another major version, more than two minor versions older, or older than the floor | The message says which side to upgrade. If the agent is newer, upgrade the server (server first, then agents); if the agent is older, upgrade the agent. status --machine shows version_unsupported as the last failed check-in and says to upgrade the older of the two. The service retries about every six hours, so it recovers by itself once the versions match. On the server, the Machines page shows each machine whose agent was refused, under its agent version, as "Refused: agent too old (0.1.0), needs 0.1.1 or newer" (or "agent newer than this server"); the line goes when the machine is next accepted, so after upgrading a server, look there for the machines it has shut out |
"The licence does not allow another machine." (licence_limit) | Licence limit | Nothing in this build raises it: evaluation builds have no machine limit |
"server reply signature does not match"#
- Message: "server reply signature does not match", in the agent's log, and the machine goes quiet.
- Meaning: on agents that were enrolled before
server.agent_listenwas set. They still call the address they were enrolled against, which is now the console's, and the console answers agent requests with a plain "not found" that carries no server signature, so the agent cannot verify it. (If you did not change the listeners, treat it as in the pin section above: something between the agent and the server may be altering replies, so find out why before you enrol again.) - Fix: make a new token in the console and run
sudo -u reach-agent reach-agent enrol --machine --force --token-file /var/lib/reach-agent/tokenafter saving the token there (steps, Look after agents).
This machine is already enrolled#
- Message: "This machine is already enrolled. Use --force to replace its identity."
- Fix: only use
--forcefor the reasons in Look after agents. The server will list the machine twice, the old one going silent.
The same computer appears twice in Machines#
You enrolled the machine and also ran enrol as an ordinary user, or you used --force. Retiring a machine from the console is not built yet, so the old entry stays and goes silent. See enrolment.
The console says "The server cannot reach its database"#
- What you see: a plain page headed and titled "The server cannot reach its database" (HTTP 503), not the sign-in page. Agents get a generic
internalerror and retry later. The server log hasconsole.database_unreachableor "agent api: database unreachable" with the cause. - Meaning: the server is running but cannot reach its database. Your password is not the problem.
- Fix: SQLite: check the file at
database.pathexists and thereach-serveraccount can read and write it, and the disk is not full. PostgreSQL: check the database is running and the address file is right (mode 0600).
The local socket is absent#
- Messages: "user: the agent service could not be reached (is it running?): <the underlying error>" (from the per-user collector, after trying for 45 seconds with
--once). Instatus:Service socket: absent(Windows:Service pipe: cannot be used). In the service's log: "cannot open the local socket: collectors cannot reach the service until it opens; check-ins go on" with the reason (for example "<path> exists and is not a socket", or on Windows a pipe name another program holds); the service keeps checking in and tries again, waiting longer each time up to five minutes. - Meaning: the collector cannot find the service, or the service could not create its socket (
/run/reach-agent/collect.sock). - Fix:
systemctl status reach-agent;sudo systemctl restart reach-agent; readsudo journalctl -u reach-agent. On Windows,reach-agent status --machineconnects to the pipe and checks its owner, and the service writes its log to the Windows Application event log (sourceReachAgent).
Paused#
- What you see:
Paused: yesinstatus; the log says "paused by the administrator; nothing is sent". Pausing is done on the machine only: the server's reply has apausedflag, but this release never sets it, so the server cannot pause an agent. - Meaning: pausing writes
/etc/reach-agent/paused. While it exists the service sends nothing at all. - Fix:
sudo reach-agent resume(on Windows,reach-agent.exe resumefrom an elevated prompt). A running, enrolled service tries to check in within about 30 seconds, or 4 minutes after its last check-in if that is later (the server's limit); once the server is reached it is up to date. On one Windows 11 virtual machine a resume more than 4 minutes after the last check-in was followed by a check-in 27 seconds later; the 4-minute case and Linux are from the code. Pausing from the server is not built.
A machine is silent#
The Overview shows a machine as silent when the server has not heard from it, by a check-in or a report, for 3 hours. A quiet machine is not silent: it sends a report only when something changed, but it checks in about hourly and each check-in confirms that its last report is still true, so a machine whose content never changes stays reporting. (The machine's page shows "Last report", when something last changed, and "Last confirmed unchanged".) A machine paused on site (reach-agent pause) sends nothing, so it shows as silent too; so does, after 3 hours, a machine the server refuses for its agent version, with the Refused line beside it (its contacts are refused, so they do not count as heard from). If a machine really is silent, check, in order: paused; the clock; the pin; whether the machine can reach the server's address; whether the service runs; the last failed check-in in status --machine. While check-ins fail the agent retries every minute at first, growing to six hours.
A machine is "Checking in, not reporting"#
- What you see: on the Machines page the state "Checking in, not reporting" and "No report since <time>: it checks in, but could not read its saved data"; the machine's page says since when the agent has said so.
- Meaning: the agent's last check-in said it could not read its saved data (its spool, or the spool's index
spool.known.jsonbeside it), so it checks in but sends no report, and what the console shows for the machine is as old as its last report. The server stores only this flag and a count; nothing else is decided from them. - Fix: on the machine,
sudo reach-agent status --machineand the service log (journalctl -u reach-agent; on Windows, Event Viewer) say more. Usually the state folder's permissions or the disk: the files must be readable by the service account (reach-agenton Linux,NT SERVICE\ReachAgenton Windows). Nothing is lost: once the agent can read its data again, the next check-in clears the state, and sends a report if anything changed since the last one (otherwise it confirms the last report, and "Last confirmed unchanged" moves).
Signing in#
- "Too many attempts. Wait 15 minutes and try again." Five failures within 15 minutes for the same account or address. Restarting the service clears the count.
- Forgotten password or lost phone: on the server run
reach-server user reset <email> --password(a one-time link) or--totp(set the authenticator up again). See users and sign-in. - "This account has no two-step sign-in yet, so it cannot sign in from another machine": the password was right, but the account has no second step. Sign in from the server itself (or through the SSH tunnel) with an enrolment code from an owner or from
reach-server user reset <email> --totp. - "Two-step sign-in is paused for this account": ten wrong codes since that person's last good sign-in (the count is forgotten only after a whole day with none, so slow guessing counts too). The first pause is an hour and each next one doubles, up to 7 days. Wait, or
reach-server user reset <email> --unlock. - A code is refused though it is right: it was already used (wait for the next one) or the server's clock is more than 30 seconds off.
- The browser warns about the certificate: expected with the evaluation CA until you trust it (Certificates and TLS). Compare the fingerprint on the sign-in page with the one
initprinted. - "Forbidden: the request did not come from this site." on sign-in through the tunnel:
public_urlwas already changed to the network address and the client is not a browser (a script,curl, a tool or a proxy that sends no same-site statement; a current browser is accepted). Setserver.public_urlback tohttps://localhost:8443andserver.listenback to127.0.0.1:8443, restart, finish every person's second step through the tunnel, then change both again. server.users_without_second_stepin the server's log: the console listens on an address other machines can reach and the named users have not set up two-step sign-in. The server runs; those users cannot sign in from another machine. Each signs in on the server or through the SSH tunnel with an enrolment code (an owner's Users page, orreach-server user reset <email> --totp) and sets up their authenticator.
Start-up and configuration messages#
- "identity.providers ... not available in this build": remove the
[[identity.providers]]entries fromserver.toml. - "audit.chain_broken" in the log, or
BROKENfromreach-server audit verify: a row of the audit log was edited or removed. Restore from a backup and compare with the heads in your log collector. - "unknown configuration keys: ..." or "unknown configuration variable ...": a typo. Keys are in configuration.
- "the database schema is at version N and this server needs M; run \"reach-server migrate\" first": printed by
reach-server runat start-up. Runsudo -u reach-server /usr/bin/reach-server migrate(SQLite), or take a backup and add--backup-done(PostgreSQL). - "the database is at schema version N, newer than the M this server knows; use the newer server": printed by
reach-server migrate, not by start-up. You are running an older server program on a newer database. - "the database address file ... can be read by other users":
chmod 600the file. - "the database is at schema version N and needs M. Take a backup first ..." with PostgreSQL: printed by
reach-server migrate, not by start-up. Take a backup, then runsudo -u reach-server /usr/bin/reach-server migrate --backup-done(upgrade).
Not yet covered by our separate tests#
Our separate install tests have not yet covered: the agent service's check-in during a database outage; the default one-hour check-in interval over a long run; PostgreSQL 15 and 18, and PostgreSQL 17 since the init fix (run with 17.12 on an earlier development build; not repeated on the current one). Entries above that touch these (the database page, the hourly check-in, the PostgreSQL messages) come from the code and the engineers' own runs, not from the separate install tests.