When performing a system import/export for Artifactory, the following error can occur:
[http-nio-8081-exec-8] - Failed system import: Could not merge and save new descriptor [org.jfrog.common.ExecutionFailed: Last retry failed: Failed to reload configuration: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.. Not trying again]
The reason for this error is that the data is encrypted during the export and the target Artifactory is unable to properly perform the import.
The encryption must be disabled on the source instance. Therefore please follow these steps in order to perform the import/export:
- Deactivate the encryption on the source instance
- Export the Artifactory instance
- Perform the import on the new instance
- Reenable encryption on the source instance
Additionally, if using an external DB instance, please connect the target to an empty DB before performing the import.