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 }

GitHub | xmlking | 3 months ago
  1. 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 }
  2. 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 }
  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 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 }

      at com.mongodb.connection.ProtocolHelper.getCommandFailureException()
    2. MongoDB Java Driver
      AsynchronousSocketChannelStream$AsyncWritableByteChannelAdapter$WriteCompletionHandler.completed
      1. com.mongodb.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:86)
      2. com.mongodb.connection.CommandResultCallback.callCallback(CommandResultCallback.java:51)
      3. com.mongodb.connection.CommandResultCallback.callCallback(CommandResultCallback.java:29)
      4. com.mongodb.connection.CommandResultBaseCallback.callCallback(CommandResultBaseCallback.java:39)
      5. com.mongodb.connection.ResponseCallback.onResult(ResponseCallback.java:48)
      6. com.mongodb.connection.ResponseCallback.onResult(ResponseCallback.java:23)
      7. com.mongodb.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:463)
      8. com.mongodb.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:457)
      9. com.mongodb.connection.UsageTrackingInternalConnection$3.onResult(UsageTrackingInternalConnection.java:127)
      10. com.mongodb.connection.UsageTrackingInternalConnection$3.onResult(UsageTrackingInternalConnection.java:123)
      11. com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53)
      12. com.mongodb.connection.InternalStreamConnection.executeCallbackAndReceiveResponse(InternalStreamConnection.java:375)
      13. com.mongodb.connection.InternalStreamConnection.access$1700(InternalStreamConnection.java:65)
      14. com.mongodb.connection.InternalStreamConnection$ResponseBuffersCallback.onResult(InternalStreamConnection.java:417)
      15. com.mongodb.connection.InternalStreamConnection$ResponseBuffersCallback.onResult(InternalStreamConnection.java:386)
      16. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onSuccess(InternalStreamConnection.java:555)
      17. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.access$2200(InternalStreamConnection.java:514)
      18. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback$ResponseBodyCallback.onResult(InternalStreamConnection.java:577)
      19. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback$ResponseBodyCallback.onResult(InternalStreamConnection.java:561)
      20. com.mongodb.connection.InternalStreamConnection$3.completed(InternalStreamConnection.java:444)
      21. com.mongodb.connection.InternalStreamConnection$3.completed(InternalStreamConnection.java:441)
      22. com.mongodb.connection.AsynchronousSocketChannelStream$BasicCompletionHandler.completed(AsynchronousSocketChannelStream.java:218)
      23. com.mongodb.connection.AsynchronousSocketChannelStream$BasicCompletionHandler.completed(AsynchronousSocketChannelStream.java:201)
      24. com.mongodb.connection.AsynchronousSocketChannelStream.readAsync(AsynchronousSocketChannelStream.java:125)
      25. com.mongodb.connection.InternalStreamConnection.readAsync(InternalStreamConnection.java:441)
      26. com.mongodb.connection.InternalStreamConnection.access$2000(InternalStreamConnection.java:65)
      27. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onResult(InternalStreamConnection.java:537)
      28. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onResult(InternalStreamConnection.java:514)
      29. com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53)
      30. com.mongodb.connection.InternalStreamConnection$3.completed(InternalStreamConnection.java:444)
      31. com.mongodb.connection.InternalStreamConnection$3.completed(InternalStreamConnection.java:441)
      32. com.mongodb.connection.AsynchronousSocketChannelStream$BasicCompletionHandler.completed(AsynchronousSocketChannelStream.java:218)
      33. com.mongodb.connection.AsynchronousSocketChannelStream$BasicCompletionHandler.completed(AsynchronousSocketChannelStream.java:201)
      34. com.mongodb.connection.AsynchronousSocketChannelStream.readAsync(AsynchronousSocketChannelStream.java:125)
      35. com.mongodb.connection.InternalStreamConnection.readAsync(InternalStreamConnection.java:441)
      36. com.mongodb.connection.InternalStreamConnection.receiveResponseAsync(InternalStreamConnection.java:430)
      37. com.mongodb.connection.InternalStreamConnection.executeCallbackAndReceiveResponse(InternalStreamConnection.java:382)
      38. com.mongodb.connection.InternalStreamConnection.receiveMessageAsync(InternalStreamConnection.java:366)
      39. com.mongodb.connection.UsageTrackingInternalConnection.receiveMessageAsync(UsageTrackingInternalConnection.java:130)
      40. com.mongodb.connection.DefaultConnectionPool$PooledConnection.receiveMessageAsync(DefaultConnectionPool.java:457)
      41. com.mongodb.connection.SendMessageCallback.onResult(SendMessageCallback.java:45)
      42. com.mongodb.connection.SendMessageCallback.onResult(SendMessageCallback.java:22)
      43. com.mongodb.connection.DefaultConnectionPool$PooledConnection$1.onResult(DefaultConnectionPool.java:449)
      44. com.mongodb.connection.DefaultConnectionPool$PooledConnection$1.onResult(DefaultConnectionPool.java:443)
      45. com.mongodb.connection.UsageTrackingInternalConnection$2.onResult(UsageTrackingInternalConnection.java:114)
      46. com.mongodb.connection.UsageTrackingInternalConnection$2.onResult(UsageTrackingInternalConnection.java:110)
      47. com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53)
      48. com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:309)
      49. com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:294)
      50. com.mongodb.connection.AsynchronousSocketChannelStream$1.completed(AsynchronousSocketChannelStream.java:111)
      51. com.mongodb.connection.AsynchronousSocketChannelStream$1.completed(AsynchronousSocketChannelStream.java:105)
      52. com.mongodb.connection.AsynchronousSocketChannelStream$2.completed(AsynchronousSocketChannelStream.java:164)
      53. com.mongodb.connection.AsynchronousSocketChannelStream$2.completed(AsynchronousSocketChannelStream.java:158)
      54. com.mongodb.connection.AsynchronousSocketChannelStream$AsyncWritableByteChannelAdapter$WriteCompletionHandler.completed(AsynchronousSocketChannelStream.java:190)
      55. com.mongodb.connection.AsynchronousSocketChannelStream$AsyncWritableByteChannelAdapter$WriteCompletionHandler.completed(AsynchronousSocketChannelStream.java:181)
      55 frames
    3. Java RT
      AsynchronousSocketChannel.write
      1. java.nio.channels.AsynchronousSocketChannel.write(AsynchronousSocketChannel.java:577)
      1 frame
    4. MongoDB Java Driver
      AsynchronousSocketChannelStream$BasicCompletionHandler.completed
      1. com.mongodb.connection.AsynchronousSocketChannelStream$AsyncWritableByteChannelAdapter.write(AsynchronousSocketChannelStream.java:178)
      2. com.mongodb.connection.AsynchronousSocketChannelStream.pipeOneBuffer(AsynchronousSocketChannelStream.java:158)
      3. com.mongodb.connection.AsynchronousSocketChannelStream.writeAsync(AsynchronousSocketChannelStream.java:105)
      4. com.mongodb.connection.InternalStreamConnection.writeAsync(InternalStreamConnection.java:294)
      5. com.mongodb.connection.InternalStreamConnection.sendMessageAsync(InternalStreamConnection.java:288)
      6. com.mongodb.connection.UsageTrackingInternalConnection.sendMessageAsync(UsageTrackingInternalConnection.java:117)
      7. com.mongodb.connection.DefaultConnectionPool$PooledConnection.sendMessageAsync(DefaultConnectionPool.java:443)
      8. com.mongodb.connection.CommandProtocol.executeAsync(CommandProtocol.java:162)
      9. com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.executeAsync(DefaultServer.java:169)
      10. com.mongodb.connection.DefaultServerConnection.executeProtocolAsync(DefaultServerConnection.java:292)
      11. com.mongodb.connection.DefaultServerConnection.commandAsync(DefaultServerConnection.java:181)
      12. com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocolAsync(CommandOperationHelper.java:368)
      13. com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocolAsync(CommandOperationHelper.java:358)
      14. com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocolAsync(CommandOperationHelper.java:263)
      15. com.mongodb.operation.AggregateOperation$2$1.call(AggregateOperation.java:250)
      16. com.mongodb.operation.OperationHelper.checkValidReadConcern(OperationHelper.java:90)
      17. com.mongodb.operation.AggregateOperation$2.call(AggregateOperation.java:244)
      18. com.mongodb.operation.OperationHelper$2.onResult(OperationHelper.java:290)
      19. com.mongodb.operation.OperationHelper$2.onResult(OperationHelper.java:287)
      20. com.mongodb.connection.DefaultServer$1.onResult(DefaultServer.java:91)
      21. com.mongodb.connection.DefaultServer$1.onResult(DefaultServer.java:82)
      22. com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53)
      23. com.mongodb.connection.DefaultConnectionPool$2.onResult(DefaultConnectionPool.java:201)
      24. com.mongodb.connection.DefaultConnectionPool$2.onResult(DefaultConnectionPool.java:186)
      25. com.mongodb.connection.UsageTrackingInternalConnection$1.onResult(UsageTrackingInternalConnection.java:62)
      26. com.mongodb.connection.UsageTrackingInternalConnection$1.onResult(UsageTrackingInternalConnection.java:54)
      27. com.mongodb.connection.InternalStreamConnection$1$1.onResult(InternalStreamConnection.java:155)
      28. com.mongodb.connection.InternalStreamConnection$1$1.onResult(InternalStreamConnection.java:142)
      29. com.mongodb.connection.InternalStreamConnectionInitializer$3.onResult(InternalStreamConnectionInitializer.java:146)
      30. com.mongodb.connection.InternalStreamConnectionInitializer$3.onResult(InternalStreamConnectionInitializer.java:140)
      31. com.mongodb.connection.CommandHelper$1$1.onResult(CommandHelper.java:53)
      32. com.mongodb.connection.CommandHelper$1$1.onResult(CommandHelper.java:43)
      33. com.mongodb.connection.CommandHelper$3.onResult(CommandHelper.java:155)
      34. com.mongodb.connection.CommandHelper$3.onResult(CommandHelper.java:148)
      35. com.mongodb.connection.InternalStreamConnection.executeCallbackAndReceiveResponse(InternalStreamConnection.java:375)
      36. com.mongodb.connection.InternalStreamConnection.access$1700(InternalStreamConnection.java:65)
      37. com.mongodb.connection.InternalStreamConnection$ResponseBuffersCallback.onResult(InternalStreamConnection.java:417)
      38. com.mongodb.connection.InternalStreamConnection$ResponseBuffersCallback.onResult(InternalStreamConnection.java:386)
      39. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onSuccess(InternalStreamConnection.java:555)
      40. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.access$2200(InternalStreamConnection.java:514)
      41. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback$ResponseBodyCallback.onResult(InternalStreamConnection.java:577)
      42. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback$ResponseBodyCallback.onResult(InternalStreamConnection.java:561)
      43. com.mongodb.connection.InternalStreamConnection$3.completed(InternalStreamConnection.java:444)
      44. com.mongodb.connection.InternalStreamConnection$3.completed(InternalStreamConnection.java:441)
      45. com.mongodb.connection.AsynchronousSocketChannelStream$BasicCompletionHandler.completed(AsynchronousSocketChannelStream.java:218)
      46. com.mongodb.connection.AsynchronousSocketChannelStream$BasicCompletionHandler.completed(AsynchronousSocketChannelStream.java:201)
      47. com.mongodb.connection.AsynchronousSocketChannelStream.readAsync(AsynchronousSocketChannelStream.java:125)
      48. com.mongodb.connection.InternalStreamConnection.readAsync(InternalStreamConnection.java:441)
      49. com.mongodb.connection.InternalStreamConnection.access$2000(InternalStreamConnection.java:65)
      50. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onResult(InternalStreamConnection.java:537)
      51. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onResult(InternalStreamConnection.java:514)
      52. com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53)
      53. com.mongodb.connection.InternalStreamConnection$3.completed(InternalStreamConnection.java:444)
      54. com.mongodb.connection.InternalStreamConnection$3.completed(InternalStreamConnection.java:441)
      55. com.mongodb.connection.AsynchronousSocketChannelStream$BasicCompletionHandler.completed(AsynchronousSocketChannelStream.java:218)
      56. com.mongodb.connection.AsynchronousSocketChannelStream$BasicCompletionHandler.completed(AsynchronousSocketChannelStream.java:201)
      56 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames