Highlighted

Updating custom runmodes in the sling.properties file causing blob store read error

Gunalan_V

17-04-2018

Hello,

When I tried to create new custom runmodes  in slings.properties (sling.runmodes=author,test) file and started the AEM server it was throwing many errors and server was not started successfully. When I tried to access the page it was throwing 500 error (slingAUthenticator.handleLoginFailure Exception)

Can someone please let me know if someone came across this issue and how to add the custom runmodes ?

stdout

Exception in thread "sling-event-processing-pool-1" java.lang.IllegalStateException: Attempt to read external blob with blobId [9b5c755bf32693424ec49e86ff0c797b28a761ab#195018] without specifying BlobStore

        at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.readBlob(FileStore.java:1337)

        at org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.getBlob(SegmentBlob.java:261)

        at org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.getLength(SegmentBlob.java:269)

        at org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:109)

        at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexFile.<init>(OakDirectory.java:330)

        at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexInput.<init>(OakDirectory.java:507)

        at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory.fileLength(OakDirectory.java:144)

        at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier$CopyOnReadDirectory.copyFilesToLocal(IndexCopier.java:457)

        at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier$CopyOnReadDirectory.prefetchIndexFiles(IndexCopier.java:413)

        at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier$CopyOnReadDirectory.<init>(IndexCopier.java:324)

error.log

18.04.2018 01:35:55.614 *INFO* [qtp1454074538-179] org.apache.sling.auth.core.impl.SlingAuthenticator handleLoginFailure: Unable to authenticate anonymous user: java.lang.IllegalStateException: Attempt to read external blob with blobId [9b5c755bf32693424ec49e86ff0c797b28a761ab#195018] without specifying BlobStore

        at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.readBlob(FileStore.java:1337)

        at org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.getBlob(SegmentBlob.java:261)

        at org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.getLength(SegmentBlob.java:269)

        at org.apache.jackrabbit.oak.plugins.segment.SegmentBlob.length(SegmentBlob.java:109)

        at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexFile.<init>(OakDirectory.java:330)

        at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexInput.<init>(OakDirectory.java:507)

        at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory.fileLength(OakDirectory.java:144)

        at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier$CopyOnReadDirectory.copyFilesToLocal(IndexCopier.java:457)

        at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier$CopyOnReadDirectory.prefetchIndexFiles(IndexCopier.java:413)

        at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier$CopyOnReadDirectory.<init>(IndexCopier.java:324)

        at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier.wrapForRead(IndexCopier.java:140)

        at org.apache.jackrabbit.oak.plugins.index.lucene.IndexNode.open(IndexNode.java:53)

        at org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker.findIndexNode(IndexTracker.java:179)

        at org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker.acquireIndexNode(IndexTracker.java:154)

        at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex.getPlans(LucenePropertyIndex.java:243)

        at org.apache.jackrabbit.oak.query.QueryImpl.getBestSelectorExecutionPlan(QueryImpl.java:1016)

        at org.apache.jackrabbit.oak.query.QueryImpl.getBestSelectorExecutionPlan(QueryImpl.java:949)

        at org.apache.jackrabbit.oak.query.ast.SelectorImpl.prepare(SelectorImpl.java:288)

        at org.apache.jackrabbit.oak.query.QueryImpl.prepare(QueryImpl.java:631)

        at org.apache.jackrabbit.oak.query.QueryEngineImpl.prepareAndSelect(QueryEngineImpl.java:298)

        at org.apache.jackrabbit.oak.query.QueryEngineImpl.executeQuery(QueryEngineImpl.java:273)

        at org.apache.jackrabbit.oak.query.QueryEngineImpl.executeQuery(QueryEngineImpl.java:233)

        at org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager.resolveUUID(IdentifierManager.java:314)

        at org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager.resolveUUID(IdentifierManager.java:308)

        at org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager.resolveUUID(IdentifierManager.java:304)

        at org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager.getTree(IdentifierManager.java:133)

        at org.apache.jackrabbit.oak.security.user.AuthorizableBaseProvider.getByContentID(AuthorizableBaseProvider.java:56)

        at org.apache.jackrabbit.oak.security.user.AuthorizableBaseProvider.getByID(AuthorizableBaseProvider.java:51)

        at org.apache.jackrabbit.oak.security.user.UserProvider.getAuthorizable(UserProvider.java:211)

        at org.apache.jackrabbit.oak.security.user.UserManagerImpl.getAuthorizable(UserManagerImpl.java:110)

        at org.apache.jackrabbit.oak.security.user.UserAuthentication.authenticate(UserAuthentication.java:100)

        at org.apache.jackrabbit.oak.security.authentication.user.LoginModuleImpl.login(LoginModuleImpl.java:131)

        at org.apache.felix.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:52)

        at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)

        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)

        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)

        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)

        at java.security.AccessController.doPrivileged(Native Method)

        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)

        at javax.security.auth.login.LoginContext.login(LoginContext.java:587)

        at org.apache.jackrabbit.oak.core.ContentRepositoryImpl.login(ContentRepositoryImpl.java:165)

        at org.apache.jackrabbit.oak.jcr.repository.RepositoryImpl.login(RepositoryImpl.java:280)

        at com.adobe.granite.repository.impl.CRX3RepositoryImpl.login(CRX3RepositoryImpl.java:94)

        at org.apache.jackrabbit.oak.jcr.repository.RepositoryImpl.login(RepositoryImpl.java:219)

        at org.apache.sling.jcr.base.AbstractSlingRepository2.login(AbstractSlingRepository2.java:288)

        at org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderStateFactory.createProviderState(JcrProviderStateFactory.java:121)

        at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.authenticate(JcrResourceProvider.java:267)

        at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.authenticate(JcrResourceProvider.java:78)

        at org.apache.sling.resourceresolver.impl.providers.stateful.ProviderManager.authenticate(ProviderManager.java:161)

        at org.apache.sling.resourceresolver.impl.providers.stateful.ProviderManager.getOrCreateProvider(ProviderManager.java:87)

        at org.apache.sling.resourceresolver.impl.providers.stateful.ProviderManager.authenticateAll(ProviderManager.java:129)

        at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.createControl(ResourceResolverImpl.java:154)

        at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:116)

        at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:110)

        at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolverInternal(CommonResourceResolverFactoryImpl.java:258)

        at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolver(CommonResourceResolverFactoryImpl.java:163)

        at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getResourceResolver(ResourceResolverFactoryImpl.java:101)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:861)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:964)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:883)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:964)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:883)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:964)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:883)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:964)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:883)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:964)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:883)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:964)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.getAnonymousResolver(SlingAuthenticator.java:883)

        at org.apache.sling.auth.core.impl.SlingAuthenticator.handleLoginFailure(SlingAuthenticator.java:964)

Thanks,

GVK

Replies

Highlighted

Gunalan_V

17-04-2018

We are using primary and nosamplecontent modes so after updating the below sling run modes it started fine.

sling.run.modes=author,primary,nosamplecontent,test

Highlighted

AnkurAhlawat

18-04-2018

Could you please provide below details:-

  • Which version of aem you are using?
  • Are you getting same exception when you are running custom run modes on vanilla instance (Fresh instance without your custom code)
Highlighted

Gunalan_V

19-04-2018

Hi Ankur,

  • Which version of aem you are using? - AEM 6.2
  • Are you getting same exception when you are running custom run modes on vanilla instance (Fresh instance without your custom code)

          -     I have not tried in fresh instance but It's working fine now after updating sling.properties as above ("sling.run.modes=author,primary,nosamplecontent,test")

Thanks,

GVK