Troubleshooting
Use this section to troubleshoot issues with your Security Compliance Management (SCM) installation.
Logs
If you run into issues with Security Compliance Management (SCM), you can access the relevant log files. Security Compliance Management uses the journald logging driver for logging.
comply-scarpy
container you would use:
sudo journalctl CONTAINER_NAME=comply_scarpy
comply-scarpy
since 18 June 2024, you would use:
sudo journalctl --since "2024-06-18" CONTAINER_NAME=comply-scarpy
Reset your Security Compliance Management password
If you forget your password, you can reset it in the user admin console.
Resolve a failed assessor upgrade
If an upgrade of the assessor has failed on one of your nodes, try the following troubleshooting step.
If the upgrade of an assessor on a node fails, the node is marked in red on the Inventory page. Failures may be due to network issues. If that is the case, Security Compliance Management attempts to upgrade the node once connectivity returns. An hourly background task runs to check if nodes have been upgraded or not. If a node does not upgrade and remains red on the Inventory page, run the Puppet agent. If the upgrade continues to fail, see the Puppet agent logs for more information.
Troubleshooting mTLS issues in Security Compliance Management
Incorrect configuration of mTLS certificates when setting up Security Compliance Management to work with PE can cause agents and/or scan tasks to fail.
There are two main certificate configuration errors that cause problems:
- If the CA certificate configured for Security Compliance Management does not match the CA certificate the Puppet Enterprise certificate is signed with, then a trust store issue is returned upon setting up Puppet Enterprise or trying to run a scan.
- A hostname issue can arise if a server identity check does not pass. The
dnsName
in thesubjectAltName
of the server certificate must match the hostname Security Compliance Management is communicating with. The hostname configured in the Security Compliance Management settings page for Puppet Enterprise must match one of thednsName
entries in the Puppet Enterprise certificate.
Troubleshooting agent issues
Agents can fail if the certificate is configured incorrectly in two ways:
- The hostname could be the issue - the Security Compliance Management mTLS
certificate must have the
dnsName
with which the agent is trying to contact the Security Compliance Management server. This is relevant only if you set up the Security Compliance Management module to download the assessor from the Security Compliance Management server. The hostname the Security Compliance Management server is contacted with is the hostname in the configuredscanner_source
parameter URL. - The trust store may also be the problem if the Security Compliance Management server mTLS certificate and the client certificate are not signed by the same CA.
Troubleshooting scan task issues
Scan tasks can also fail if the certificate is configured incorrectly in two ways:
- If the hostname is incorrectly configured. The Security Compliance Management mTLS certificate must have the
dnsName
with which the agent is trying to contact the Security Compliance Management server. The hostname used is passed through by the task and can be seen in the Puppet Enterprise UI by checking the task parameters. Verify the task parameters to ensure that the hostname is correct. - If the Security Compliance Management server mTLS certificate and the client certificate are not signed by the same CA a trust store issue occurs and this too can cause the scan task to fail.
Troubleshoot mTLS from a node
You can run a simple cURL command to troubleshoot mTLS issues from a node.
To troubleshoot mTLS from a node: