UMI umi
Upgrade Misconfiguration Issue
Background background
UMI Identifies modifications to certain OSGi configurations that cause issues when upgrading, including a failed upgrade or reduced functionality.
The following configurations are checked for modification:
org.apache.jackrabbit.oak.security.user.RandomAuthorizableNodeNameorg.apache.jackrabbit.oak.security.internal.SecurityProviderRegistration.requiredServicePidsorg.apache.sling.engine.impl.auth.SlingAuthenticatororg.apache.sling.scripting.java.impl.JavaScriptEngineFactorycom.day.cq.commons.impl.ExternalizerImplorg.apache.sling.commons.log.LogManager.factory.config: Identify whether theorg.apache.sling.commons.log.fileproperty of the custom loggers is pointing to something other thanlogs/error.logfile.
Possible implications and risks implications-and-risks
-
Changing or removing configurations may cause the following issues:
- Upgrade may get stuck (for example
org.apache.jackrabbit.oak.security.user.RandomAuthorizableNodeNamewas missing but present inorg.apache.jackrabbit.oak.security.internal.SecurityProviderRegistration.requiredServicePids). - Authorization issues may come after upgrade (
org.apache.sling.engine.impl.auth.SlingAuthenticator). - Certain functionality may not work as expected. For example changing
org.apache.sling.scripting.java.impl.JavaScriptEngineFactorymay result in some JSP files not being compiled, which ultimately results in loss of functionality. - The values of the Externalizer config
com.day.cq.commons.impl.ExternalizerImplare set with cloud manager environment variables in AEM as a Cloud Service. - AEM as a Cloud Services does not support custom log files. Logs written to custom-named logs are not accessible from AEM as a Cloud Service.
- Upgrade may get stuck (for example
Possible solutions solutions
- Do not change or remove the four configurations mentioned above.
- If there is the following violation:
“Required properties for the OSGi configurationxyz-configurationare missing: ‘[property-1,property-2…]’.”
Confirm if these deletions are legitimate or not because these OSGI configurations are OOTB and might have never been modified/saved from the OSGi Config Manager.
- If there is the following violation:
- If configurations have been changed, they should be restored to their expected values. These values are indicated in the
UMImessages. - For
com.day.cq.commons.impl.ExternalizerImpl, see documentation for setting Externalizer config using cloud manager environment variables in AEM as a Cloud Service. - For
org.apache.sling.commons.log.LogManager.factory.config, Change the OSGI configuration to send the customized logger to thelogs/error.logfile. See documentation for repointing to thelogs/error.logfile. - Contact the AEM Support Team for clarifications or to have concerns addressed.
recommendation-more-help
c50d24a5-718e-4110-a484-b335e8a63206