Adobe Experience Manager: Service Pack 21 installation stuck with org.apache.sling.installer.core error

Description description

The installation of AEM 6.5.21 may not proceed, depending on a particular bundle version, after the org.apache.sling.installer.core error message appears in the error.log.

Example:

01.12.2024 12:34:56.789 *ERROR* [ FelixDispatchQueue]  org.apache.sling.installer.factory.configuration FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.installer.factory.configuration [ 10] (R 10.1): missing requirement [ org.apache.sling.installer.factory.configuration [ 10] (R 10.1)]  osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api.tasks)(version>=1.5.0)(!(version>=2.0.0))) [ caused by: Unable to resolve org.apache.sling.installer.core [ 2] (R 2.1): missing requirement [ org.apache.sling.installer.core [ 2] (R 2.1)]  osgi.wiring.package; (&(osgi.wiring.package=org.osgi.util.converter)(version>=1.0.0)(!(version>=2.0.0)))]  Unresolved requirements: [ [ org.apache.sling.installer.factory.configuration [ 10] (R 10.1)]  osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api.tasks)(version>=1.5.0)(!(version>=2.0.0)))] )
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.installer.factory.configuration [ 10] (R 10.1): missing requirement [ org.apache.sling.installer.factory.configuration [ 10] (R 10.1)]  osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api.tasks)(version>=1.5.0)(!(version>=2.0.0))) [ caused by: Unable to resolve org.apache.sling.installer.core [ 2] (R 2.1): missing requirement [ org.apache.sling.installer.core [ 2] (R 2.1)]  osgi.wiring.package; (&(osgi.wiring.package=org.osgi.util.converter)(version>=1.0.0)(!(version>=2.0.0)))]  Unresolved requirements: [ [ org.apache.sling.installer.factory.configuration [ 10] (R 10.1)]  osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.installer.api.tasks)(version>=1.5.0)(!(version>=2.0.0)))]
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2281)
        at org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:5349)
        at org.apache.felix.framework.Felix.refreshPackages(Felix.java:4516)
        at org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:188)
        at java.base/java.lang.Thread.run(Thread.java:834)
01.12.2024 12:34:56.890 *INFO* [ FelixDispatchQueue]  org.apache.felix.framework FrameworkEvent PACKAGES REFRESHED

Environments

AEM 6.5

Resolution resolution

This issue can occur if the bundle org.apache.sling.installer.core 3.11.2 resides in the AEM instance before installation of AEM 6.5.21. Check if the bundle version is 3.11.2 and create a support case to obtain org.apache.sling.installer.core 3.9.0.B002, if applicable.

Once you have the lower version of the bundle, follow the steps below:

Step 1. Restore the AEM instance from a backup before AEM 6.5.21 installation

Step 2. Navigate to Web Console > OSGi > Bundles

Step 3. Click Install/Update then upload org.apache.sling.installer.core-3.9.0-B002.jar

Step 4. Restart the AEM

Step 5. Install AEM 6.5.21

The org.apache.sling.installer.core 3.11.2 is part of aem-service-pkg-6.5.13-GRANITE-41158-B0003, the fix for a workflow issue. Downgrading to 3.9.0-B002 does not re-introduce the workflow issue. The package of the fix contained the version 3.11.2 for another fix when it was built. However, the later service pack covers the same without org.apache.sling.installer.core 3.11.2.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f