Expand my Community achievements bar.

We retail content appears after AEM update from 6.1SP1 into AEM 6.3SP1

Avatar

Level 4

Hi All,

During migration from AEM 6.1SP into AEM 6.3 we.ratail content appears.

Before an update we had nosamplecontent runmode.

Someone faced such issue?

Thank you in advance.

11 Replies

Avatar

Level 10

TO remove it - simply remove the Package from Package Manager.

Avatar

Level 2

Hi,

Our environments have been upgraded from 6.1 to 6.3. The run mode was samplecontent when it was upgraded. later, we changed the runmode to nosamplecontent and the we.retail and geometrixx stuff wont go away.

I also tried to uninstall we.retail.all package but that doesnt take away the we.retail stuff.

Could someone help me by guiding me what packages need to be uninstalled ?

Thanks,

Srujana

Avatar

Administrator

Never heard of this issue. Can you restart the instance with nosamplecontent mode.

Also, you can remove the package as mentioned.



Kautuk Sahni

Avatar

Level 3

What happens in case of an in place upgrade process? One of our clients did perform in place upgrade recnently on AEM 6.1 to upgrade to AEM 6.3. After the upgrade was done, infra team from customer side realized the nosamplecontent runmode is missing in sling properties. As per the documentation, the primary runmodes can't be added or changed once the installation process is complete.

I am wondering if there is any clear and complete documentation around the number of changes that we may need perform manually which otherwise nosamplecontent runmode would have automatically taken care of some of the AEM 6.3 security checklist items.

Avatar

Employee

Use the argument to promote the runmode and things should work well. See sample (1)

nohup sudo -u crx  java -Xmx24G  -jar cq-publish-4503.jar -v -x crx2oak -xargs -- --load-profile segment-fds --promote-runmode nosamplecontent

Avatar

Level 3

Thanks Kunwar. I believe this command is run to initiate the in place upgrade process. What if we need to add nosamplecontent runmode after finishing the upgrade process and server is up and running. To my knowledge it should be the same behavior as fresh install, which is not possible. Please correct me if I am wrong. And also if possible point me to any documentation related to adjusting the configurations of AEM to meet nosamplecontent behavior.

Avatar

Employee

Runmodes once set cant be changed. Modes like author, samplecontent once set while starting a new instance can’t be changed.

you can add nosamplecontent mode once the instance has already been started. You’ll have uninstall we.retail pckages to get rid of it

Avatar

Employee

Can’t add*

Note: mobile version of forums don’t allow me to edit for some reason

Avatar

Level 3

Yes, that was my understand as well. Thanks for your time.

I would still look forward to hear on the detailed steps to achieve nosamplecontent runmode behavior on the server which got installed without nosamplecontent runmode. 

Avatar

Level 2

Hi Kunwar,

I am also having this problem, during upgrade from 5.6 to 6.3 the we.retail site was installed because previous instance was not running on nosamplecontent run mode.

I did try following your advice to add the "--promote-runmode nosamplecontent" .

java -Xmx4096m -jar cq-quickstart-6.3.0.jar -v -x crx2oak -xargs -- --load-profile segment-fds --promote-runmode nosamplecontent

The content migration successfully completed. Refer to below upgrade.log

21.05.2018 16:36:10.078 *INFO*  [com.adobe.granite.crx2oak.engine.MigrationEngine] MigrationEngine.java:93  Finished migration in 190 seconds.

21.05.2018 16:36:10.079 *INFO*  [com.adobe.granite.crx2oak.sling.OsgiConfigurationsInstaller] OsgiConfigurationsInstaller.java:161  Scheduling OSGi configuration to install for next AEM run: org.apache.jackrabbit.oak.segment.SegmentNodeStoreService.cfg

21.05.2018 16:36:10.116 *INFO*  [com.adobe.granite.crx2oak.sling.OsgiConfigurationsInstaller] OsgiConfigurationsInstaller.java:161  Scheduling OSGi configuration to install for next AEM run: org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.cfg

21.05.2018 16:36:10.399 *INFO*  [com.adobe.granite.crx2oak.sling.SlingOptionsFileDeletionDelegator] SlingOptionsFileDeletionDelegator.java:94  Renaming D:\temp5\publish_20180514_1800\crx-quickstart\launchpad\felix\bundle10\data\sling.options.file to D:\temp5\publish_20180514_1800\crx-quickstart\launchpad\felix\bundle10\data\sling.options.file.SAVED-20180521-163610.

