jfrog-cli icon indicating copy to clipboard operation
jfrog-cli copied to clipboard

Issue with Configuration Transfer using JFrog CLI tool when the repositories are created using "Quick Repository Creation" Option

Open reddappajfrog opened this issue 1 year ago • 0 comments

Describe the bug

When we use "quick repository creation" option to create a local, remote and virtual repositories (of any repository type), during the configuration migration process we are observing the error as :

Command used: jf rt transfer-config source-server target-server

Cannot set repository reference 'help-alpine-local' as the default deployment repository for virtual repository 'help-alpine' since it is not included in the repository references

The above error is despite having the local repository being included under the virtual repository.

Note: If the local and virtual are created separately, then we are not seeing the above error.

Workaround: When we disassociate the local repository from the virtual and again add it under the same virtual, the issue is resolved.

when we checked the virtual repository configurations using the REST API we found that the local is associated with the corresponding virtual created using the quick repository creation.

Artifactory and CLI Versions where the issue is reproduced:

CLI Version: 2.73.2
Artifactory Version: 7.98.14
CLI Version: 2.45.0
Artifactory Version: 7.10.6

Current behavior

When configuration transfer is performed from on-premise instance to Saas instance using JFrog CLI we are encountering the error as shown in the below screenshot:

Image

Reproduction steps

  1. Created a local, remote and virtual repositories (of any type) using quick repository creation.
  2. Configured the on-premise instance and the Saas instance with JFrog CLI for configuration transfer.
  3. Ran the jf rt transfer-config source-server target-server
  4. The error as described occurred during the phase 5/5 - Import repositories to the target Artifactory

Expected behavior

Configurations of the repositories should be successfully migrated when we use the jf rt transfer-config source-server target-server even when the repositories are created usig quick repository creation.

JFrog CLI version

2.73.2

Operating system type and version

Debian 4.19.316-1

JFrog Artifactory version

7.98.14

JFrog Xray version

NA

reddappajfrog avatar Jan 29 '25 14:01 reddappajfrog