Project

General

Profile

auth failed

xx c
Added over 3 years ago

com.mongodb.CommandFailureException: { "serverUsed" : "10.0.146.34:27017" , "ok" : 0.0 , "errmsg" : "auth failed" , "code" : 18}

at com.mongodb.CommandResult.getException(CommandResult.java:76)

at com.mongodb.CommandResult.throwOnError(CommandResult.java:131)

at com.mongodb.DBPort$NativeAuthenticator.authenticate(DBPort.java:652)

at com.mongodb.DBPort.authenticate(DBPort.java:364)

at com.mongodb.DBPort.checkAuth(DBPort.java:375)

at com.mongodb.DBTCPConnector.doOperation(DBTCPConnector.java:209)

at com.mongodb.DBCollectionImpl.sendWriteCommandMessage(DBCollectionImpl.java:477)

at com.mongodb.DBCollectionImpl.writeWithCommandProtocol(DBCollectionImpl.java:427)

at com.mongodb.DBCollectionImpl.updateWithCommandProtocol(DBCollectionImpl.java:417)

at com.mongodb.DBCollectionImpl.update(DBCollectionImpl.java:267)

at com.mongodb.DBCollection.update(DBCollection.java:191)

at com.mongodb.DBCollection.update(DBCollection.java:224)

at tigase.mongodb.cluster.ClConMongoRepository.storeItem(ClConMongoRepository.java:143)

at tigase.cluster.repo.ClConConfigRepository.reload(ClConConfigRepository.java:120)

at tigase.mongodb.cluster.ClConMongoRepository.reload(ClConMongoRepository.java:163)

at tigase.db.comp.ConfigRepository$1.run(ConfigRepository.java:74)

at java.util.TimerThread.mainLoop(Timer.java:555)

at java.util.TimerThread.run(Timer.java:505)

2015-07-14 21:57:24.330 [cluster-nodes] ClConMongoRepository.reload() WARNING: Problem getting elements from DB:

and my db URI :

--user-db-uri=mongodb://xmppuser:Jj#S5Rv3i5Bpp@10.0.146.34/xmppdb

is there something wrong?


Replies (1)

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Have you created MongoDB user xmppuser in the xmppdb Mongo db? You should first create xmppdb db and then add to that db add user with readWrite permissions.

    (1-1/1)