Adobe-Consulting-Services / acs-aem-commons

http://adobe-consulting-services.github.io/acs-aem-commons/
Apache License 2.0
454 stars 603 forks source link

ACS commons Bundle not active #3462

Closed sreecharansayam closed 1 week ago

sreecharansayam commented 3 weeks ago

Required Information

Expected Behavior

ACS common bundle should be active after server restart.

Issue Context

Our production AEM server went to hung state due to exhaustion of TTP connection pool and sever went to non-responsive state including any server consoles. We shutdown the server and tried to restart the server and after the server is restarted, ACS commons bundle and other bundles that are dependent on ACS commons are on disabled/Satisfied state. We have to restore the ACS Commons bundle from the stage environment to production environment to resolve this issue. Trying to find the root cause of why the ACS commons bundle is corrupted in this situation and how to avoid this in future.

Actual Behavior

ACS common bundle is in disabled state after server restart. Found the following error in the logs.

03.10.2024 10:15:50.048 ERROR [FelixStartLevel] com.adobe.acs.acs-aem-commons-bundle bundle com.adobe.acs.acs-aem-commons-bundle:6.3.2 (724)[com.adobe.acs.commons.analysis.jcrchecksum.impl.ChecksumGeneratorImpl] : Cannot register component (org.osgi.service.component.ComponentException: The component name 'com.adobe.acs.commons.analysis.jcrchecksum.impl.ChecksumGeneratorImpl' has already been registered by Bundle 724 (com.adobe.acs.acs-aem-commons-bundle) as Component of Class com.adobe.acs.commons.analysis.jcrchecksum.impl.ChecksumGeneratorImpl) org.osgi.service.component.ComponentException: The component name 'com.adobe.acs.commons.analysis.jcrchecksum.impl.ChecksumGeneratorImpl' has already been registered by Bundle 724 (com.adobe.acs.acs-aem-commons-bundle) as Component of Class com.adobe.acs.commons.analysis.jcrchecksum.impl.ChecksumGeneratorImpl at org.apache.felix.scr.impl.ComponentRegistry.checkComponentName(ComponentRegistry.java:240) [org.apache.felix.scr:2.1.20] at org.apache.felix.scr.impl.BundleComponentActivator.validateAndRegister(BundleComponentActivator.java:489) [org.apache.felix.scr:2.1.20] at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:450) [org.apache.felix.scr:2.1.20] at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:328) [org.apache.felix.scr:2.1.20] at org.apache.felix.scr.impl.BundleComponentActivator.(BundleComponentActivator.java:263) [org.apache.felix.scr:2.1.20] at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:551) [org.apache.felix.scr:2.1.20] at org.apache.felix.scr.impl.Activator.access$200(Activator.java:69) [org.apache.felix.scr:2.1.20] at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:424) [org.apache.felix.scr:2.1.20] at org.apache.felix.scr.impl.AbstractExtender.createExtension(AbstractExtender.java:196) [org.apache.felix.scr:2.1.20] at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:169) [org.apache.felix.scr:2.1.20] at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:49) [org.apache.felix.scr:2.1.20] at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:488) at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:420) at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450) at org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915)

Steps to Reproduce

Not able to reproduce.

Attaching full error stack trace.

ACS Commons Error.txt

kwin commented 1 week ago

This is a duplicate of #3241 which has been fixed in 6.6.2. Please update.