21.05.2018 16:36:10.402 *INFO*  [com.adobe.granite.crx2oak.sling.RunModesRewriter] RunModesRewriter.java:198  Writing AEM run modes to: D:\temp5\publish_20180514_1800\crx-quickstart\launchpad\felix\bundle10\data\sling.options.file

21.05.2018 16:36:10.418 *INFO*  [com.adobe.granite.crx2oak.engine.MigrationRunner] MigrationRunner.java:76  migration completed

However when i try to do the actual migration I am facing unusual issue where in it seems the upgrade is not going forward. The instance just hang and not usable even after few hours.

In the error log it says:

21.05.2018 16:48:20.359 *INFO* [FelixDispatchQueue] org.apache.sling.bundleresource.impl Service [Provider of bundle based resources,1212, [org.apache.sling.api.resource.ResourceProvider]] ServiceEvent REGISTERED

21.05.2018 16:48:20.392 *INFO* [FelixStartLevel] org.apache.sling.scripting.sightly.models.provider Service [org.apache.sling.scripting.sightly.models.impl.SlingModelsUseProvider,1214, [org.apache.sling.scripting.sightly.use.UseProvider]] ServiceEvent REGISTERED

21.05.2018 16:48:20.393 *INFO* [FelixStartLevel] org.apache.sling.scripting.sightly.models.provider BundleEvent STARTED

21.05.2018 16:48:20.393 *ERROR* [FelixDispatchQueue] org.apache.sling.tracer FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.tracer [591](R 591.0): missing requirement [org.apache.sling.tracer [591](R 591.0)] osgi.wiring.package; (&(osgi.wiring.package=com.google.common.base)(version>=15.0.0)(!(version>=16.0.0))) Unresolved requirements: [[org.apache.sling.tracer [591](R 591.0)] osgi.wiring.package; (&(osgi.wiring.package=com.google.common.base)(version>=15.0.0)(!(version>=16.0.0)))])

org.osgi.framework.BundleException: Unable to resolve org.apache.sling.tracer [591](R 591.0): missing requirement [org.apache.sling.tracer [591](R 591.0)] osgi.wiring.package; (&(osgi.wiring.package=com.google.common.base)(version>=15.0.0)(!(version>=16.0.0))) Unresolved requirements: [[org.apache.sling.tracer [591](R 591.0)] osgi.wiring.package; (&(osgi.wiring.package=com.google.common.base)(version>=15.0.0)(!(version>=16.0.0)))]

at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4112)

at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)

at java.lang.Thread.run(Unknown Source)

21.05.2018 16:48:20.455 *INFO* [FelixStartLevel] PDFServices_security BundleEvent RESOLVED

21.05.2018 16:48:20.455 *INFO* [FelixStartLevel] xtg BundleEvent RESOLVED

21.05.2018 16:48:20.457 *INFO* [FelixStartLevel] PDFServices_security BundleEvent STARTING

21.05.2018 16:48:20.457 *INFO* [FelixStartLevel] PDFServices_security BundleEvent STARTED

21.05.2018 16:48:20.568 *INFO* [FelixStartLevel] com.adobe.reef.siren.core BundleEvent RESOLVED

21.05.2018 16:48:20.569 *INFO* [FelixStartLevel] com.adobe.reef.siren.core BundleEvent STARTING

21.05.2018 16:48:20.569 *INFO* [FelixStartLevel] com.adobe.reef.siren.core BundleEvent STARTED

21.05.2018 16:48:20.569 *INFO* [FelixStartLevel] xtg BundleEvent STARTING

21.05.2018 16:48:20.569 *INFO* [FelixStartLevel] xtg BundleEvent STARTED

21.05.2018 16:48:20.570 *INFO* [FelixDispatchQueue] org.apache.felix.framework FrameworkEvent STARTLEVEL CHANGED to 20

21.05.2018 16:48:20.621 *INFO* [FelixDispatchQueue] org.apache.felix.framework FrameworkEvent STARTLEVEL CHANGED to 21

21.05.2018 16:48:22.622 *INFO* [FelixDispatchQueue] org.apache.felix.framework FrameworkEvent STARTLEVEL CHANGED to 22

