Hi Ratna,
it appears you need to add authentication to the MongoDB URI. In the log file
you attached, reading from MongoDB fails with:
2020-09-25 23:10:01.079 ERROR 126802 --- [ main]
o.apache.jackrabbit.oak-store-document :
[org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService(45)] The
bindBlobStore method has thrown an exception (com.mongodb.MongoQueryException:
Query failed with error code 13 and error message 'command find requires
authentication' on server localhost:27017)
com.mongodb.MongoQueryException: Query failed with error code 13 and error
message 'command find requires authentication' on server localhost:27017
Regards
Marcel
On 26.09.20, 17:23, "Ratna K" <[email protected]> wrote:
Hi,
I want to try out / learn jcr-oak. So I started with standalone in
ocr-examples. I am trying to start by following instructions in readme. Please
find below stacktrace for the error message I am getting:
Caused by: javax.jcr.RepositoryException: Repository could not be started in 10
seconds
at
org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.getRepository(OakOSGiRepositoryFactory.java:213)
at
org.apache.jackrabbit.oak.standalone.RepositoryInitializer.createRepository(RepositoryInitializer.java:132)
at
org.apache.jackrabbit.oak.standalone.RepositoryInitializer.initRepository(RepositoryInitializer.java:111)
at
org.apache.jackrabbit.oak.standalone.RepositoryInitializer.initialize(RepositoryInitializer.java:83)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:366)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:311)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:134)
... 83 common frames omitted
Caused by: java.util.concurrent.TimeoutException: Timeout waiting for task.
at
com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:269)
at
com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:96)
at
org.apache.jackrabbit.oak.run.osgi.OakOSGiRepositoryFactory.getRepository(OakOSGiRepositoryFactory.java:195)
... 93 common frames omitted
Also please find attachment for full logs. I am running below command to start
the standalone app:
java -jar target/oak-standalone-1.35-SNAPSHOT-exec.jar
--mongo=mongodb://localhost:27017
My mongo db is up and running and I am sure there is a db called oak in mongodb
instance.
Help in this would really be appreciated.
Regards
Ratna