ARTIFACTORY: How to overcome the errors that occur while replicating a build info repository

ARTIFACTORY: How to overcome the errors that occur while replicating a build info repository

AuthorFullName__c
Vaibhav Jain
articleNumber
000005928
ft:sourceType
Salesforce
FirstPublishedDate
2023-12-20T15:08:46Z
lastModifiedDate
2023-12-04
VersionNumber
1

This Knowledge Base article focuses on addressing errors that may arise during the replication of a build information repository from one Artifactory Server to another. It is strongly advised to ensure that both the Source and Target servers are on the same version before proceeding to prevent potential issues.

The encountered errors can be categorized into two types: those related to statistics and those related to properties.

For properties, a notable log entry in the support bundle might appear as follows:

2023-11-18T07:09:30.832Z [jfrt ] [ERROR] [e525ab88056ba] [o.a.a.c.BasicStatusHolder:209 ] [umer-1701130800049-0] - Error while replicating properties for item 'artifactory-build-info:test-build1/test.58.json on Url:https://<ART-URL>/artifactory/artifactory-build-info': ; [415]
Meanwhile, for statistics, a corresponding log entry could be observed in the logs:
2023-11-18T07:09:30.832Z [jfrt ] [ERROR] [e525ab88056ba] [o.a.a.c.BasicStatusHolder:209 ] [umer-1701130800049-0] - Error while replicating properties for item 'artifactory-build-info:test-build1/test.58.json on Url:https://<ART-URL>/artifactory/artifactory-build-info': ; [415]

Given that this is a build info replication, it is important to note that maintaining enabled synchronization for both properties and statistics is not mandatory. The rationale behind this recommendation lies in the distinct roles these features play. Enabling synchronization for properties assists in aligning the properties of replicated artifacts, while activating synchronization for statistics tracks download statistics for these artifacts. However, for the replication of build information, these functionalities may not be directly relevant.

Hence, both properties and statistics exclusively serve the purpose of artifact replication within a repository and are not essential for the replication of build information. To effectively address the observed errors, it is recommended to disable the synchronization of properties and statistics.

For further details on Replication, refer to the following articles: