com.mongodb.MongoCommandException: Command failed with error 13140: 'exception: Don't recognize source or target DB' on server localhost:27018. The full response is { "code" : 13140, "ok" : 0.0, "errmsg" : "exception: Don't recognize source or target DB" }

JIRA | Jeff Yemin | 2 years ago
  1. 0

    Test: "com.mongodb.async.client.SmokeTestSpecification.should handle common administrative scenarios without error" Here's one: {noformat} com.mongodb.MongoTimeoutException: Callback timed out at com.mongodb.async.FutureResultCallback.get(FutureResultCallback.java:74) at com.mongodb.async.client.SmokeTestSpecification.run(SmokeTestSpecification.groovy:177) at com.mongodb.async.client.SmokeTestSpecification.should handle common administrative scenarios without error(SmokeTestSpecification.groovy:108) {noformat} and another: {noformat} com.mongodb.MongoCommandException: Command failed with error 13140: 'exception: Don't recognize source or target DB' on server localhost:27018. The full response is { "code" : 13140, "ok" : 0.0, "errmsg" : "exception: Don't recognize source or target DB" } at com.mongodb.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:75) at com.mongodb.connection.CommandResultCallback.callCallback(CommandResultCallback.java:51) at com.mongodb.connection.CommandResultCallback.callCallback(CommandResultCallback.java:29) at com.mongodb.connection.CommandResultBaseCallback.callCallback(CommandResultBaseCallback.java:39) at com.mongodb.connection.ResponseCallback.onResult(ResponseCallback.java:48) at com.mongodb.connection.ResponseCallback.onResult(ResponseCallback.java:23) at com.mongodb.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:417) at com.mongodb.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:411) at com.mongodb.connection.UsageTrackingInternalConnection$3.onResult(UsageTrackingInternalConnection.java:127) at com.mongodb.connection.UsageTrackingInternalConnection$3.onResult(UsageTrackingInternalConnection.java:123) at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53) at com.mongodb.connection.InternalStreamConnection.processPendingResults(InternalStreamConnection.java:528) at com.mongodb.connection.InternalStreamConnection.processPendingReads(InternalStreamConnection.java:424) at com.mongodb.connection.InternalStreamConnection.access$1300(InternalStreamConnection.java:55) at com.mongodb.connection.InternalStreamConnection$3.onResult(InternalStreamConnection.java:460) at com.mongodb.connection.InternalStreamConnection$3.onResult(InternalStreamConnection.java:449) at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onSuccess(InternalStreamConnection.java:386) at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.access$900(InternalStreamConnection.java:341) at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback$ResponseBodyCallback.onResult(InternalStreamConnection.java:408) at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback$ResponseBodyCallback.onResult(InternalStreamConnection.java:392) at com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:273) at com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:270) at com.mongodb.connection.netty.NettyStream.readAsync(NettyStream.java:211) at com.mongodb.connection.InternalStreamConnection.fillAndFlipBuffer(InternalStreamConnection.java:270) at com.mongodb.connection.InternalStreamConnection.access$700(InternalStreamConnection.java:55) at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onResult(InternalStreamConnection.java:364) at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onResult(InternalStreamConnection.java:341) at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53) at com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:273) at com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:270) at com.mongodb.connection.netty.NettyStream.readAsync(NettyStream.java:211) at com.mongodb.connection.netty.NettyStream.handleReadResponse(NettyStream.java:241) at com.mongodb.connection.netty.NettyStream.access$700(NettyStream.java:60) at com.mongodb.connection.netty.NettyStream$InboundBufferHandler.channelRead0(NettyStream.java:272) at com.mongodb.connection.netty.NettyStream$InboundBufferHandler.channelRead0(NettyStream.java:269) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) at io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:150) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) at java.lang.Thread.run(Thread.java:662) {noformat}

    JIRA | 2 years ago | Jeff Yemin
    com.mongodb.MongoCommandException: Command failed with error 13140: 'exception: Don't recognize source or target DB' on server localhost:27018. The full response is { "code" : 13140, "ok" : 0.0, "errmsg" : "exception: Don't recognize source or target DB" }
  2. 0

    Test: "com.mongodb.async.client.SmokeTestSpecification.should handle common administrative scenarios without error" Here's one: {noformat} com.mongodb.MongoTimeoutException: Callback timed out at com.mongodb.async.FutureResultCallback.get(FutureResultCallback.java:74) at com.mongodb.async.client.SmokeTestSpecification.run(SmokeTestSpecification.groovy:177) at com.mongodb.async.client.SmokeTestSpecification.should handle common administrative scenarios without error(SmokeTestSpecification.groovy:108) {noformat} and another: {noformat} com.mongodb.MongoCommandException: Command failed with error 13140: 'exception: Don't recognize source or target DB' on server localhost:27018. The full response is { "code" : 13140, "ok" : 0.0, "errmsg" : "exception: Don't recognize source or target DB" } at com.mongodb.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:75) at com.mongodb.connection.CommandResultCallback.callCallback(CommandResultCallback.java:51) at com.mongodb.connection.CommandResultCallback.callCallback(CommandResultCallback.java:29) at com.mongodb.connection.CommandResultBaseCallback.callCallback(CommandResultBaseCallback.java:39) at com.mongodb.connection.ResponseCallback.onResult(ResponseCallback.java:48) at com.mongodb.connection.ResponseCallback.onResult(ResponseCallback.java:23) at com.mongodb.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:417) at com.mongodb.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:411) at com.mongodb.connection.UsageTrackingInternalConnection$3.onResult(UsageTrackingInternalConnection.java:127) at com.mongodb.connection.UsageTrackingInternalConnection$3.onResult(UsageTrackingInternalConnection.java:123) at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53) at com.mongodb.connection.InternalStreamConnection.processPendingResults(InternalStreamConnection.java:528) at com.mongodb.connection.InternalStreamConnection.processPendingReads(InternalStreamConnection.java:424) at com.mongodb.connection.InternalStreamConnection.access$1300(InternalStreamConnection.java:55) at com.mongodb.connection.InternalStreamConnection$3.onResult(InternalStreamConnection.java:460) at com.mongodb.connection.InternalStreamConnection$3.onResult(InternalStreamConnection.java:449) at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onSuccess(InternalStreamConnection.java:386) at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.access$900(InternalStreamConnection.java:341) at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback$ResponseBodyCallback.onResult(InternalStreamConnection.java:408) at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback$ResponseBodyCallback.onResult(InternalStreamConnection.java:392) at com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:273) at com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:270) at com.mongodb.connection.netty.NettyStream.readAsync(NettyStream.java:211) at com.mongodb.connection.InternalStreamConnection.fillAndFlipBuffer(InternalStreamConnection.java:270) at com.mongodb.connection.InternalStreamConnection.access$700(InternalStreamConnection.java:55) at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onResult(InternalStreamConnection.java:364) at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onResult(InternalStreamConnection.java:341) at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53) at com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:273) at com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:270) at com.mongodb.connection.netty.NettyStream.readAsync(NettyStream.java:211) at com.mongodb.connection.netty.NettyStream.handleReadResponse(NettyStream.java:241) at com.mongodb.connection.netty.NettyStream.access$700(NettyStream.java:60) at com.mongodb.connection.netty.NettyStream$InboundBufferHandler.channelRead0(NettyStream.java:272) at com.mongodb.connection.netty.NettyStream$InboundBufferHandler.channelRead0(NettyStream.java:269) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) at io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:150) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) at java.lang.Thread.run(Thread.java:662) {noformat}

    JIRA | 2 years ago | Jeff Yemin
    com.mongodb.MongoCommandException: Command failed with error 13140: 'exception: Don't recognize source or target DB' on server localhost:27018. The full response is { "code" : 13140, "ok" : 0.0, "errmsg" : "exception: Don't recognize source or target DB" }
  3. 0

    add support for dateToString expression

    GitHub | 11 months ago | parvanov
    com.mongodb.MongoCommandException: Command failed with error 18629: '$dateToString only supports an object as its argument' on server localhost:27018. The full response is { "ok" : 0.0, "errmsg" : "$dateToString only supports an object as its argument", "code" : 18629 }
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 314#184535672

    GitHub | 10 months ago | jimzucker
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='db', source='dashboard', password=, mechanismProperties={}}
  6. 0

    Error connecting to MongoDB hosted in the cloud, using JDBC

    Stack Overflow | 9 months ago | RafiChozhan
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='db_userName', source='heroku_dbName', password=, mechanismProperties={}}

    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 13140: 'exception: Don't recognize source or target DB' on server localhost:27018. The full response is { "code" : 13140, "ok" : 0.0, "errmsg" : "exception: Don't recognize source or target DB" }

      at com.mongodb.connection.ProtocolHelper.getCommandFailureException()
    2. MongoDB Java Driver
      NettyStream$InboundBufferHandler.channelRead0
      1. com.mongodb.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:75)
      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:417)
      8. com.mongodb.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:411)
      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.processPendingResults(InternalStreamConnection.java:528)
      13. com.mongodb.connection.InternalStreamConnection.processPendingReads(InternalStreamConnection.java:424)
      14. com.mongodb.connection.InternalStreamConnection.access$1300(InternalStreamConnection.java:55)
      15. com.mongodb.connection.InternalStreamConnection$3.onResult(InternalStreamConnection.java:460)
      16. com.mongodb.connection.InternalStreamConnection$3.onResult(InternalStreamConnection.java:449)
      17. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onSuccess(InternalStreamConnection.java:386)
      18. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.access$900(InternalStreamConnection.java:341)
      19. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback$ResponseBodyCallback.onResult(InternalStreamConnection.java:408)
      20. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback$ResponseBodyCallback.onResult(InternalStreamConnection.java:392)
      21. com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:273)
      22. com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:270)
      23. com.mongodb.connection.netty.NettyStream.readAsync(NettyStream.java:211)
      24. com.mongodb.connection.InternalStreamConnection.fillAndFlipBuffer(InternalStreamConnection.java:270)
      25. com.mongodb.connection.InternalStreamConnection.access$700(InternalStreamConnection.java:55)
      26. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onResult(InternalStreamConnection.java:364)
      27. com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onResult(InternalStreamConnection.java:341)
      28. com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53)
      29. com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:273)
      30. com.mongodb.connection.InternalStreamConnection$2.completed(InternalStreamConnection.java:270)
      31. com.mongodb.connection.netty.NettyStream.readAsync(NettyStream.java:211)
      32. com.mongodb.connection.netty.NettyStream.handleReadResponse(NettyStream.java:241)
      33. com.mongodb.connection.netty.NettyStream.access$700(NettyStream.java:60)
      34. com.mongodb.connection.netty.NettyStream$InboundBufferHandler.channelRead0(NettyStream.java:272)
      35. com.mongodb.connection.netty.NettyStream$InboundBufferHandler.channelRead0(NettyStream.java:269)
      35 frames
    3. Netty
      DefaultThreadFactory$DefaultRunnableDecorator.run
      1. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
      3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
      4. io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:150)
      5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
      6. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
      7. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
      8. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130)
      9. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
      10. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
      11. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
      12. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
      13. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
      14. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
      14 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame