org.springframework.data.mongodb.UncategorizedMongoDbException: Command failed with error 13: 'not authorized on myDb to execute command { listCollections: 1, cursor: { batchSize: 0 } }' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "not authorized on myDb to execute command { listCollections: 1, cursor: { batchSize: 0 } }", "code" : 13 }; nested exception is com.mongodb.MongoCommandException: Command failed with error 13: 'not authorized on journaldev to execute command { listCollections: 1, cursor: { batchSize: 0 } }' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "not authorized on myDb to execute command { listCollections: 1, cursor: { batchSize: 0 } }", "code" : 13 }

Stack Overflow | chiku | 4 months ago
  1. 0

    spring-data-mongodb giving mongodb authentication exception

    Stack Overflow | 4 months ago | chiku
    org.springframework.data.mongodb.UncategorizedMongoDbException: Command failed with error 13: 'not authorized on myDb to execute command { listCollections: 1, cursor: { batchSize: 0 } }' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "not authorized on myDb to execute command { listCollections: 1, cursor: { batchSize: 0 } }", "code" : 13 }; nested exception is com.mongodb.MongoCommandException: Command failed with error 13: 'not authorized on journaldev to execute command { listCollections: 1, cursor: { batchSize: 0 } }' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "not authorized on myDb to execute command { listCollections: 1, cursor: { batchSize: 0 } }", "code" : 13 }
  2. 0

    Grails 3.2 with MongoDB not using provided databaseName

    GitHub | 3 months ago | xmlking
    com.mongodb.MongoCommandException: Command failed with error 13: 'not authorized on myapp to execute command { aggregate: "todo", pipeline: [ { $project: { _id: 1 } }, { $group: { _id: 0, count: { $sum: 1 } } } ], cursor: { batchSize: 128 } }' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "not authorized on myapp to execute command { aggregate: \"todo\", pipeline: [ { $project: { _id: 1 } }, { $group: { _id: 0, count: { $sum: 1 } } } ], cursor: { batchSize: 128 } }", "code" : 13 }
  3. 0

    GitHub comment 17#172569668

    GitHub | 11 months ago | sboesebeck
    java.lang.RuntimeException: de.caluga.morphium.driver.MorphiumDriverException: internal error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 17#172484365

    GitHub | 11 months ago | KiranNaikwade
    java.lang.RuntimeException: de.caluga.morphium.driver.MorphiumDriverException: internal error
  6. 0

    GitHub comment 17#172484365

    GitHub | 11 months ago | KiranNaikwade
    java.lang.RuntimeException: de.caluga.morphium.driver.MorphiumDriverException: internal error

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.mongodb.MongoCommandException

      Command failed with error 13: 'not authorized on myDb to execute command { listCollections: 1, cursor: { batchSize: 0 } }' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "not authorized on myDb to execute command { listCollections: 1, cursor: { batchSize: 0 } }", "code" : 13 }

      at com.mongodb.connection.ProtocolHelper.getCommandFailureException()
    2. MongoDB Java Driver
      DB.getCollectionNames
      1. com.mongodb.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:86)
      2. com.mongodb.connection.CommandProtocol.execute(CommandProtocol.java:119)
      3. com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:159)
      4. com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:286)
      5. com.mongodb.connection.DefaultServerConnection.command(DefaultServerConnection.java:173)
      6. com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:215)
      7. com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:206)
      8. com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:112)
      9. com.mongodb.operation.ListCollectionsOperation$1.call(ListCollectionsOperation.java:177)
      10. com.mongodb.operation.ListCollectionsOperation$1.call(ListCollectionsOperation.java:172)
      11. com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:239)
      12. com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:212)
      13. com.mongodb.operation.ListCollectionsOperation.execute(ListCollectionsOperation.java:172)
      14. com.mongodb.operation.ListCollectionsOperation.execute(ListCollectionsOperation.java:80)
      15. com.mongodb.Mongo.execute(Mongo.java:773)
      16. com.mongodb.Mongo$2.execute(Mongo.java:760)
      17. com.mongodb.OperationIterable.iterator(OperationIterable.java:47)
      18. com.mongodb.OperationIterable.forEach(OperationIterable.java:70)
      19. com.mongodb.MappingIterable.forEach(MappingIterable.java:50)
      20. com.mongodb.MappingIterable.into(MappingIterable.java:60)
      21. com.mongodb.DB.getCollectionNames(DB.java:253)
      21 frames
    3. Spring Data MongoDB - Core
      MongoTemplate.getCollectionNames
      1. org.springframework.data.mongodb.core.MongoTemplate$14.doInDB(MongoTemplate.java:1656)
      2. org.springframework.data.mongodb.core.MongoTemplate$14.doInDB(MongoTemplate.java:1654)
      3. org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:446)
      4. org.springframework.data.mongodb.core.MongoTemplate.getCollectionNames(MongoTemplate.java:1654)
      4 frames
    4. dao
      TemplateDaoImpl.testingSales
      1. dao.TemplateDaoImpl.testingSales(TemplateDaoImpl.java:4812)
      1 frame
    5. dao.impl
      TemplateDaoImpl.main
      1. dao.impl.TemplateDaoImpl.main(TemplateDaoImpl.java:340)
      1 frame