Instance am working when I opened today suddenly started stating AuthenticationSupport service missing. Cannot authenticate request.
I find all the bundles are active , status of Apache Sling Authentication Serviceorg.apache.sling.auth.core is active and I tried deleting index folder under crx-quickstart/repository and restarting the server but nothing worked ,
Startup is happening but still authentication error persists
18.12.2018 21:32:36.438 *ERROR* [qtp1998025192-167] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.
18.12.2018 21:32:36.438 *ERROR* [qtp1998025192-167] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.
Please help .. any pointers...Thanks in advance
The logs clearly indicate that the segment has gone missing, deleted or corrupted or converted to .bak file. You would need to restore segmentnodestore to a last known good configuration which was sometime before the crash happened. You mentioned that all bundles are active which means the issue is not something that could be fixed by just restarting bundles.
The repository backup should be taken so that you have the master copy for various reasons including if you plan to contact customer care in future. If you do not take a backup and perform a wrong step, there is a possibility the repository might be lost forever and would have to setup AEM from scratch.
You should find the latest good revision as mentioned on page by using oak-run jar. Stop the instance, follow steps 1-6 and then try to bring up the instance.
based on AEM version
You may take a backup just in case..
In the debug log for oak segment I do see Segment not found error
org.apache.jackrabbit.oak.segment.SegmentNotFoundException: Segment f5c15052-5c4c-4931-a8bd-e502ac2bb2fd not found
Hi Thanks for the reply ...am starting aem as admin, yesterday my machine got shut abnormally and till last night everything is working fine ....that's the only thing which went wrong last day....will there be anything else which gets corrupted because of abnormal system shutdown which might have caused this???
Possible reason is missing Repository service. means that Oak repository service isn't registered successfully. In other words, repository isn't available to do authentication for Apache Sling. There might be numerous reasons behind repository not coming up.
Just check if you are starting the AEM as super/admin user.