Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Error: Unable to login This repository instance has been shut down

Mayank_Arora
Level 3
Level 3

Lately, I have started to get this error very frequently on my author & publish instances. It doesn't seem to be because of a code change. I am using CQ 5.6.1. Please advice on what could be the possible reason for this error.

19.03.2014 06:12:42.528 *ERROR* [pool-6-thread-1] org.apache.sling.commons.scheduler.impl.QuartzScheduler Exception during job execution of org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler@1ffcdd45 : Could not log in to repository (org.apache.sling.api.resource.LoginException: Unable to login This repository instance has been shut down.) java.lang.RuntimeException: Could not log in to repository (org.apache.sling.api.resource.LoginException: Unable to login This repository instance has been shut down.)

        at org.apache.sling.discovery.impl.DiscoveryServiceImpl.doUpdateProperties(DiscoveryServiceImpl.java:380)

        at org.apache.sling.discovery.impl.DiscoveryServiceImpl.updateProperties(DiscoveryServiceImpl.java:425)

        at org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler.issueHeartbeat(HeartbeatHandler.java:193)

        at org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler.run(HeartbeatHandler.java:150)

        at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:56)

        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

        at java.lang.Thread.run(Thread.java:724)

Caused by: org.apache.sling.api.resource.LoginException: Unable to login This repository instance has been shut down.

        at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory.getLoginException(JcrResourceProviderFactory.java:268)

        at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory.getResourceProviderInternal(JcrResourceProviderFactory.java:175)

        at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory.getAdministrativeResourceProvider(JcrResourceProviderFactory.java:115)

        at org.apache.sling.resourceresolver.impl.tree.ResourceProviderFactoryHandler.login(ResourceProviderFactoryHandler.java:162)

        at org.apache.sling.resourceresolver.impl.tree.RootResourceProviderEntry.loginToRequiredFactories(RootResourceProviderEntry.java:95)

        at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getResourceResolverInternal(ResourceResolverFactoryImpl.java:95)

        at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getAdministrativeResourceResolver(ResourceResolverFactoryImpl.java:69)

        at org.apache.sling.discovery.impl.DiscoveryServiceImpl.doUpdateProperties(DiscoveryServiceImpl.java:341)

        ... 8 more

Caused by: javax.jcr.RepositoryException: This repository instance has been shut down.

        at org.apache.jackrabbit.core.RepositoryImpl.sanityCheck(RepositoryImpl.java:601)

        at org.apache.jackrabbit.core.RepositoryImpl.getWorkspaceInfo(RepositoryImpl.java:673)

        at org.apache.jackrabbit.core.RepositoryImpl.createSession(RepositoryImpl.java:958)

        at org.apache.jackrabbit.core.SessionFactory.createAdminSession(SessionFactory.java:42)

        at com.day.crx.sling.server.impl.SlingRepositoryWrapper.loginAdministrative(SlingRepositoryWrapper.java:76)

        at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory.getResourceProviderInternal(JcrResourceProviderFactory.java:136)

        ... 14 more

19.03.2014 06:12:57.527 *ERROR* [pool-6-thread-5] org.apache.sling.discovery.impl.DiscoveryServiceImpl handleEvent: could not log in administratively: org.apache.sling.api.resource.LoginException: Unable to login This repository instance has been shut down. org.apache.sling.api.resource.LoginException: Unable to login This repository instance has been shut down.

        at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory.getLoginException(JcrResourceProviderFactory.java:268)

        at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory.getResourceProviderInternal(JcrResourceProviderFactory.java:175)

        at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory.getAdministrativeResourceProvider(JcrResourceProviderFactory.java:115)

        at org.apache.sling.resourceresolver.impl.tree.ResourceProviderFactoryHandler.login(ResourceProviderFactoryHandler.java:162)

        at org.apache.sling.resourceresolver.impl.tree.RootResourceProviderEntry.loginToRequiredFactories(RootResourceProviderEntry.java:95)

        at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getResourceResolverInternal(ResourceResolverFactoryImpl.java:95)

        at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getAdministrativeResourceResolver(ResourceResolverFactoryImpl.java:69)

        at org.apache.sling.discovery.impl.DiscoveryServiceImpl.doUpdateProperties(DiscoveryServiceImpl.java:341)

        at org.apache.sling.discovery.impl.DiscoveryServiceImpl.updateProperties(DiscoveryServiceImpl.java:425)

        at org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler.issueHeartbeat(HeartbeatHandler.java:193)

        at org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler.run(HeartbeatHandler.java:150)

        at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:56)

        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

        at java.lang.Thread.run(Thread.java:724)

0 Replies