Use Case 1

XRAY: Fresh installation prompts 503 errors

AuthorFullName__c
Joey Naor
articleNumber
000005226
ft:sourceType
Salesforce
FirstPublishedDate
2022-03-17T12:35:42Z
lastModifiedDate
2022-03-17
VersionNumber
6
The Artifactory instance to which Xray attempts to connect to is configured with a node IP (shared.node.ip) that is unreachable by the Xray machine/container.

When Xray first connects to Artifactory via the configured jfrogUrl, it will fetch Artifactory’s node IP address for further communication. Therefore, when Artifactory’s ‘shared.node.ip’ is set to an unreachable address, Xray will fail to communicate with Artifactory’s Router.

To overcome this issue, you will need to reconfigure the Artifactory system.yaml file with a node IP that is accessible by the Xray machine/container:
shared:
    node:
        ip: <artifactory-node-ip>
NOTE: If Artifactory is installed via Docker, you’ll need to use the host machine IP address, as the container IP address is internal by default and won’t be accessible from the outside.

To test if the Xray <> Artifactory Router connection can be established using the configured IP, try executing the following cURL command from the Xray machine/container:
$ curl ​​http://<artifactory-node-ip>:8082/access/api/v1/system/ping

After making the changes to Artifactory’s system.yaml file, restart both Artifactory and Xray to observe if the issue is resolved.