The jfrogUrl configured in Xray’s system.yaml is unreachable or is not using the correct port.
To further investigate this issue, head over to Xray’s router-service.log log file to find out the exact error that Xray’s Router produces when attempting to connect to Artifactory.
For example, when not using the correct external Artifactory Router port, the following error will be generated in router-service.log:
To address this issue, use a jfrogUrl address that is fully accessible and performs the correct redirection when accessed from the Xray machine/container. This can be tested using the following cURL command executed from the Xray machine/container:
To further investigate this issue, head over to Xray’s router-service.log log file to find out the exact error that Xray’s Router produces when attempting to connect to Artifactory.
For example, when not using the correct external Artifactory Router port, the following error will be generated in router-service.log:
[jfrou] [INFO ] [40af7be23267477e] [join_executor.go:165 ] [main ] - Cluster join: Retry 5: Service registry ping failed, will retry. Error: Get "http://artifactory.address/access/api/v1/system/ping": context deadline exceeded
To address this issue, use a jfrogUrl address that is fully accessible and performs the correct redirection when accessed from the Xray machine/container. This can be tested using the following cURL command executed from the Xray machine/container:
$ curl http://<jfrogUrl>/access/api/v1/system/ping