21.05.2018 16:48:24.624 *ERROR* [FelixDispatchQueue] com.day.cq.cq-compat-codeupgrade FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve com.day.cq.cq-compat-codeupgrade [158](R 158.1): missing requirement [com.day.cq.cq-compat-codeupgrade [158](R 158.1)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.commons)(version>=2.4.0)(!(version>=3.0.0))) [caused by: Unable to resolve org.apache.jackrabbit.jackrabbit-jcr-commons [71](R 71.1): missing requirement [org.apache.jackrabbit.jackrabbit-jcr-commons [71](R 71.1)] osgi.wiring.package; (&(osgi.wiring.package=com.google.common.collect)(version>=15.0.0)(!(version>=16.0.0)))] Unresolved requirements: [[com.day.cq.cq-compat-codeupgrade [158](R 158.1)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.commons)(version>=2.4.0)(!(version>=3.0.0)))])

org.osgi.framework.BundleException: Unable to resolve com.day.cq.cq-compat-codeupgrade [158](R 158.1): missing requirement [com.day.cq.cq-compat-codeupgrade [158](R 158.1)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.commons)(version>=2.4.0)(!(version>=3.0.0))) [caused by: Unable to resolve org.apache.jackrabbit.jackrabbit-jcr-commons [71](R 71.1): missing requirement [org.apache.jackrabbit.jackrabbit-jcr-commons [71](R 71.1)] osgi.wiring.package; (&(osgi.wiring.package=com.google.common.collect)(version>=15.0.0)(!(version>=16.0.0)))] Unresolved requirements: [[com.day.cq.cq-compat-codeupgrade [158](R 158.1)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.commons)(version>=2.4.0)(!(version>=3.0.0)))]

at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4112)

at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)

at java.lang.Thread.run(Unknown Source)

21.05.2018 16:48:24.627 *INFO* [FelixDispatchQueue] org.apache.felix.framework FrameworkEvent STARTLEVEL CHANGED to 23

21.05.2018 16:48:26.628 *INFO* [FelixDispatchQueue] org.apache.felix.framework FrameworkEvent STARTLEVEL CHANGED to 24

21.05.2018 16:48:28.632 *ERROR* [FelixDispatchQueue] com.day.cq.cq-upgrades-executor FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve com.day.cq.cq-upgrades-executor [159](R 159.1): missing requirement [com.day.cq.cq-upgrades-executor [159](R 159.1)] osgi.wiring.package; (&(osgi.wiring.package=com.day.cq.compat.codeupgrade)(version>=5.8.0)(!(version>=6.0.0))) [caused by: Unable to resolve com.day.cq.cq-compat-codeupgrade [158](R 158.1): missing requirement [com.day.cq.cq-compat-codeupgrade [158](R 158.1)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.commons)(version>=2.4.0)(!(version>=3.0.0))) [caused by: Unable to resolve org.apache.jackrabbit.jackrabbit-jcr-commons [71](R 71.1): missing requirement [org.apache.jackrabbit.jackrabbit-jcr-commons [71](R 71.1)] osgi.wiring.package; (&(osgi.wiring.package=com.google.common.collect)(version>=15.0.0)(!(version>=16.0.0)))]] Unresolved requirements: [[com.day.cq.cq-upgrades-executor [159](R 159.1)] osgi.wiring.package; (&(osgi.wiring.package=com.day.cq.compat.codeupgrade)(version>=5.8.0)(!(version>=6.0.0)))])

org.osgi.framework.BundleException: Unable to resolve com.day.cq.cq-upgrades-executor [159](R 159.1): missing requirement [com.day.cq.cq-upgrades-executor [159](R 159.1)] osgi.wiring.package; (&(osgi.wiring.package=com.day.cq.compat.codeupgrade)(version>=5.8.0)(!(version>=6.0.0))) [caused by: Unable to resolve com.day.cq.cq-compat-codeupgrade [158](R 158.1): missing requirement [com.day.cq.cq-compat-codeupgrade [158](R 158.1)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.commons)(version>=2.4.0)(!(version>=3.0.0))) [caused by: Unable to resolve org.apache.jackrabbit.jackrabbit-jcr-commons [71](R 71.1): missing requirement [org.apache.jackrabbit.jackrabbit-jcr-commons [71](R 71.1)] osgi.wiring.package; (&(osgi.wiring.package=com.google.common.collect)(version>=15.0.0)(!(version>=16.0.0)))]] Unresolved requirements: [[com.day.cq.cq-upgrades-executor [159](R 159.1)] osgi.wiring.package; (&(osgi.wiring.package=com.day.cq.compat.codeupgrade)(version>=5.8.0)(!(version>=6.0.0)))]

