AuthenticationSupport service missing while restarting aem instance | Community
Skip to main content
Level 3
February 25, 2022
Solved

AuthenticationSupport service missing while restarting aem instance

  • February 25, 2022
  • 3 replies
  • 2160 views

Getting the following error while restarting the aem instance.

*ERROR* [org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.
*ERROR* org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.

 

Kindly help me on this. Thanks in advance

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

This is just a symptom. The underlying root cause is that the repository service cannot be started; there are 2 main reasons for that:

 

* The Oak repository is not starting. You should find error messages earlier in the log.

* Repoinit scripts fail to execute. Also these leave error messages in the logs.

 

Can you provide us more information?

3 replies

VeenaVikraman
Community Advisor
Community Advisor
February 25, 2022

This looks like a very common issue. It happens with me most of the time. 

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
February 25, 2022

This is just a symptom. The underlying root cause is that the repository service cannot be started; there are 2 main reasons for that:

 

* The Oak repository is not starting. You should find error messages earlier in the log.

* Repoinit scripts fail to execute. Also these leave error messages in the logs.

 

Can you provide us more information?

Raja-Karuppsamy
Community Advisor
Community Advisor
February 25, 2022

@dolly

1. Check whether your Apache Sling Authentication Service Bundle is active or not (http://localhost:4502/system/console/bundles/)- if not active then try to activate it manually.
2. Stop the AEM instance - Go to folder crx-quickstart/repository/remove folder index -> Start the AEM
3. Go for a re-indexing - http://www.wemblog.com/2011/12/how-to-rebuild-index-in-cq5-wem.html
4. Check the ERROR log - if you are seeing any memory related logs (Java Heap Space (java.lang.OutOfMemoryError: Java heap space)

 

Regards,

Raja