Common errors in DevOps Change Velocity
Identify the root cause of errors that occur in DevOps Change Velocity, and see the corresponding steps that might resolve them.
Tool connection
This table lists the steps required to resolve the errors that might occur when you select the Submit or Connect button after entering the tool details in the tool connection process:
| Message | Action |
|---|---|
| Tool cannot be created because the tool name has not been entered. Enter the tool name, and try again. | Re-enter the tool name. |
| Tool cannot be created because the tool integration has not been selected. Select the correct tool integration value, and try again. | Select the correct tool integration value. |
| Tool cannot be created because the tool URL is invalid or incorrect. Re-enter the tool URL, and try again. | Re-enter the tool URL. |
| Tool cannot be created because the platform version cannot be determined. Create the glide.buildtag.last sys property, and try again. |
|
| Tool cannot be created because the associated CreateDevOps tool connection is invalid. Create a valid connection alias, and try again. |
|
| Tool cannot be created because the CreateDevOpsTool alias credentials are incorrect. Update the credential record, and try again. |
|
| Tool cannot be created because the connection URL of the CreateDevOpsTool alias is incorrect. Use the following URL: https://<instancename>.service-now.com,and try again. |
|
| To create a connection alias, you need the connection_admin role. Contact your system administrator. | This error occurs if the connection alias field is empty for a tool record. To create the tool connection, you need a connection alias. Only a user having theconnection_admin role can create a connection alias. You must reach out to a user having this role, like an administrator, and get the connection alias created. |
| Tool cannot be created because the <toolname> tool name already exists. Enter a different name, and try again. | Use a different name for the tool. |
| Tool cannot be created because the <toolname> does not have a valid MID server configuration. Configure a valid MID server, and try again. |
|
| Tool cannot be created because there are no connection and credentials aliases available for DevOps Data Model scope. Create a new connection and credential alias, and try again. | This error occurs for OAuth authentication.
|
| Tool cannot be created due to a technical issue while creating the credential record. |
|
| Tool cannot be created because credential and domain combination for an active record already exists. | This error occurs for OAuth authentication.
|
| Tool cannot be created due to a technical issue while creating the connection record. |
|
Tool cannot be created because of the following reasons:
|
This error occurs only for custom tool integrations.
|
| Tool cannot be created due to a connectivity issue. Check the <validate_subflow_name> subflow for more details, and try again. |
|
| Tool authorization credentials are invalid. Enter valid credentials, and try again. | Re-enter the correct username/password for the tool. |
| Tool cannot be created because there is no response received from the server. Enter a valid tool URL or Check if server is up and running, and try again. |
|
| The connection URL is incorrect, check the URL and try again. |
Re-enter the tool URL. |
| Tool cannot be connected because the GitHub app slug name is incorrect. Enter the correct GitHub app slug name and try again. | You can find the GitHub app slug name on the settings page of your GitHub app. The GitHub app slug name is the URL-friendly name of your GitHub app. For example, if you have created a GitHub app with the name Test App, the corresponding URL-friendly GitHub app slug name will be test-app. In your GitHub url - "https://github.com/settings/apps/test-app", "test-app" is the GitHub app slug name. For more information, see GitHub documentation. |
| Password value is too long and could be truncated after encryption. Please either reduce password length or increase field size. | From 18th January 2023, Jira has extended the length of API tokens for Atlassian accounts. You must increase the maximum password value to more than 255 in the discovery_credentials table to accommodate the extended character length. For more information, see the KB1269878 kb article and Atlassian documentation. |
| Unexpected behaviour from remote host: Circular redirect to 'https://bitbucket.org/account/signin/?next=%2F...%2Frest%2Fapi%2F1.0%2Fusers'. | This error might occur if you try to connect to a BitBucket Cloud instance. BitBucket Cloud is not supported. You must use a BitBucket Server instance to connect to ServiceNow DevOps. Connect to your BitBucket instance via an MID server. A MID server is required if your tool instance is hosted on-prem. For more information about MID server, see MID Server selection |
|
This error occurs when the Jenkins URL entered in DevOps is different from the Jenkins URL entered in your Jenkins instance. From your Jenkins instance, navigate to . The Jenkins URL entered here must match the URL of the Jenkins instance entered in DevOps. |
Tool permissions
This section lists the steps required to resolve tool permission errors when you create a DevOps tool using workspace playbooks. Tool permission check guidelines are displayed in a pop-up when you connect to a tool from the workspace.
- Action
If any permission is missing, perform the following steps:
- Update the permissions for the provided credentials in the external DevOps tool. Select Refresh in the pop-up to perform the checks again.
- Close the pop-up, use different credentials, and select Connect again. The permission check pop-up appears with results of the newly entered credentials.
- Review the impact column, and if the impact does not affect your use-case, select Continue anyway.
- Tool permission check timeout property
During the tool connection process, the system performs permission validations in the foreground, and restricts the tool connection page. For every permission validation, a REST API call is made to external tools to evaluate the availability of the permission. The REST API response time may vary based on your network settings. To avoid delays, you can specify how long the system should wait to get a response from an external tool before marking the permission as an error. You can specify this time using the Tool permission check timeout per record (in milliseconds) property (sn_devops.permission_check_timeout). If you find that some of the permission checks are resulting in an error, try increasing the timeout value, and select Refresh in the Permissions pop-up.
Tool notification
This table lists the steps required to resolve errors that might occur in scenarios such as retrieving commit details, pipeline execution details, pull request details, test summaries:
| Reason | Action |
|---|---|
| Authorization credentials are either invalid or do not have the minimum required permissions. |
|
| There is no response from the server. Check the server connection status, and try again. |
|
| Unable to process the request. | Verify if the maximum number of instances associated with a webhook has exceeded. If you encountered this error for GitHub, verify if you have associated more than 20 instances to a webhook. |
| Authorization credentials do not have the minimum required permissions. | Verify if your third-party tool credentials have the required scopes. If you are using the workspace UI, you can navigate to the tool record, and select to know about the required permissions. |
| MID server configuration is invalid. Configure a valid MID server, and try again. | Check if the mid server is running and reachable. |
| The connection URL is invalid. Enter a valid URL, and try again. |
|
| The rate limit has been exceeded. Retry after {0}. | Rate limit is the number of API calls an app or user can make within a given time period. Rate limiting is a technique to limit network traffic to help prevent users from exhausting system resources. If the max rate limit allowed in your third-party tool has exceeded, you might encounter this error. |
| Your credentials does not have the required scopes. | Verify if your third-party tool credentials have the required scopes. If you are using the workspace UI, you can navigate to the tool record, and select to know about the required permissions. |
Change request
This table lists the steps required to resolve errors that might occur during change request creation:
| Error | Action |
|---|---|
| Change request cannot be created because the type compatibility flag is disabled. Enable the type compatibility flag in system properties or configure the change model in the step record in ServiceNow or enter the appropriate change model sys id in the pipeline. |
|
| Change request cannot be created because either the change type or change model is not configured for the pipeline. | Add the change model or type in the Step form or change attributes of the pipeline. |
General errors
This table lists steps required to resolve few general errors that might occur while working with the DevOps Change Velocity application.
| Issue | Action |
|---|---|
| Import request not progressing | If an import request remains in the Requested state for too long while performing an import for a tool (such as Jenkins, Jira, or GitHub ), delete the import request and try again. Note: Delete the existing request to retry importing the same range. |
| Tool connection fails | Remove the trailing slash (‘/’) in the Connection URL field on the HTTP Connection form. |
| No change request is created for a Jenkins job under change control | Verify that:
Change request creation is not supported if the task is under change control:
|
| Jenkins does not block the job under change control (does not wait for change request approval) | Verify that the Jenkins location is configured: Navigate to and provide the hostname for the Jenkins URL field in the Jenkins Location section. Note: To avoid caching issues, click Save even if the Jenkins URL field already contains a value when you first
open the form. |
| Events occurring in the payload log with state Not Connected | If any of the following changes for a connection made manually (using manual configuration mode), the connection is automatically disconnected.
Enter manual configuration mode and reconnect. |
| Retry Inbound events that fail or error out due to REST API TimeoutException/FlowObjectAPIException | Update the Retry Errored Inbound Events scheduled job to retry processing inbound events that are in Error state.
|
Pipeline execution in ServiceNow DevOps does not move forward and waits indefinitely as the SonarQube scans do not take place due to the absence of SonarQube tool. The software quality inbound event displays the following error message in the processing details field. "Check if the respective SonarQube tool is created successfully. If not, create the SonarQube tool and retry the inbound event." |
For all SonarQube steps in code quality scans, the user must create SonarQube tool in the ServiceNow DevOps instance. For more information, see SonarQube integration with DevOps Change Velocity |
| Pipeline UI displays broken links between stages. | Navigate to Task Executions and ensure that the Upstream executions column has the appropriate upstream link references. |