Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

error when changing password on author

Avatar

Level 5

Today we tried to change the admin password on the AUTHOR instance and when trying to login we got this errors below. Please advice.

Regards,

HTTP ERROR 500

Problem accessing /libs/granite/core/content/login.html. Reason:

    Server Error

Caused by:

  1. java.lang.StackOverflowError

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

at java.base/javax.security.auth.Subject.getSubject(Subject.java:296)

at org.apache.jackrabbit.oak.security.authentication.LoginContextProviderImpl.getSubject(LoginContextProviderImpl.java:93)

at org.apache.jackrabbit.oak.security.authentication.LoginContextProviderImpl.getLoginContext(LoginContextProviderImpl.java:75)

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

at org.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule$1.run(AbstractLoginModule.java:397)

at org.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule$1.run(AbstractLoginModule.java:394)

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

at java.base/javax.security.auth.Subject.doAs(Subject.java:423)

at org.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule.getRoot(AbstractLoginModule.java:394)

at org.apache.jackrabbit.oak.security.authentication.token.TokenLoginModule.getTokenProvider(TokenLoginModule.java:217)

at org.apache.jackrabbit.oak.security.authentication.token.TokenLoginModule.login(TokenLoginModule.java:127)

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

at java.base/javax.security.auth.login.LoginContext.invoke(LoginContext.java:726)

at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:665)

at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:663)

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

at java.base/javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:663)

at java.base/javax.security.auth.login.LoginContext.login(LoginContext.java:574)

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

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

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

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

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

at org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderStateFactory.createProviderState(JcrProviderStateFactory.java:132)

at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.authenticate(JcrResourceProvider.java:304)

at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.authenticate(JcrResourceProvider.java:76)

at org.apache.sling.resourceresolver.impl.providers.stateful.ProviderManager.authenticate(ProviderManager.java:161)

at org.apache.sling.resourceresolver.impl.providers.stateful.ProviderManager.getOrCreateProvider(ProviderManager.java:87)

at org.apache.sling.resourceresolver.impl.providers.stateful.ProviderManager.authenticateAll(ProviderManager.java:129)

at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.createControl(ResourceResolverImpl.java:142)

at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:103)

at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:97)

at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolverInternal(CommonResourceResolverFactoryImpl.java:280)

at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolver(CommonResourceResolverFactoryImpl.java:190)

at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getResourceResolver(ResourceResolverFactoryImpl.java:98)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:878)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:1009)

at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:900)

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hello Mayank,

We tried and it did not work. We end up reinstalling from scratch.

Thank you very much for all your help.

Devaraj

View solution in original post

15 Replies

Avatar

Employee Advisor

Hi,

Have you restarted the server after password change?

Regards,

Mayank

Avatar

Employee Advisor

Can you access /system/console?

Are there any unresolved bundles/bundles that are not active? Please access the URL after clearing browser cookies.

Avatar

Level 2

No cannot access system console, when I try to access system console it redirects back to the same URL.

I tried this https://Serevrname/system/console

HTTP ERROR 500

Problem accessing /libs/granite/core/content/login.html. Reason:

    Server Error

Caused by:

java.lang.StackOverflowError at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/javax.security.auth.Subject.getSubject(Subject.java:296) at org.apache.jackrabbit.oak.security.authentication.LoginContextProviderImpl.getSubject(LoginContextProviderImpl.java:93) at org.apache.jackrabbit.oak.security.authentication.LoginContextProviderImpl.getLoginContext(LoginContextProviderImpl.java:75) at org.apache.jackrabbit.oak.core.ContentRepositoryImpl.login(ContentRepositoryImpl.java:162) at org.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule$1.run(AbstractLoginModule.java:397) at org.apache.jackrabbit.oak.spi.security.authentication.AbstractLoginModule$1.run(AbstractLoginModule.java:394) at java.base/java.security.AccessController.doPrivileged(Native Method)

Avatar

Employee Advisor

Can you share the steps you performed to update the password and AEM version along with aemfd package that is deployed on the server?

Avatar

Level 2

Here is the process I followed to change the default admin password:

1. Log in to AEM author

2. Tools --> Security -->Users - Selected Admin user and clicked on Change Password

1827486_pastedImage_1.png

We are using AEM version 6.5 with Service Pack 1

Avatar

Employee Advisor

I tried this on my local and it seems to be working fine. The steps you tried are the recommended one, difficult to say what has gone based on the error stack. What's the JDK being used?

Avatar

Level 2

We are using JDK 11.0.4.

AEM server is starting fine but unable to login, not even providing the login prompt. There should be a way to reset the admin password back to default right?

Avatar

Level 3

Can you try following the steps :

1.Stop you AEM instance

2.Go to ${your-aem-install-folder}/crx-quickstart/repository/index. Cut all the indexes available under index folder and paste it somewhere in your system.

So the index folder should be empty

3. Re-start your AEM and check now

We faced this kind of HTTP 500 issue not for login, but in other cases as well, so then we used to removed the indexex and restart the instance. Hope it works once you perform these steps

Best,

Cal    

Avatar

Level 2

Hi Cal,

Thank you.  I followed the steps you provided unfortunately, this did not fix the issue.

Thanks,

Devaraj

Avatar

Employee Advisor

Let's try this, Create a package from another instance  that includes the /home/users/a/admin (dev, staging, and so on). Download that package and copy it into crx-quickstart/install folder on problematic server and restart the instance.

Avatar

Employee Advisor

Hi Devaraj,

Did you try my previous suggestion? Did it help?

Avatar

Correct answer by
Level 2

Hello Mayank,

We tried and it did not work. We end up reinstalling from scratch.

Thank you very much for all your help.

Devaraj

Avatar

Employee Advisor

Hi devarajn and ayecona,

I would highly recommend that you take a snapshot of instance or CRX weekly in case you are doing a lot of work at code and infra level. Not only it will act as a restoration point but will also provide you a way to replicate and create new instance quickly.

Regards,

Mayank

Avatar

Level 2

Hi Mayank,

Thank you for the suggestion, we will backup/snapshot as needed.