Skip to main content

Troubleshoot

When using TrustEdge, you may encounter various issues that can affect its operation. This section provides guidance on diagnosing and resolving common problems to ensure smooth functionality.

Common issues and solutions

Issue:

When installing on Windows using WSL, installation fails with the error message: System has not been booted with systemd as init system (PID 1). Can’t operate. Failed to connect to bus: Host is down.

Solution:

  1. Ensure your WSL version is greater than 2. Check with:

    wsl --status
    
  2. If the version is lower than 2, update it with:

    wsl --set-default-version 2
    
  3. Launch Ubuntu environment within WSL and gain root access:

    sudo su -
    
  4. Edit the WSL configuration file:

    sudo nano /etc/wsl.conf
    

    Add the following lines:

    [boot]
    systemd=true
    
  5. Save and exit (Ctrl+O and Ctrl+X), then proceed with the install.

Issue:

TrustEdge agent cannot connect to Device Trust Manager.

Solution:

  1. Verify that the device can reach the required DigiCert URLs:

    • one.digicert.com

    • *.one.digicert.com

  2. Ensure that outbound connections on TCP ports 8883 and 1883 are not blocked by your network firewall.

Issue:

TrustEdge agent fails to start due to configuration file errors.

Solution:

  1. Check the syntax and structure of your trustedge.json and bootstrap_config.json files.

  2. Validate JSON files to ensure they are correctly formatted.

  3. Verify file paths and credentials specified in the configuration files.

Issue:

Problems with certificate generation or CSR submission.

Solution:

Ensure that the keys and certificates are correctly specified in the command line or configuration files.

Check service status

Verify the status of the TrustEdge agent service:

sudo systemctl is-active trustedge

View logs

Important

The file trustedge.log is only created when TrustEdge is running in service mode.

Access TrustEdge logs for detailed error messages:

tail /var/log/trustedge.log

Test connectivity

Test network connectivity to required endpoints:

ping one.digicert.com
curl -I https://one.digicert.com