Skip to main content
Jai1122
New Participant
June 7, 2016

Authentication Error

  • June 7, 2016
  • 11 replies
  • 8566 views

Hi Experts,

   In one of our higher regions, we face a weird issue in which i could access the felix console through admin credentials.

But when i try to access any other module like crxde or damadmin i am getting  a 503.

The log reads org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.

On investigating the felix console config manager, we see two Apache Sling Authentication Service, and in osgi components the following components has unstatisfied reference.  

I am not sure what is causing this issue. We configured one of the Apache Sling Authentication service to disable anonymous access. But i dont think that should cause any issue.

Please help us on this.

 

Thanks,

Jai

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

11 replies

New Participant
March 17, 2022




Component #321 org.apache.sling.auth.core.impl.engine.EngineSlingAuthenticator, state unsatisfied (reference)
Component #320 org.apache.sling.engine.impl.auth.SlingAuthenticator, state unsatisfied (reference)

 

I'm facing the same error while trying to login. I've tried multiple times deleting crx-quickstart/repository/index, cache.lock & repo.lock and restarting the instance, but unfortunately nothing worked. Could anyone help me analyze in this regard ?

GK-007
New Participant
June 7, 2016

Which version of AEM are you using it??

Thanks,

Kishore

Jai1122
Jai1122Author
New Participant
June 8, 2016

Hi Kishore,

   We are using AEM6.1.

Employee
June 7, 2016

Hi Jai,

when you start the instance there will likely be an exception/error which caused the repository not to start. This is why the OSGI container is available (/system/console) but not any of the repository consoles. Please check the error.log and identify the first exception that appears.

Regards,

Opkar

Jai1122
Jai1122Author
New Participant
June 7, 2016

Hi Opkar,

  I checked the error logs and found the following error

Exception 1 in error log:

    07.06.2016 13:15:39.413 *ERROR* [qtp2134851840-83] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.
07.06.2016 13:15:39.413 *ERROR* [qtp2134851840-83] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.

Exception 2 in error log:

    java.lang.IllegalStateException: Singleton pid supplied matching a previous factory pid org.apache.sling.engine.impl.auth.SlingAuthenticator
    at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.getSingletonPidIndex(ConfigurableComponentHolder.java:492)
    at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.configurationUpdated(ConfigurableComponentHolder.java:382)
    at org.apache.felix.scr.impl.config.ConfigurationSupport.configurationEvent(ConfigurationSupport.java:297)
    at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:2032)
    at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:2002)
    at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)
    at java.lang.Thread.run(Thread.java:745)

Attaching the stack trace in start up logs as well.

 

But i could not diagonize much through them. Please help me out.

Employee
June 7, 2016

Can you attach the full error.log file?