This document describes the steps to troubleshoot CAEP Hub in your environment with some common issues that new users may face, and how to navigate them.
Basic Troubleshooting in CAEP Hub is consistent with other parts of the SGNL Product. CAEP Hub has dedicated logging channels for understanding Rules and Actions that may have completed, failed, or had an error returned. These logs are available from the Logging section in the Nav, within CAEP Hub.
Oftentimes, errors are encounted because one or more Actions is failing, so it’s often good to start your troubleshooting in the Actions Failed
section of CAEP Hub Logging. Action Failed logs will include details of the Rule that triggered the Action, the Action Name, as well as a message as to why the failure is occurring. If you’re seeing the same Action fail repeatedly, a good first course of action may be to disable the Rule until you understand why the Action is failing.
An Action Failed logline has a number of useful properties (a subset are included below):
actionIndex: 0
actionType: SlackRevokeSession-1.0.0
address: https://api.slack.com
error: provided auth token is missing required "Bearer " prefix
ruleDisplayName: Revoke Sessions following Incident
ruleId: 30dbf5a2-7331-4d05-a299-1a205efc9918
viewId: {"OktaUser.id":"00u4uuhxg6zEaMabV1d7","ServiceNowITSMChangeRequest.sysId":"5167dfcac3a492103e3f7fd9d001312d","ServiceNowITSMConfigurationItem.id":"b92ad6d4c3374a503e3f7fd9d00131f0","ServiceNowITSMUser.sysId":"5b00ab008737c910793a97983cbb354a"}
From this logline, I can see the very first Action in the Rule to Revoke Sessions is failing – it’s a Slack Session Revoke Action and the error provides a pretty good indication of what’s going on. I should go and update the Protected System Action that is using Bearer Authentication to include a Bearer prefix (or some other prefix) before the token.
In other cases, the error might include a HTTP Status Code. If you see a 4xx HTTP status code, some helpful tips to check include:
400
- Ensure that all of the fields you need have been prefilled with valid data or valid/populated parameters from the SGNL Graph401
- Ensure that you have authentication configured, and that the credentials you have provided are valid and able to authenticate to the target system – in some cases, this may also be a permission issue, see below403
- Ensure that you have all the right permissions to perform the necessary action. This may include requesting additional scopes from an Authorization Server, or the inclusion of additional scopes in the SGNL Protected System configuration.404
- Ensure that you have the right address populated in the Protected System configuration for the action, or if overriding the address in a given action, ensure that both the static and dynamic (i.e. parameter-based) data is correct