將AEM 6.4.2+升級至AEM 6.5時發生錯誤

將AEM 6.4.2版本升級至AEM 6.5時發生錯誤,請停止執行個體,並依照本文提供的指示操作。

說明 description

環境

  • Experience Manager 6.4
  • Experience Manager 6.5

問題/症狀

將Adobe Experience Manager (AEM)從6.4.2版(及更高版本)升級至6.5且此執行個體先前是從AEM 6.1或AEM 6.2升級時,升級可能會失敗,並出現遺漏需求錯誤。

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)

或此錯誤:

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)

解決方法 resolution

請遵循以下指定步驟以避免錯誤:

  1. 升級至6.5之後(或執行最終升級命令之前),請停止執行個體。

  2. 此commons-io jar下載到伺服器,並將其放在crx-quickstart/install之下

  3. 使用以下命令重新啟動執行個體:

    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. 檢查/system/console/bundles,在所有套件組合都處於作用中狀態且系統已完全升級後,再次停止執行個體。

  5. 透過以下命令重新啟動執行個體:

    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. 升級應該會成功完成。

其他資訊

此問題會在您升級先前是從AEM 6.1或AEM 6.2升級的AEM 6.4.2+執行個體時發生

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