503 error - AuthenticationSupport service missing. Cannot authenticate request. | Community
Skip to main content
October 16, 2015
Solved

503 error - AuthenticationSupport service missing. Cannot authenticate request.

  • October 16, 2015
  • 6 replies
  • 45842 views

I uninstalled LiveCycle from my windows machine and restarted it. Now when I try to start CQ6 I get this error when trying to load up any page. Even http://localhost:4502

Problem accessing /. Reason:

    AuthenticationSupport service missing. Cannot authenticate request.

I see the following in my error.log

01.05.2015 22:27:24.577 *ERROR* [FelixStartLevel] com.adobe.granite.repository.impl.SlingRepositoryManager start: Uncaught Throwable trying to access Repository, calling stopRepository() java.lang.IllegalStateException: Segment 55c759a2-2ced-4d9e-af48-45209e6aa829 not found at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.readSegment(FileStore.java:541) at org.apache.jackrabbit.oak.plugins.segment.SegmentTracker.getSegment(SegmentTracker.java:106) at org.apache.jackrabbit.oak.plugins.segment.SegmentId.getSegment(SegmentId.java:97) at org.apache.jackrabbit.oak.plugins.segment.Record.getSegment(Record.java:68) at org.apache.jackrabbit.oak.plugins.segment.MapRecord.getEntry(MapRecord.java:138) at org.apache.jackrabbit.oak.plugins.segment.MapRecord.getEntry(MapRecord.java:170) at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.hasChildNode(SegmentNodeState.java:326)

 

How can I resolve this? I can't even access any pages! 

Best answer by Love_Sharma

For future visitors, Deleting repoinit folder from my AEM instance fixed this issue for me. Either you can run below command

 rm -rf crx-quickstart/launchpad/config/org/apache/sling/jcr/repoinit OR delete the folder manually. 

 

6 replies

Runal_Trivedi
October 16, 2015

Check whether your Apache Sling Authentication Service Bundle is active or not. You can check at localhost:4502/system/console/bundles, if it is not active then try to activate it manually.

If the bundle is active and you still get the issue then other solution is to re-index your repository.

Refer to following article for How to re-index AEM Repository: http://www.wemblog.com/2011/12/how-to-rebuild-index-in-cq5-wem.html

March 3, 2022

How to restart bundle manually?

April 19, 2016

Hello Team,

I am facing exactly same problem as above. I am thinking to re--index my repository but I am unable to access crx/de..It says service unavailable.

How do I move forward ?

Thanks,

Vish

Adobe Employee
April 21, 2016

Hi,

the error is a symptom of a problem in your repository. Most likely during startup there was an exception much earlier, if you find the original exception, it will help you determine the root cause.

Regards,

Opkar

Love_Sharma
Love_SharmaAccepted solution
September 30, 2022

For future visitors, Deleting repoinit folder from my AEM instance fixed this issue for me. Either you can run below command

 rm -rf crx-quickstart/launchpad/config/org/apache/sling/jcr/repoinit OR delete the folder manually. 

 

February 7, 2023

Thanks man, This Worked For me.

December 11, 2023

For future visitors:  I received this error when attempting to start AEM 6.5.15 with Java 21.1.  Presently only Java 11 is supported.  Make sure you are using a supported java version.  

January 16, 2024

this one was the one for me! 

May 3, 2024

So for me, it was a completely different resolution. I am extremely new to AEM so I might not use the rigth terms here, but this might help someone else. 
My project was using AEM version 6.5.17 and after installing everything, it would throw this error. After searching on google for a couple of hours, I then found this link: `http://localhost:4502/system/console/bundles` . Upon restart, I went to this link, which gave me a new error with the following: -

 

HTTP ERROR 500 java.lang.NoClassDefFoundError: java/security/acl/Group

URI: /system/console/bundles

STATUS: 500

MESSAGE: java.lang.NoClassDefFoundError: java/security/acl/Group

SERVLET: org.apache.felix.http.base.internal.dispatch.DispatcherServlet-74708cc2

CAUSED BY: java.lang.NoClassDefFoundError: java/security/acl/Group

CAUSED BY: java.lang.ClassNotFoundException: java.security.acl.Group

 

 

Upon googling this, it turns out this was occurring because I was using the latest version of Java. The above 'library' is deprecated in the latest versions of Java, which is why a downgrade to Java 11 is required. You can use sdkman to switch changing versions of java, atleast on a Mac. Upon downgrading to Java 11, it worked.