Resolution

GENERAL: What does ‘system.yaml validation failed’ mean and how to resolve it

AuthorFullName__c
Noa Shechter
articleNumber
000006059
ft:sourceType
Salesforce
FirstPublishedDate
2024-03-21T06:26:42Z
lastModifiedDate
2024-03-21
VersionNumber
2
This error is because we have a mismatch between what is in your system.yaml and the acceptable options specified in the system.full-template.yaml.

To resolve the error we need to make sure the keys we use in the system.yaml are correctly spaced and spelt, and appear in the correct hierarchy. Yaml files are space sensitive.

You can also manually run the following commands to see this output and validate your system.yaml:
$JFROG_HOME/<JFrog_Product>/app/bin/diagnostics/diagnosticsUtil validate yaml$JFROG_HOME/<JFrog_Product>/var/etc/system.yaml $JFROG_HOME/<JFrog_Product>/var/etc/system.full-template.yaml --uncomment-before-parse
E.g for Artifactory the command will be:
$JFROG_HOME/artifactory/app/bin/diagnostics/diagnosticsUtil validate yaml $JFROG_HOME/artifactory/var/etc/system.yaml $JFROG_HOME/artifactory/var/etc/system.full-template.yaml --uncomment-before-parse
In case that the system.yaml configuration is valid, we will get the following output from the command:
yaml validation succeeded

Please also note: This validation is just an extra check and even invalid entries while failing this check do not prevent the JFrog Product from starting. But it can be a good way of knowing that you have misplaced a key in the yaml file.