Hi guys,
After i installed the AEM SP 6.5.16 on my local environment, i start my AEM author instance but i can not login and facing error message on the browsers. Error details are as follows:
http://localhost:4502/libs/granite/core/content/login.html
HTTP ERROR 503 ServletResolver service missing, cannot service requests
URI: /
STATUS: 503
MESSAGE: ServletResolver service missing, cannot service requests
SERVLET: org.apache.felix.http.base.internal.dispatch.DispatcherServlet-296ed922
Error meesage on error.log:
*ERROR* [discovery.connectors.common.runner.6876b6ae-abef-4a44-b8af-5a6019712340.connectorPinger] org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl checkExpiredAnnouncements: could not log in administratively when checking for expired announcements of slingId=6876b6ae-abef-4a44-b8af-5a6019712340: org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle org.apache.sling.discovery.base [159] and sub service null
org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle org.apache.sling.discovery.base [159] and sub service null
at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getServiceResourceResolver(ResourceResolverFactoryImpl.java:79) [org.apache.sling.resourceresolver:1.7.10.B004]
at org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl.checkExpiredAnnouncements(AnnouncementRegistryImpl.java:507) [org.apache.sling.discovery.base:2.0.8]
at org.apache.sling.discovery.base.commons.BaseViewChecker.doCheckView(BaseViewChecker.java:225) [org.apache.sling.discovery.base:2.0.8]
at org.apache.sling.discovery.oak.pinger.OakViewChecker.doCheckView(OakViewChecker.java:304) [org.apache.sling.discovery.oak:1.2.22]
at org.apache.sling.discovery.base.commons.BaseViewChecker.heartbeatAndCheckView(BaseViewChecker.java:167) [org.apache.sling.discovery.base:2.0.8]
at org.apache.sling.discovery.base.commons.BaseViewChecker.run(BaseViewChecker.java:150) [org.apache.sling.discovery.base:2.0.8]
at org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.safelyRun(PeriodicBackgroundJob.java:86) [org.apache.sling.discovery.base:2.0.8]
at org.apache.sling.discovery.base.commons.PeriodicBackgroundJob.run(PeriodicBackgroundJob.java:77) [org.apache.sling.discovery.base:2.0.8]
at java.lang.Thread.run(Unknown Source)
Please suggest solution to resolve this issue.
Thank you so much,
Solved! Go to Solution.
Views
Replies
Total Likes
The error message HTTP ERROR 503 ServletResolver service missing, cannot service requests
indicates that AEM is unable to start the ServletResolver service, which is responsible for resolving and dispatching requests to the appropriate servlets.
The error message on the error.log file indicates that AEM is unable to log in administratively when checking for expired announcements of the Sling discovery connector. This is likely because the ServletResolver service is not running.
To resolve this issue, you can try the following:
Here are some additional tips for resolving AEM login issues:
If you are still unable to log in to AEM, please contact Adobe support for assistance.
It looks like instance has not started up completely to operate. Based on the error you shared, it is missing the sling discovery service user in the instance. What other errors you see in the error.log while the instance is starting up?
Thanks,
Lokesh
Hi @Lokesh_Vajrala ,
I have added other errors in the error.log while my author instance is starting up. Thank you for your help.
30.10.2023 07:23:13.186 *INFO* [FelixStartLevel] com.adobe.granite.crx-explorer BundleEvent STARTED
30.10.2023 07:23:13.197 *INFO* [FelixStartLevel] com.adobe.granite.crx-packagemgr BundleEvent RESOLVED
30.10.2023 07:23:13.198 *INFO* [FelixStartLevel] com.adobe.granite.crx-packagemgr BundleEvent STARTING
30.10.2023 07:23:13.233 *INFO* [FelixStartLevel] com.adobe.granite.crx-packagemgr Service [com.day.crx.packaging.impl.SlingInstallerSupportImpl,1481, [com.day.crx.packaging.impl.SlingInstallerSupport]] ServiceEvent REGISTERED
30.10.2023 07:23:13.237 *WARN* [FelixStartLevel] org.apache.sling.jcr.resource.internal.JcrSystemUserValidator The provided service principal name 'sling-installer-service' is not a known JCR system user id and therefore not allowed in the Sling Service User Mapper.
30.10.2023 07:23:13.240 *ERROR* [FelixStartLevel] com.day.crx.packaging.impl.SlingInstallerSupportImpl Unable to clean up orphaned markers.
javax.jcr.LoginException: Can neither derive user name nor principal names for bundle com.adobe.granite.crx-packagemgr [240] and sub service slingInstallerService
at org.apache.sling.jcr.base.AbstractSlingRepository2.loginService(AbstractSlingRepository2.java:387) [org.apache.sling.jcr.base:3.1.6]
at com.day.crx.packaging.impl.SlingInstallerSupportImpl.login(SlingInstallerSupportImpl.java:111) [com.adobe.granite.crx-packagemgr:1.2.80.CQ650-B0040]
at com.day.crx.packaging.impl.SlingInstallerSupportImpl.cleanupOrphanedMarkers(SlingInstallerSupportImpl.java:122) [com.adobe.granite.crx-packagemgr:1.2.80.CQ650-B0040]
at com.day.crx.packaging.impl.SlingInstallerSupportImpl.activate(SlingInstallerSupportImpl.java:74) [com.adobe.granite.crx-packagemgr:1.2.80.CQ650-B0040]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
30.10.2023 07:23:14.300 *INFO* [FelixStartLevel] org.apache.sling.resourceresolver Service [org.apache.sling.resourceresolver.impl.console.ResourceResolverWebConsolePlugin,1576, [javax.servlet.Servlet]] ServiceEvent REGISTERED
30.10.2023 07:23:14.307 *WARN* [FelixStartLevel] org.apache.sling.jcr.resource.internal.JcrSystemUserValidator The provided service principal name 'repository-reader-service' is not a known JCR system user id and therefore not allowed in the Sling Service User Mapper.
30.10.2023 07:23:14.307 *ERROR* [FelixStartLevel] org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl activate: Cannot access repository, failed setting up Mapping Support
org.apache.sling.api.resource.LoginException: Cannot derive user name or principal names for bundle org.apache.sling.resourceresolver [166] and sub service mapping
at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getServiceUserAuthenticationInfo(CommonResourceResolverFactoryImpl.java:504) [org.apache.sling.resourceresolver:1.7.10.B004]
at org.apache.sling.resourceresolver.impl.mapping.MapEntries.<init>(MapEntries.java:136) [org.apache.sling.resourceresolver:1.7.10.B004]
at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.activate(CommonResourceResolverFactoryImpl.java:318) [org.apache.sling.resourceresolver:1.7.10.B004]
at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryActivator.registerFactory(ResourceResolverFactoryActivator.java:518) [org.apache.sling.resourceresolver:1.7.10.B004]
at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryActivator.checkFactoryPreconditions(ResourceResolverFactoryActivator.java:582) [org.apache.sling.resourceresolver:1.7.10.B004]
at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryActivator.access$100(ResourceResolverFactoryActivator.java:68) [org.apache.sling.resourceresolver:1.7.10.B004]
30.10.2023 07:23:18.126 *ERROR* [FelixStartLevel] com.adobe.granite.workflow.core bundle com.adobe.granite.workflow.core:2.0.240.CQ660-B0017 (296)[com.adobe.granite.workflow.core.launcher.WorkflowLauncherListener(1048)] : The activate method has thrown an exception (java.lang.RuntimeException: Error logging in as service user)
java.lang.RuntimeException: Error logging in as service user
at com.adobe.granite.workflow.core.util.ServiceLoginUtil.getRepositoryReadSession(ServiceLoginUtil.java:96) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.launcher.WorkflowLauncherListener.start(WorkflowLauncherListener.java:638) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.launcher.WorkflowLauncherListener.activate(WorkflowLauncherListener.java:550) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:242) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:678) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:524) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:318) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:308) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:342) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:115) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:984) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:957) [org.apache.felix.scr:2.1.20]
...
Caused by: javax.jcr.LoginException: Can neither derive user name nor principal names for bundle com.adobe.granite.workflow.core [296] and sub service repo-reader
at org.apache.sling.jcr.base.AbstractSlingRepository2.loginService(AbstractSlingRepository2.java:387) [org.apache.sling.jcr.base:3.1.6]
at com.adobe.granite.workflow.core.util.ServiceLoginUtil.getRepositoryReadSession(ServiceLoginUtil.java:94) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
... 62 common frames omitted
30.10.2023 07:23:18.154 *WARN* [FelixStartLevel] org.apache.sling.jcr.resource.internal.JcrSystemUserValidator The provided service principal name 'workflow-service' is not a known JCR system user id and therefore not allowed in the Sling Service User Mapper.
30.10.2023 07:23:18.155 *ERROR* [FelixStartLevel] com.adobe.granite.workflow.core bundle com.adobe.granite.workflow.core:2.0.240.CQ660-B0017 (296)[com.adobe.granite.workflow.core.eventsupport.JcrToWorkflowEventService(1065)] : The activate method has thrown an exception (java.lang.RuntimeException: Error logging in as service user)
java.lang.RuntimeException: Error logging in as service user
at com.adobe.granite.workflow.core.util.ServiceLoginUtil.getWorkflowInstanceDataSession(ServiceLoginUtil.java:60) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.eventsupport.JcrToWorkflowEventService.activate(JcrToWorkflowEventService.java:129) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:242) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:678) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:524) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:318) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:308) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:342) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:115) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:984) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:957) [org.apache.felix.scr:2.1.20]
at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:766) [org.apache.felix.scr:2.1.20]
...
Caused by: javax.jcr.LoginException: Can neither derive user name nor principal names for bundle com.adobe.granite.workflow.core [296] and sub service workflow
at org.apache.sling.jcr.base.AbstractSlingRepository2.loginService(AbstractSlingRepository2.java:387) [org.apache.sling.jcr.base:3.1.6]
at com.adobe.granite.workflow.core.util.ServiceLoginUtil.getWorkflowInstanceDataSession(ServiceLoginUtil.java:58) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
... 38 common frames omitted
30.10.2023 07:23:18.218 *WARN* [FelixStartLevel] org.apache.sling.jcr.resource.internal.JcrSystemUserValidator The provided service principal name 'repository-reader-service' is not a known JCR system user id and therefore not allowed in the Sling Service User Mapper.
30.10.2023 07:23:18.219 *ERROR* [FelixStartLevel] com.adobe.granite.workflow.core bundle com.adobe.granite.workflow.core:2.0.240.CQ660-B0017 (296)[com.adobe.granite.workflow.core.collection.ResourceCollectionManagerListener(1043)] : The activate method has thrown an exception (java.lang.RuntimeException: Error logging in as service user)
java.lang.RuntimeException: Error logging in as service user
at com.adobe.granite.workflow.core.util.ServiceLoginUtil.getRepositoryReadSession(ServiceLoginUtil.java:96) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.collection.ResourceCollectionManagerListener.activate(ResourceCollectionManagerListener.java:159) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
...
Caused by: javax.jcr.LoginException: Can neither derive user name nor principal names for bundle com.adobe.granite.workflow.core [296] and sub service repo-reader
at org.apache.sling.jcr.base.AbstractSlingRepository2.loginService(AbstractSlingRepository2.java:387) [org.apache.sling.jcr.base:3.1.6]
at com.adobe.granite.workflow.core.util.ServiceLoginUtil.getRepositoryReadSession(ServiceLoginUtil.java:94) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
... 57 common frames omitted
Regards,
Thach
Please check if the bundles are active in the Web console (/system/console). If all bundles are active, then please stop the instance, navigate to the "crx-quickstart\launchpad\config\org\apache\sling/jcr/repoinit" directory, and delete the files within the repoinit folder. Afterward, start the AEM instance and check it.
@ThachNguyen141 so you can login through webconsole - /system/console? If you're, are all bundles active?
Yes, i can login through crxde, system/console/, All my bundles are actived. I have attacked images. Please check them.
Thanks.
Thanks for sharing the screenshots. Last screenshot - "aem-crxde.png" gives some insights -> even though you logged in as admin, you don't see all the directories inside the repository except "/home, /var, /libs".
It seems like there is a serious problem with the instance, may be the SP upgrade halted abruptly or something is not installed correctly.
I suggest starting a fresh installation with 6.5.16 and see if that works without any issues. If you see the same error, I recommend raising a ticket with Adobe or use the next version 6.5.17 or the latest version 6.5.18.
Thanks,
Lokesh
What was the prior version of aem service pack before installing sp16?
@ThachNguyen141 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Hi @kautuk_sahni,
I have tried to install the SP 16 again but the issue is still happening. Do you have any sugesstion for me?
Thank you so much.
Thach
The error message HTTP ERROR 503 ServletResolver service missing, cannot service requests
indicates that AEM is unable to start the ServletResolver service, which is responsible for resolving and dispatching requests to the appropriate servlets.
The error message on the error.log file indicates that AEM is unable to log in administratively when checking for expired announcements of the Sling discovery connector. This is likely because the ServletResolver service is not running.
To resolve this issue, you can try the following:
Here are some additional tips for resolving AEM login issues:
If you are still unable to log in to AEM, please contact Adobe support for assistance.
Views
Likes
Replies