ARTIFACTORY: How to solve the problem of "failed decrypting secret registration token for entitlements config" warnings after system import
Artifactory support system Import and Export, which is very useful when running Artifactory backup, migrating, and restoring a complete Artifactory instance. After the system import in some versions of 7.X, the Artifactory logs will continue to output some warning messages:
2023-01-05T09:40:08.630Z [jfcon] [WARN ] [5fb3589ce498d5bc] [entitlements_service.go:201 ] [main ] - Synced action 'register' - failed checking execution requirement: failed decrypting secret registration token for entitlements config: key-id does not match; provided: 'c2ed2f', used: '05ebdd' failed decrypting entitlements service config
At present, this does not affect the use of Artifactory, but it brings trouble to our normal log viewing.
How to remove these warning messages?
We can execute the following SQL in Artifactory’s database:
In the table access_platform_config, query the row starting with "jfconnect.entitlements" in the column config_key:
select * from access_platform_config where config_key like 'jfconnect.entitlements%'\G;
Response, such as:
*************************** 1. row *************************** config_key: jfconnect.entitlements revision: 1 created: 1675604235770 modified: 1675604235770 ... *************************** 2. row *************************** config_key: jfconnect.entitlements.config revision: 5 created: 1675604201581 modified: 1675604235801 ... *************************** 3. row *************************** config_key: jfconnect.entitlements.register revision: 2 created: 1675604201504 modified: 1675604201857 ...
To delete:
delete from access_platform_config where config_key like 'jfconnect.entitlements%';
Then restart Artifactory.