Initial Troubleshooting

Xray can connect to Artifactory, but Artifactory cannot connect to Xray

AuthorFullName__c
Patrick Russell
articleNumber
000004538
ft:sourceType
Salesforce
FirstPublishedDate
2019-09-05T01:31:47Z
lastModifiedDate
2021-04-23
VersionNumber
7
The Xray Quick Start Guide’s troubleshooting section addresses how to perform two cURL command tests to identify the correct URLs for Artifactory and Xray. Once obtained, these URLs can be inserted into Xray's setup menu:
 
Xray host -> Artifactory Connection Test
Error usually reads: "Xray cannot connect to Artifactory"
#Perform from the Xray host
curl -v http://artifactory.com:8081/artifactory/api/system/ping
Expected response from Artifactory:
OK

In the Xray Onboarding Wizard, update the Artifactory URL using the one that’s returned to you after executing the cURL command above:
Artifactory host -> Xray Connection Test
Error usually reads: "Xray can reach Artifactory but Artifactory cannot reach Xray"

#Perform from the Artifactory host
curl -v http://xray.com:8000/api/v1/system/ping

Expected response from Xray:
{"status":"pong"}

These cURL commands should help diagnose most Xray <> Artifactory connection issues. Update your Xray Base URL with the URL that passes the above test. One way to do this is by choosing the Back button in your Xray Onboarding Wizard to return to that menu item. Alternatively, in Xray, navigate to Admin > Advanced > General. However, there are additional parameters that may come into play if you are operating within more specialized environments, these are explained further below.