Endpoint agent troubleshooting¶
For the endpoint agent, the symptom is the line it prints (on screen when you run a command, or in
its log: journalctl -u hodei-shield on Linux, /var/log/hodei-shield/hodei-shield.log on macOS,
the newest *.log in the logs folder next to the program on Windows). hodei-shield diagnose
prints a redacted report with the platform, clock and queue sections used below; send it to your
administrator when asked. The install steps are in Install the agent.
Index by symptom¶
| What you see | Step |
|---|---|
the platform rejected this enrollment token …, enrollment token is malformed …, enrollment rate-limited … |
Enrollment token rejected, malformed or rate-limited |
this tenant already has a producer with this agent id |
Agent id already in use |
diagnose says clock [FAIL] |
Clock skew |
The service will not start, restarts in a loop, or run exits 75 |
Service does not start, restarts in a loop or exits 75 |
offline queue is full … |
Offline queue full or backlogged |
An update is refused: version_not_approved, identity_unpinned, manifest_replayed |
Update refused |
Enrollment token rejected, malformed or rate-limited¶
Symptom. hodei-shield enroll --token-stdin stops with one of these:
the platform rejected this enrollment token (it is unknown, already used, expired, revoked, or bound to another agent id — these are deliberately indistinguishable). Issue a fresh token in the consoleenrollment token is malformed — expected hsen1.<tenant-uuid>.<43-character secret>enrollment rate-limited by the platform — retry after 30s(the delay is only shown when the platform sends one)
Cause. A token works once. The platform answers the same way whether the token is unknown, already used, expired, revoked or tied to another agent id, so the agent cannot tell you which; the console can. A malformed token is a typo or a truncated paste. Rate limiting means too many enrollment attempts in a short time.
Fix. Create a new token in the console just before you use it and paste all of it, as one line.
After a rate-limit message, wait the time shown and repeat. If the message starts with
enrollment did not complete after N attempt(s), the host kept its new key: run
hodei-shield enroll --token-stdin again with the same token and the same agent id. If it says
platform returned HTTP 5xx — enrollment state is unknown, check the console before retrying.
Agent id already in use¶
Symptom. this tenant already has a producer with this agent id. If this host enrolled before and the answer was lost (timeout, dropped connection, HTTP 5xx), re-run with the SAME token and agent id within 24 h to complete it. Otherwise revoke the stale producer in the console, which frees the name, and enroll with a FRESH token. …
Cause. The organization already has a producer with that name: either this host enrolled and the answer never arrived, or an old producer with the same name is still registered.
Fix. If this host enrolled a moment ago, repeat the command with the same token and agent id, within 24 hours. Otherwise revoke the stale producer in the console and enroll with a fresh token. Do not try other agent ids with the same token: a token tied to one agent id is refused under any other, and repeated failed redemptions revoke it.
TLS or certificate error reaching the console¶
Symptom. enroll or the service cannot connect; hodei-shield diagnose shows platform [FAIL] with
a TLS message, for example the CA pin is not a usable PEM bundle, the CA pin contains no
certificate, or certificate … has EXPIRED. If the CA file is missing, enroll stops with
read the pinned CA root <path> and names the path.
Cause. The agent does not use the operating system's certificate store. It trusts only the platform CA
bundle the installer puts in place: /etc/hodei-shield/platform-ca.pem on Linux and macOS,
C:\ProgramData\Hodei-Shield\state\platform-ca.pem on Windows. The file is missing (for example a
bare binary copied without the installer), is not the bundle shipped with the agent (the CA at <path> is
not the bundle this binary ships — refusing to pin it, nothing was sent), or its certificate has expired.
Fix. Do not add a certificate to the system store and do not turn verification off; neither has any
effect on the agent. Reinstall with the official package so the file is laid down, check the path
above, and send the output of hodei-shield diagnose to your administrator. When the pin is good,
diagnose shows tls_with_pinned_ca: ok.
Clock skew¶
Symptom. hodei-shield diagnose shows clock [WARN] or clock [FAIL] with a line such as this
host's clock is 120 s behind the platform's: self-update is refused (policy_not_yet_valid) while it is
more than 60 s behind the console's; fix NTP, or, on a host that is ahead, this host's clock is N s
ahead of the platform's.
Cause. The agent compares its clock with the Date header of the platform's reply. Up to 60 seconds
of difference is fine; from 61 to 300 seconds the status is a warning (signed submissions are still
accepted, but a host that is more than 60 s behind is refused self-updates); beyond 300 seconds the
platform refuses every signed request, so the host sends nothing.
Fix. Turn on automatic time synchronization (NTP) on the machine, wait for it to correct the clock,
and run hodei-shield diagnose again. Past 300 seconds of difference the agent cannot report.
Service does not start, restarts in a loop or exits 75¶
Symptom. The service is not running, keeps restarting, or hodei-shield run ends with exit status
75 and this text: another hodei-shield instance is already running against this state directory (<path>), pid N. Refusing to run `run` beside it ….
Cause and fix, by what the log says:
- Exit 75. Another
runalready holds the lock on the state directory, for example the service itself. Two instances would share one key store and one queue, so the second is refused. Stop the service before running the agent by hand. On Linux the unit retries every 10 seconds after a failure, so a repeated 75 means a second process is still alive.check,pause,resumeandpause-statuswork alongside a running service. waiting for enrollment: no producer credential in the state directory …. Not a crash: the service is up but this host has no credential. Nothing is evaluated or sent. Enroll withhodei-shield enroll --token-stdin; the service notices within about 5 minutes.waiting for configuration: nothing is evaluated or sent until hodei-shield.toml (or HODEI_* variables) supplies it. The configuration is missing. Supply it as in the install guide for your system; the service re-checks within 5 minutes.- The platform refused the credential (revoked or invalid). The agent stays running and quiet and
re-checks on its own at growing intervals (first after 1 hour; up to 24 hours when the platform answers
401).
enrollthen refuses to overwrite it without--force: revoke the producer in the console, create a new token, stop the service, and enroll again as the message instructs.
Offline queue full or backlogged¶
Symptom. The log shows offline queue is full (N observations of a M limit, … bytes): REFUSED
new observation(s) rather than evicting older ones … and observations could not be retained — the
offline queue is full and refuses to evict older evidence; this cycle's observations are lost.
diagnose lists the queue under queue.
Cause. The agent could not deliver for long enough to fill its encrypted local queue (limited in number of observations and in size). When it is full it refuses the newest observations and keeps the oldest, so what is lost is counted but cannot be recovered. The agent does not stop: it keeps trying to deliver.
Fix. Fix whatever blocks delivery: the platform URL, the CA file (TLS), the clock or a rejected token. Once the platform accepts submissions again, the backlog drains by itself.
Update refused¶
Symptom. The host stays on its current version, and diagnose shows last_update_refusal with one
of these classes:
policy_deny:version_not_approvedidentity_unpinned:self-update identity is not pinned on this host — run `hodei-shield pin-update-identity` as root (fail-closed)manifest_replayed:manifest is older than one this host already verified — refusing update (fail-closed)
Cause and fix.
version_not_approved. The console's signed policy answered deny for this release: it has not been approved for this host. Nothing is broken on the machine. The release has to be approved on the console side; until then the agent stays where it is.identity_unpinned. Self-update on Linux needs an administrator to pin the host's update identity once after enrollment. As root, runhodei-shield pin-update-identity --tenant <tenant-uuid> --producer <endpoint_agent:name> --public-key-id <uuid>with the values shown for this host in the console. To change an existing pin (for example after re-enrolling), add--replace. If the log saysroot's pinned update identity differs from this host's enrollment, re-pin with--replace.manifest_replayed. The list of releases the host received is older than one it already verified on its channel (a lower version, or an earlier signing of the same one). The agent refuses it so that an old list cannot hide a newer release. There is nothing to repair on the host: do not install an older package by hand; if it keeps appearing, send the output ofdiagnoseto support.- On macOS and, in this release, on Windows, the agent does not apply updates itself
(
self-update is not supported on this OS by this release — staying on current version): update by hand as described in the beta guide for your system.
Possible cloned host and re-enrolment¶
Symptom. The console marks an endpoint as a possible cloned host and sends an alert.
Cause. An agent that supports it binds its enrolment to the machine it was made on, with a keyed hash of the operating system's machine identifier that the platform cannot reverse. If signed reports for an endpoint later present another machine's binding (for example, a copied virtual machine or a restored disk image running the same agent), the console marks the endpoint as a possible cloned host and sends an alert. Its evidence is still accepted, but those reports no longer update its last contact or inventory, and key rotation is refused.
Fix. To resolve it:
- Remove the agent from every copy of the machine.
- Revoke the endpoint in the console.
- Issue a new enrolment token (Endpoints) and re-enrol the original machine with it
(
hodei-shield enroll --forcewith the new token). The new enrolment is a separate endpoint, bound to that machine.
An endpoint revoked while it was marked as a possible cloned host cannot be reinstated: reinstating it could hand its identity to the copy. Re-enrolling is the only way back. An endpoint shown as "not bound to its machine" was enrolled by an agent without this binding; re-enrolling it with a current agent binds it.
Help¶
- Logs:
- Linux:
journalctl -u hodei-shield -n 100 --no-pager - Windows:
C:\Program Files\Hodei-Shield\Agent\logs\(newest file; read it from an elevated prompt) - macOS:
/var/log/hodei-shield/hodei-shield.logand.err.log hodei-shield diagnoseproduces a redacted support bundle to attach to a ticket.- To ask for help or report a problem: write to info@hodeitek.com, or use the "Beta" button in the console. We answer within one working day. That is a commitment to answer, not to resolve.
- For a token, or to revoke a machine: your organisation's administrator
(or your MSSP's administrator) does it in the console. To revoke: Endpoints
menu, the endpoint's detail page, Revoke enrolment (console v2.44.x; roles
platform_admin,org_admin,tenant_admin).