ARTIFACTORY: How to resolve "Application could not be initialized: The current Artifactory config schema namespace is"

ARTIFACTORY: How to resolve "Application could not be initialized: The current Artifactory config schema namespace is"

AuthorFullName__c
Johnson Nguyen
articleNumber
000006104
ft:sourceType
Salesforce
FirstPublishedDate
2024-05-23T11:42:11Z
lastModifiedDate
2024-05-23
VersionNumber
2

The application could not be initialized: The current Artifactory config schema namespace is 'http://artifactory.jfrog.org/xsd/num.num.num' The provided config does not seem to be compliant with it.
The auto discovery of Artifactory configuration version did not find any valid version for the artifactory.config.xml file.
Please fix this file manually!

The error above pops up because the config inside the Artifactory Config descriptor differs from the one in the DB. 

We can check what version is inside the DB via this DB Query. The following is an PSQL query

SELECT encode(data::bytea, 'escape') FROM configs where config_name='artifactory.config.xml';


**WARNING**  IF THERE WAS A REVERTING ACTION THAT HAPPENED BECAUSE  OF A FAILED ARTIFACTORY UPGRADE PLEASE REVERT THE DB AS WELL. 

DURING THE UPGRADE THE DB SCHEMA WILL UPGRADE AS WELL. IF THE DB IS NOT ROLLED BACK THE CHANGES WILL NOT ADHERE   **/WARNING**