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.

sudo hoplet status            # identity state, SVID validity, last error
sudo hoplet config check      # validate the configuration
systemctl status hoplet       # identity state on the Status line
journalctl -u hoplet -n 50    # what happened last

hoplet status shows one of these identity states:

StateMeaning
unenrolledThe device has no SVID yet. Hoplet is enrolling.
enrolledThe device has a valid SVID. next renewal shows when Hoplet renews it.
expiredThe SVID expired. Hoplet enrolls again with the bootstrap certificate. See Expired SVID.
not-authorizedHop 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.

CodeMeaningRetry?What to do
0SuccessNoNo action needed
1Unexpected failureNoRead the accompanying message
3The device is not enrolled yetNoStart the service or run sudo hoplet enroll
64Invalid commandNoCheck hoplet --help
69Cannot reach HopYesThe service retries automatically. Check the network, DNS and HTTPS access to Hop.
70Internal error or malformed requestNoSave the message and logs to report the problem
74Cannot read or write local filesNoCheck permissions, disk space and /var/lib/hop/hoplet
75Temporary server problemYesThe service retries automatically
77Identity rejectedNoFollow Resolve a problem, then restart the service
78Invalid configurationNoFollow 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:

sudo systemctl stop hoplet
sudo hoplet enroll --force
sudo systemctl start hoplet

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:

sudo hoplet config print
sudo hoplet config 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:

sudo hoplet capabilities show
sudo hoplet capabilities 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.