Method 2

XRAY: Unable to save Xray settings

AuthorFullName__c
Shweta Badiger, Reut Cohen
articleNumber
000006065
FirstPublishedDate
2024-04-01T08:33:03Z
lastModifiedDate
2025-07-22
VersionNumber
17

We may also make these changes in the artifactory.config.latest.xml file from the backend of the Artifactory server. To achieve the same please follow the below steps:

1. In the Artifactory instance via terminal navigate to  $JFROG_HOME/var/etc/artifactory/and open
    the artifactory.config.latest.xml file.
2. Take a backup of this file before you make the changes for the safer side.
3. Edit the file, search the line for </addon>, and add the below lines to the config descriptor.

<xrayConfig>
        <enabled>true</enabled>
        <baseUrl>http://localhost:8046/xray/</baseUrl>
        <user></user>
        <password></password>
        <artifactoryId>default</artifactoryId>
        <xrayId></xrayId>
        <allowOperationsXrayUnavailable>true</allowOperationsXrayUnavailable>
        <allowBlockedArtifactsDownload>false</allowBlockedArtifactsDownload>
        <blockUnscannedTimeoutSeconds>60</blockUnscannedTimeoutSeconds>
    </xrayConfig>


4. Rename the file $JFROG_HOME/var/etc/artifactory/artifactory.config.latest.xml to   
    $JFROG_HOME/var/etc/artifactory/artifactory.config.import.xml
5. Restart Artifactory (for high availability setup a rolling restart is required).
6. Try saving the Xray settings again, we should be able to enable Xray now.