Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Issues while cloning AEM instance

Avatar

Level 4

Hi All,

We are trying to clone our AEM publish instances.

This is what we did.

1. We stopped our running instance.

2. We tar zipped the crx-quickstart folder.

3. Copied folder to another server.

4. unzipped the folder into a new instance directory.

5. Deleted all the lock files (repo.lock and cache.lock).

6. After this, when we start the AEM publish instance, we get following stack trace. Not able to login to the console. Early help is appreciated.

org.apache.sling.commons.log.LogManager.factory.config.125881ea-dee6-4fd7-bed0-89f8e4868166)

org.osgi.service.cm.ConfigurationException: org.apache.sling.commons.log.names : Category com.adobe.acs.samples.filters already defined by configuration org.apache.sling.commons.log.LogManager.factory.config.125881ea-dee6-4fd7-bed0-89f8e4868166

  at org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36)

  at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:88)

  at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1605)

  at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1548)

  at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)

  at java.lang.Thread.run(Thread.java:748)

Caused by: org.apache.sling.commons.log.logback.internal.config.ConfigurationException:

  at org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:514)

  at org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34)

  ... 5 common frames omitted

25.05.2018 07:39:48.399 *ERROR* [CM Configuration Updater (ManagedServiceFactory Update: factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] org.apache.felix.configadmin Service [org.apache.felix.cm.ConfigurationAdmin,15, [org.osgi.service.cm.ConfigurationAdmin]] [org.osgi.service.cm.ManagedServiceFactory, id=19, bundle=12/slinginstall:org.apache.sling.commons.log-4.0.2.jar]: Updating property org.apache.sling.commons.log.names of configuration org.apache.sling.commons.log.LogManager.factory.config.f556bda0-acd7-4ea0-905e-c689cd823761 caused a problem: Category org.apache.sling.auth already defined by configuration org.apache.sling.commons.log.LogManager.factory.config.f556bda0-acd7-4ea0-905e-c689cd823761 (org.osgi.service.cm.ConfigurationException: org.apache.sling.commons.log.names : Category org.apache.sling.auth already defined by configuration org.apache.sling.commons.log.LogManager.factory.config.f556bda0-acd7-4ea0-905e-c689cd823761)

org.osgi.service.cm.ConfigurationException: org.apache.sling.commons.log.names : Category org.apache.sling.auth already defined by configuration org.apache.sling.commons.log.LogManager.factory.config.f556bda0-acd7-4ea0-905e-c689cd823761

  at org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36)

  at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:88)

  at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1605)

  at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1548)

  at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)

  at java.lang.Thread.run(Thread.java:748)

Caused by: org.apache.sling.commons.log.logback.internal.config.ConfigurationException:

  at org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:514)

  at org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34)

  ... 5 common frames omitted

Attempting to load ESAPI.properties via file I/O.

Attempting to load ESAPI.properties as resource file via file I/O.

Not found in 'org.owasp.esapi.resources' directory or file not readable: /opt/app/aem/test/publish/ESAPI.properties

Not found in SystemResource Directory/resourceDirectory: .esapi/ESAPI.properties

Not found in 'user.home' (/home/digit_admin) directory: /home/digit_admin/esapi/ESAPI.properties

Loading ESAPI.properties via file I/O failed. Exception was: java.io.FileNotFoundException

Attempting to load ESAPI.properties via the classpath.

SUCCESSFULLY LOADED ESAPI.properties via the CLASSPATH from '/ (root)' using class loader for DefaultSecurityConfiguration class!

Attempting to load validation.properties via file I/O.

Attempting to load validation.properties as resource file via file I/O.

Not found in 'org.owasp.esapi.resources' directory or file not readable: /opt/app/aem/test/publish/validation.properties

Not found in SystemResource Directory/resourceDirectory: .esapi/validation.properties

Not found in 'user.home' (/home/digit_admin) directory: /home/digit_admin/esapi/validation.properties

Loading validation.properties via file I/O failed.

Attempting to load validation.properties via the classpath.

SUCCESSFULLY LOADED validation.properties via the CLASSPATH from '/ (root)' using class loader for DefaultSecurityConfiguration class!

RAWProcessor succesfully installed

25.05.2018 07:41:53.671 *ERROR* [FelixStartLevel] ERROR: Error starting inputstream:org.apache.sling.tracer-1.0.2.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.sling.tracer [536]: Unable to resolve 536.0: missing requirement [536.0] osgi.wiring.package; (&(osgi.wiring.package=ch.qos.logback.classic)(version>=1.0.0)(!(version>=2.0.0))))

