Erreur lors de la mise à niveau AEM 6.4.2+ vers AEM 6.5

Lorsque vous obtenez une erreur lors de la mise à niveau de AEM version 6.4.2 vers AEM 6.5, arrêtez l’instance et suivez les instructions fournies dans cet article.

Description description

Environnement

  • Experience Manager 6.4
  • Experience Manager 6.5

Problème/Symptômes

Lors de la mise à niveau de Adobe Experience Manager (AEM) de la version 6.4.2 (et versions ultérieures) vers la version 6.5 et que cette instance a été précédemment mise à niveau depuis AEM 6.1 ou la version 6.2, la mise à niveau peut échouer avec une erreur de configuration manquante,

04.12.2019 15:14:33.439 *ERROR* [ FelixStartLevel] ERROR: Bundle '827' Error starting/stopping bundle. (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.scripting.javascript [ 827] (R 827.0): missing requirement [ org.apache.sling.scripting.javascript [ 827] (R 827.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.jcr)(version>=2.0.0)) Unresolved requirements: [ [ org.apache.sling.scripting.javascript [ 827] (R 827.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.jcr)(version>=2.0.0))] ) org.osgi.framework.BundleException: Unable to resolve org.apache.sling.scripting.javascript [ 827] (R 827.0): missing requirement [ org.apache.sling.scripting.javascript [ 827] (R 827.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.jcr)(version>=2.0.0)) Unresolved requirements: [ [ org.apache.sling.scripting.javascript [ 827] (R 827.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.jcr)(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.setBundleStartLevel(Felix.java:1727) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:338) at java.lang.Thread.run(Unknown Source) 04.12.2019 15:14:33.440 *ERROR* [ FelixStartLevel] ERROR: Bundle '828' Error starting/stopping bundle. (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.scripting.jst [ 828] (R 828.0): missing requirement [ org.apache.sling.scripting.jst [ 828] (R 828.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.jcr)(version>=1.0.0)(!(version>=3.0.0))) Unresolved requirements: [ [ org.apache.sling.scripting.jst [ 828] (R 828.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.jcr)(version>=1.0.0)(!(version>=3.0.0)))] ) org.osgi.framework.BundleException: Unable to resolve org.apache.sling.scripting.jst [ 828] (R 828.0): missing requirement [ org.apache.sling.scripting.jst [ 828] (R 828.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.jcr)(version>=1.0.0)(!(version>=3.0.0))) Unresolved requirements: [ [ org.apache.sling.scripting.jst [ 828] (R 828.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.jcr)(version>=1.0.0)(!(version>=3.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.setBundleStartLevel(Felix.java:1727) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:338) at java.lang.Thread.run(Unknown Source)

Ou cette erreur :

11.12.2019 10:26:32.102 *ERROR* [ FelixDispatchQueue] com.adobe.granite.crypto FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve com.adobe.granite.crypto [ 158] (R 158.3): missing requirement [ com.adobe.granite.crypto [ 158] (R 158.3)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.io)(version>=2.0.1)(!(version>=3.0.0))) Unresolved requirements: [ [ com.adobe.granite.crypto [ 158] (R 158.3)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.io)(version>=2.0.1)(!(version>=3.0.0)))] ) org.osgi.framework.BundleException: Unable to resolve com.adobe.granite.crypto [ 158] (R 158.3): missing requirement [ com.adobe.granite.crypto [ 158] (R 158.3)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.io)(version>=2.0.1)(!(version>=3.0.0))) Unresolved requirements: [ [ com.adobe.granite.crypto [ 158] (R 158.3)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.io)(version>=2.0.1)(!(version>=3.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.lang.Thread.run(Thread.java:748)

Résolution resolution

Pour éviter toute erreur, procédez comme suit :

  1. Après la mise à niveau vers la version 6.5 (ou avant d’exécuter la commande de mise à niveau finale), arrêtez l’instance.

  2. Téléchargez ce fichier Jar commons-io sur le serveur et placez-le sous crx-quickstart/install

  3. Redémarrez l’instance à l’aide de la commande suivante :

    java -server -Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true -Dsling.run.modes=author,crx3,crx3tar -jar cq-quickstart-6.5.0.jar  -p 4502 -Dsling.properties=conf/sling.properties -Dorg.apache.sling.launchpad.startupmode=UPDATE &

  4. Vérifiez /system/console/bundles, une fois que tous les lots sont à l’état actif et que le système est entièrement mis à niveau, puis arrêtez à nouveau l’instance.

  5. Redémarrez l’instance via la commande suivante :

    java -server -Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true -Dsling.run.modes=author,crx3,crx3tar -jar cq-quickstart-6.5.0.jar -p 4502 -Dsling.properties=conf/sling.properties &

  6. La mise à niveau doit se terminer avec succès.

Informations supplémentaires

Ce problème se produit lorsque vous mettez à niveau une instance AEM 6.4.2+ qui a été mise à niveau antérieurement à partir d’AEM 6.1 ou d’une version 6.2.

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