Introduction
In certain edge cases, Artifactory may fail to start due to synchronization issues with non-existent federated members.
Resolution
Currently, there is no global API available to pause the synchronization of federated repositories or to remove federated member repositories.
If the target federated member nodes are unavailable and you need to remove all federated member configurations at once, you can use the following efficient method:
Instead of individually removing each member node via the UI—which can be tedious if you have a large number of federated member repositories (e.g., 1000 or more)—follow these steps:
- Copy the artifactory.repository.config.latest.json file to artifactory.repository.config.import.json.
- Use the jq utility to remove the federatedMembers entries. Run the following command:
jq '.federatedRepoConfigs[].repoTypeConfig |= del(.federatedMembers)' artifactory.repository.config.import.json > artifactory.repository.config.import.json - Finally, restart Artifactory for the changes to take effect.