org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.sling.tracer [536]: Unable to resolve 536.0: missing requirement [536.0] osgi.wiring.package; (&(osgi.wiring.package=ch.qos.logback.classic)(version>=1.0.0)(!(version>=2.0.0)))

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

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

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

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

  at java.lang.Thread.run(Thread.java:748)

javax.jcr.LoginException: UserId/Password mismatch.

  at org.apache.jackrabbit.oak.jcr.repository.RepositoryImpl.login(RepositoryImpl.java:271)

  at com.adobe.granite.repository.impl.CRX3RepositoryImpl.login(CRX3RepositoryImpl.java:92)

  at org.apache.jackrabbit.oak.jcr.repository.RepositoryImpl.login(RepositoryImpl.java:202)

  at org.apache.sling.jcr.base.AbstractSlingRepository2.login(AbstractSlingRepository2.java:297)

  at org.apache.sling.jcr.base.AbstractSlingRepository2.login(AbstractSlingRepository2.java:229)

  at com.sas.sassi.cms.listeners.PageCreationListener.activate(PageCreationListener.java:88)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

  at java.lang.reflect.Method.invoke(Method.java:498)

  at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:222)

  at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)

  at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:615)

  at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:499)

  at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:295)

  at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:302)

  at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:113)

  at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:847)

  at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:814)

  at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:763)

  at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:343)

  at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:243)

  at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:357)

  at org.apache.felix.framework.Felix.getService(Felix.java:3671)

  at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)

  at org.apache.sling.commons.scheduler.impl.WhiteboardHandler$1.addingService(WhiteboardHandler.java:77)

  at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)

  at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)

  at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)

  at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)

  at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)

  at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:987)

  at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)

  at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)

  at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4547)

  at org.apache.felix.framework.Felix.registerService(Felix.java:3521)

  at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)

  at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:869)

  at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:857)

  at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:133)

  at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:915)

  at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:715)

  at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:399)

  at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:676)

  at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:339)

  at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:360)

  at org.apache.felix.scr.impl.Activator.access$000(Activator.java:53)

  at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:260)

  at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)

  at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)

  at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)

  at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)

  at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)

  at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)

  at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:913)

  at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)

  at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)

  at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4531)

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

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

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

  at java.lang.Thread.run(Thread.java:748)

Caused by: javax.security.auth.login.FailedLoginException: UserId/Password mismatch.

  at org.apache.jackrabbit.oak.security.user.UserAuthentication.checkSuccess(UserAuthentication.java:147)

  at org.apache.jackrabbit.oak.security.user.UserAuthentication.authenticate(UserAuthentication.java:120)

  at org.apache.jackrabbit.oak.security.authentication.user.LoginModuleImpl.login(LoginModuleImpl.java:132)

  at org.apache.felix.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:52)

  at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

  at java.lang.reflect.Method.invoke(Method.java:498)

  at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)

  at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)

  at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)

  at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)

  at java.security.AccessController.doPrivileged(Native Method)

  at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)

  at javax.security.auth.login.LoginContext.login(LoginContext.java:587)

  at org.apache.jackrabbit.oak.core.ContentRepositoryImpl.login(ContentRepositoryImpl.java:162)

  at org.apache.jackrabbit.oak.jcr.repository.RepositoryImpl.login(RepositoryImpl.java:263)

  ... 61 more

1 Accepted Solution

Avatar

Correct answer by
Employee

Agreed but that is the consequence that the repository can't be initiated and the reasons could be many. So fresh set of logs from the start of the instance would help.

- Stop the instance

- Rename the logs folder

- Start the  instance

- Share the error, stdout.log

View solution in original post

3 Replies

Avatar

Employee

These error message suggest that there are duplicate loggers defined for a couple of classes. If you can navigate and login into Felix console, Go to Configurations and search for logger.

open them one by one and see which are duplicates and delete if any.

If you are not able to login into any console, there must be another issue so restarting and clearing out the logs to generate fresh traces would help. If possible, attach the error logs here.

Avatar

Level 4

The issue is that Sling is not able to login to JCR with ERROR userid/ password mismatch.

If anyone can guide regarding this error. Please note that we have cloned this instance which was already running.

Avatar

Correct answer by
Employee

Agreed but that is the consequence that the repository can't be initiated and the reasons could be many. So fresh set of logs from the start of the instance would help.

- Stop the instance

- Rename the logs folder

- Start the  instance

- Share the error, stdout.log