In Devops velocity module, getting bad response from the change control callback

Sathwik1
Tera Guru
In Devops velocity module, getting bad response from the change control callback



Error as 

{"errorMessage":"Failed to get connection info from the alias"}
but in backend all connections are good.

@Ankur Bawiskar @Tanushree Maiti  

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @Sathwik1 ,

 

 

Refer Servicenow Documentation: Common errors in DevOps Change Velocity 

and validate your connection once (highlighted by blue).

 

Tool cannot be created because the associated CreateDevOps tool connection is invalid. Create a valid connection alias, and try again.
  1. Navigate to All > Connections & Credentials > Connection & Credential Aliases and open the CreateDevOpsTool record.
  2. In the Connections related list, create a record and enter a name for the connection.
  3. On the Connection form, select the Credential field lookup list, and then select New to create an admin credential.
  4. Select Basic Auth Credentials and enter a name.
  5. Enter admin username and password (required to access the tools in your DevOps environment).

    A user with connection_admin role can configure an HTTP connection.

  6. On the Connection form, enter https://<instance name>.service-now.com/ for the Connection URL.
Tool cannot be created because the CreateDevOpsTool alias credentials are incorrect. Update the credential record, and try again.
  1. Select the credential record link in the message. If you are connecting to the tool from the workspace UI, right-click on the credentials record link, and select Open in a new tab.
  2. In the credentials record page, enter the correct credentials in the Username and Password fields.
  3. Save the changes, and retry connecting to the tool.
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.
  1. Navigate to All > Connections & Credentials > Connection & Credential Aliases and open the CreateDevOpsTool record.
  2. On the Connection form, enter https://<instance name>.service-now.com/ for the Connection URL.
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.
  1. If you are using the workspace, check if the mid server is running and reachable.
  2. If you are using the catalog and record producer, check if the mid server is running and reachable with application as DevOps and Capability as REST.
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.

  1. Navigate to All > Connections & Credentials > Connection & Credential Aliases.
  2. Create a new alias with the application as DevOps Data Model.
Tool cannot be created due to a technical issue while creating the credential record.
  1. Navigate to All > Process Automation > Flow Designer > Executions.
  2. Check for the latest execution of the sn_devops.devops_create_credentials subflow to know the details of the error.
Tool cannot be created because credential and domain combination for an active record already exists.

This error occurs for OAuth authentication.

  1. Use a different credential.
  2. Check if the existing credential is used by any active connection.
Tool cannot be created due to a technical issue while creating the connection record.
  1. Navigate to All > Process Automation > Flow Designer > Executions.
  2. Check for the latest execution of sn_devops.create_connection_for_tool action to know the details of the error.
Tool cannot be created because of the following reasons:
  • The validate subflow is not configured, and
  • An integration capability record with the same subflow name does not exist for the associated tool integration.
Configure the subflow, and create the integration capability record with the Validate action and a subflow name for the tool integration, and try again.

This error occurs only for custom tool integrations.

  1. Navigate to All > Process Automation > Flow Designer.
  2. In the Flow Designer page, select the Subflows tab.
  3. Open the DevOps Demo Validate Subflow record from the list.
  4. From the Actions section, open the DevOps Demo Validate Action record by selecting the Open action in Action Designer (

     

    ) icon.
  5. Select More Actions menu > Copy Action.TanushreeMaiti_1-1795193936097.png

     

  6. Enter a new name for the action and select the application as DevOps Integrations, and select Copy.
  7. In the copied action, select Inputs > REST step.
  8. In the Request Details section, enter resource path of your custom tool in the Resource Path field.TanushreeMaiti_2-1795193936039.png

     

  9. Enter the API version of your custom tool in the Query Parameters field.
  10. Save the changes.
  11. Publish the action by selecting Publish.
  12. Navigate back to the DevOps Demo Validate Subflow record.
  13. Select More Actions menu > Copy Subflow.
  14. Enter a new name for the subflow and select the application as DevOps Integrations, and select Copy.
  15. In the copied subflow, delete the DevOps Demo Validate Action action and add the action you created in step 11.

     
     

     

    1. In the Action field, select the action you created in step 11.
    2. In the aliasGR field, select the Connection & Credential Alias record from the Data > Lookup records section.
    3. In the apiversion field, select the api version from the Data > Subflow Inputs section.
    4. Save the changes.
  16. Publish the subflow by selecting Publish.
  17. Navigate to DevOps > Integrations > Integration Capabilities and create a record with the Validate action.

    For more information, see Create a DevOps tool integration.


     
     

     

  18. Associate the subflow you created in step 16 with the integration capability record.
Tool cannot be created due to a connectivity issue. Check the <validate_subflow_name> subflow for more details, and try again.
  1. Navigate to All > Process Automation > Flow Designer > Executions.
  2. Check for the latest execution of <validate_subflow_name> subflow to know the details of the error.
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.
  1. Re-enter the tool URL.
  2. Check the mid server.
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
Mismatch in tool URL: Tool URL entered in ServiceNow: https://<URL of the Jenkins instance you entered> Tool URL entered in Jenkins: https://<Jenkins location URL entered in Jenkins> In Jenkins, under Manage Jenkins > System, check that your configured Jenkins URL is the same as the Tool URL entered here. See the troubleshooting tool on-boarding errors.

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 Manage Jenkins > System > Jenkins Location. The Jenkins URL entered here must match the URL of the Jenkins instance entered in DevOps.