Troubleshooting
Use Hoplet's status, configuration and logs to find and fix enrollment, identity or reporting problems.
Start here
Show the identity state of the device, check its configuration and read the latest service logs. Each log entry describes what happened and, where possible, how to correct it.
hoplet status shows one of these identity states:
| State | Meaning |
|---|---|
unenrolled | The device has no SVID yet. Hoplet is enrolling. |
enrolled | The device has a valid SVID. next renewal shows when Hoplet renews it. |
expired | The SVID expired. Hoplet enrolls again with the bootstrap certificate. See Expired SVID. |
not-authorized | Hop refuses the device. See Enrollment Policy rejection and Revoked device. |
The last error line shows the reason for the last failure. Identity errors never stop the service. Hoplet retries with backoff, and every hour while the state is not-authorized.
Exit codes
When a command stops, use the result below to decide what to do next. Connection problems can clear without action. Identity or configuration problems need a change before you try again.
| Code | Meaning | Retry? | What to do |
|---|---|---|---|
0 | Success | No | No action needed |
1 | Unexpected failure | No | Read the accompanying message |
3 | The device is not enrolled yet | No | Start the service or run sudo hoplet enroll |
64 | Invalid command | No | Check hoplet --help |
69 | Cannot reach Hop | Yes | The service retries automatically. Check the network, DNS and HTTPS access to Hop. |
70 | Internal error or malformed request | No | Save the message and logs to report the problem |
74 | Cannot read or write local files | No | Check permissions, disk space and /var/lib/hop/hoplet |
75 | Temporary server problem | Yes | The service retries automatically |
77 | Identity rejected | No | Follow Resolve a problem, then restart the service |
78 | Invalid configuration | No | Follow Invalid configuration, then restart the service |
Resolve a problem
Find the message or identity state that matches what you see.
Trust root pin mismatch
The log shows trust.root_pin does not authenticate Hop. Hoplet did not find the pinned root in the trust bundle, or the server did not prove an identity under that root. Hoplet does not enroll until the pin matches.
Make sure that server.url and trust.root_pin are correct. Get the pin again from your Hop administrator. Do not copy a pin from the error message, because it comes from the server that Hoplet did not authenticate.
Enrollment Policy rejection
The state is not-authorized and the device is not in Hop. The log shows Hop refuses this client (HTTP 403 not-authorized). No active Enrollment Policy trusts the issuer of the bootstrap certificate, or two policies trust it.
Add the issuing CA to exactly one active policy in the intended Project. Then run sudo systemctl restart hoplet to enroll now.
Revoked device
The state is not-authorized and the device shows as revoked in Hop. Revocation is final. Hop refuses the device and its bootstrap certificate.
To connect the device again, install a new bootstrap certificate and key, then enroll as a new device:
Expired SVID
The state is expired, for example after the device was offline for some time. Hoplet enrolls again with the bootstrap certificate and keeps the client ID.
If the state stays expired, read the last error. The bootstrap certificate must be valid and the device clock must be correct. Use timedatectl status to check the clock. If the bootstrap certificate expired, install a new one and enroll with the commands in Revoked device. Hop then adds the device as a new device.
HTTP 401 without an SVID
Hop returns 401 to device API requests without a valid SVID. Only discovery and enrollment work without one. A curl request without a client certificate gets 401 for this reason.
If Hoplet logs Hop did not accept this device's SVID (HTTP 401), it retries. If the error continues, make sure that hoplet status shows the state enrolled.
Invalid configuration
Show the settings Hoplet uses with hoplet config print. It combines the main file, override files, environment variables and command-line options. Then run the configuration check:
The check names each invalid setting and explains the expected value. For example, a Device ID with spaces must use the allowed characters. hoplet enroll also stops with exit code 78 when the bootstrap key does not match the bootstrap certificate, or when the bootstrap certificate is not valid at the device time.
Device not active
A device becomes active after Hop receives its first capabilities report. If the device has joined the Project but is still onboarded, preview what Hoplet collects, then send a report:
If the report fails, check the service logs for the reason and follow the matching guidance above. See Capabilities for the reported fields and how to adjust them.