[jira] [Commented] (OAK-4841) Error during MongoDB initialization

2016-09-22 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15513250#comment-15513250
 ] 

Marcel Reutegger commented on OAK-4841:
---

See for example this [post on 
stackoverflow|http://stackoverflow.com/questions/20879277/how-to-get-number-of-connections-to-mongodb-when-auth-true].

> Error during MongoDB initialization
> ---
>
> Key: OAK-4841
> URL: https://issues.apache.org/jira/browse/OAK-4841
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: mongomk
>Affects Versions: 1.5.6
>Reporter: Giovanni Landolina
>Assignee: Marcel Reutegger
> Fix For: 1.6, 1.5.11
>
>
> In my configuration, there's a NullPointerException when doing
> new DocumentMK.Builder().setMongoDB(db)
> due to the "serverStatus" command not returning the expected object.
> Here's my stacktrace:
> java.lang.NullPointerException
> at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
> at java.util.regex.Matcher.reset(Matcher.java:309)
> at java.util.regex.Matcher.(Matcher.java:229)
> at java.util.regex.Pattern.matcher(Pattern.java:1093)
> at 
> org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.checkVersion(MongoDocumentStore.java:305)
> at 
> org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.(MongoDocumentStore.java:236)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:633)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:655)
> The "serverStatus" command in MongoDocumentStore constructor returns:
> { "ok" : 0.0 , "errmsg" : "not authorized on  to execute command 
> { serverStatus: true }" , "code" : 13}
> Prior to version 1.5.6, "buildInfo" command was called instead, which happens 
> to work from a mongo shell, while "serverStatus" doesn't.
> Seems related to OAK-4111.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-4841) Error during MongoDB initialization

2016-09-22 Thread Giovanni Landolina (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15513221#comment-15513221
 ] 

Giovanni Landolina commented on OAK-4841:
-

Thanks for the fix, Marcel!

> Error during MongoDB initialization
> ---
>
> Key: OAK-4841
> URL: https://issues.apache.org/jira/browse/OAK-4841
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: mongomk
>Affects Versions: 1.5.6
>Reporter: Giovanni Landolina
>Assignee: Marcel Reutegger
> Fix For: 1.6, 1.5.11
>
>
> In my configuration, there's a NullPointerException when doing
> new DocumentMK.Builder().setMongoDB(db)
> due to the "serverStatus" command not returning the expected object.
> Here's my stacktrace:
> java.lang.NullPointerException
> at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
> at java.util.regex.Matcher.reset(Matcher.java:309)
> at java.util.regex.Matcher.(Matcher.java:229)
> at java.util.regex.Pattern.matcher(Pattern.java:1093)
> at 
> org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.checkVersion(MongoDocumentStore.java:305)
> at 
> org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.(MongoDocumentStore.java:236)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:633)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:655)
> The "serverStatus" command in MongoDocumentStore constructor returns:
> { "ok" : 0.0 , "errmsg" : "not authorized on  to execute command 
> { serverStatus: true }" , "code" : 13}
> Prior to version 1.5.6, "buildInfo" command was called instead, which happens 
> to work from a mongo shell, while "serverStatus" doesn't.
> Seems related to OAK-4111.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-4841) Error during MongoDb initialization

2016-09-22 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15512884#comment-15512884
 ] 

Marcel Reutegger commented on OAK-4841:
---

You are most likely running MongoDB with authentication enabled and the user 
connecting to MongoDB does not have the 'clusterAdmin' role assigned.

> Error during MongoDb initialization
> ---
>
> Key: OAK-4841
> URL: https://issues.apache.org/jira/browse/OAK-4841
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: documentmk
>Affects Versions: 1.5.6
>Reporter: Giovanni Landolina
>Assignee: Marcel Reutegger
>
> In my configuration, there's a NullPointerException when doing
> new DocumentMK.Builder().setMongoDB(db)
> due to the "serverStatus" command not returning the expected object.
> Here's my stacktrace:
> java.lang.NullPointerException
> at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
> at java.util.regex.Matcher.reset(Matcher.java:309)
> at java.util.regex.Matcher.(Matcher.java:229)
> at java.util.regex.Pattern.matcher(Pattern.java:1093)
> at 
> org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.checkVersion(MongoDocumentStore.java:305)
> at 
> org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.(MongoDocumentStore.java:236)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:633)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:655)
> The "serverStatus" command in MongoDocumentStore constructor returns:
> { "ok" : 0.0 , "errmsg" : "not authorized on  to execute command 
> { serverStatus: true }" , "code" : 13}
> Prior to version 1.5.6, "buildInfo" command was called instead, which happens 
> to work from a mongo shell, while "serverStatus" doesn't.
> Seems related to OAK-4111.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-4841) Error during MongoDb initialization

2016-09-22 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15512775#comment-15512775
 ] 

Marcel Reutegger commented on OAK-4841:
---

What is the MongoDB version you are using?

> Error during MongoDb initialization
> ---
>
> Key: OAK-4841
> URL: https://issues.apache.org/jira/browse/OAK-4841
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: documentmk
>Affects Versions: 1.5.6
>Reporter: Giovanni Landolina
>
> In my configuration, there's a NullPointerException when doing
> new DocumentMK.Builder().setMongoDB(db)
> due to the "serverStatus" command not returning the expected object.
> Here's my stacktrace:
> java.lang.NullPointerException
> at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
> at java.util.regex.Matcher.reset(Matcher.java:309)
> at java.util.regex.Matcher.(Matcher.java:229)
> at java.util.regex.Pattern.matcher(Pattern.java:1093)
> at 
> org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.checkVersion(MongoDocumentStore.java:305)
> at 
> org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.(MongoDocumentStore.java:236)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:633)
> at 
> org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:655)
> The "serverStatus" command in MongoDocumentStore constructor returns:
> { "ok" : 0.0 , "errmsg" : "not authorized on  to execute command 
> { serverStatus: true }" , "code" : 13}
> Prior to version 1.5.6, "buildInfo" command was called instead, which happens 
> to work from a mongo shell, while "serverStatus" doesn't.
> Seems related to OAK-4111.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)