at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4112)

at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)

at java.lang.Thread.run(Unknown Source)

21.05.2018 16:48:28.649 *ERROR* [FelixDispatchQueue] com.day.cq.pre-upgrade-tasks FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve com.day.cq.pre-upgrade-tasks [397](R 397.0): missing requirement [com.day.cq.pre-upgrade-tasks [397](R 397.0)] osgi.wiring.package; (&(osgi.wiring.package=com.day.crx.sling.server.jmx)(version>=1.0.0)(!(version>=2.0.0))) Unresolved requirements: [[com.day.cq.pre-upgrade-tasks [397](R 397.0)] osgi.wiring.package; (&(osgi.wiring.package=com.day.crx.sling.server.jmx)(version>=1.0.0)(!(version>=2.0.0)))])

org.osgi.framework.BundleException: Unable to resolve com.day.cq.pre-upgrade-tasks [397](R 397.0): missing requirement [com.day.cq.pre-upgrade-tasks [397](R 397.0)] osgi.wiring.package; (&(osgi.wiring.package=com.day.crx.sling.server.jmx)(version>=1.0.0)(!(version>=2.0.0))) Unresolved requirements: [[com.day.cq.pre-upgrade-tasks [397](R 397.0)] osgi.wiring.package; (&(osgi.wiring.package=com.day.crx.sling.server.jmx)(version>=1.0.0)(!(version>=2.0.0)))]

at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4112)

at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)

at java.lang.Thread.run(Unknown Source)

21.05.2018 16:48:28.653 *INFO* [FelixDispatchQueue] org.apache.felix.framework FrameworkEvent STARTLEVEL CHANGED to 25

21.05.2018 16:48:30.655 *INFO* [FelixDispatchQueue] org.apache.felix.framework FrameworkEvent STARTLEVEL CHANGED to 26

21.05.2018 16:48:32.656 *INFO* [FelixDispatchQueue] org.apache.felix.framework FrameworkEvent STARTLEVEL CHANGED to 27

21.05.2018 16:48:34.658 *INFO* [FelixDispatchQueue] org.apache.felix.framework FrameworkEvent STARTLEVEL CHANGED to 28

21.05.2018 16:48:36.659 *INFO* [FelixDispatchQueue] org.apache.felix.framework FrameworkEvent STARTLEVEL CHANGED to 29

21.05.2018 16:48:38.661 *INFO* [FelixStartLevel] org.apache.sling.startupfilter.disabler BundleEvent RESOLVED

21.05.2018 16:48:38.662 *INFO* [FelixStartLevel] org.apache.sling.startupfilter.disabler BundleEvent STARTING

21.05.2018 16:48:38.679 *INFO* [FelixStartLevel] org.apache.sling.startupfilter.disabler Service [org.apache.sling.startupfilterdisabler.impl.StartupFilterDisablerImpl,1215, [org.apache.sling.startupfilter.StartupFilterDisabler]] ServiceEvent REGISTERED

21.05.2018 16:48:38.680 *INFO* [FelixStartLevel] org.apache.sling.startupfilter.disabler BundleEvent STARTED

21.05.2018 16:48:38.680 *INFO* [FelixDispatchQueue] org.apache.felix.framework Startup finished in 78208ms

21.05.2018 16:48:38.682 *INFO* [FelixDispatchQueue] org.apache.felix.framework Service [Apache Sling Startup Service,1216, [org.apache.sling.launchpad.api.StartupService]] ServiceEvent REGISTERED

21.05.2018 16:48:38.682 *INFO* [FelixDispatchQueue] org.apache.felix.framework FrameworkEvent STARTLEVEL CHANGED to 30

Further, I am NOT encountering this issue if i don't put the "--promote-runmode nosamplecontent' .

Appreciate if you can give some advice on this.

Sincerely,

Homer

Avatar

Employee

Runmode info get’s stored in sling.options.file if the file is still valid, I think crx2oak and this promote-runmode should still work well.

I might have to test it tomorrow on my local but you can give it a go before I do