ARTIFACTORY: How to solve the system import failure caused by proxy configuration during the 6.X to 7.X migration process

AuthorFullName__c
Yunzong Guo
articleNumber
000005963
FirstPublishedDate
2024-01-08T11:52:48Z
lastModifiedDate
2025-08-01

ARTIFACTORY: How to solve the system import failure caused by proxy configuration during the 6.X to 7.X migration process

Description

Artifactory supports System Import and Export, which is very useful when running Artifactory by migrating from an existing Artifactory instance. If you configured Proxy in an Artifactory, when you export from version 6.X and Import to 7.X, you may meet the following error message and can't import successfully.

2023-06-07 16:56:37,795 [2023-06-07T16:56:35.854+08:00|508c340517431765|/artifactory/api/artifactimport/system|http-nio-8081-exec-4] [ERROR] (o.a.s.ArtifactoryApplicationContext:760) - Failed system import
java.lang.IllegalArgumentException: Cannot import configuration: config descriptor contains old repositories configuration, please use the new repositories export format instead.
…


The root cause is that the proxy configuration in Artifactory 6.X is "<defaultProxy>" in the configuration file artifactory.config.xml, but Artifactory version 7.X uses "<platformDefault>".
 

Solution

Edit the "artifactory.config.xml" file in the exported backup directory, (For example: 20230614.151023/artifactory.config.xml) and change the configuration:

<defaultProxy>false</defaultProxy>

Change to:

<platformDefault>false</platformDefault>

Then execute system Import again.