Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-4278

MongoDB container image failing to run

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • container-images
    • None
    • False
    • False

      MongoDB "debezium/example-mongodb:1.8.0.Alpha1" image is failing with {{}}

      2021-11-14 15:27:16,774 ERROR [io.deb.con.mon.ReplicaSetDiscovery] (debezium-mongodbconnector-testc-replica-set-monitor) Error while reading the 'shards' collection in the 'config' database: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='debezium', source='inventory', password=<hidden>, mechanismProperties=<hidden>}: com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='debezium', source='inventory', password=<hidden>, mechanismProperties=<hidden>}

       

       

      2021-11-14 15:27:16,477 INFO  [io.deb.emb.EmbeddedEngine$EmbeddedConfig] (main) EmbeddedConfig values: 
      	access.control.allow.methods = 
      	access.control.allow.origin = 
      	admin.listeners = null
      	bootstrap.servers = [localhost:9092]
      	client.dns.lookup = use_all_dns_ips
      	config.providers = []
      	connector.client.config.override.policy = All
      	header.converter = class org.apache.kafka.connect.storage.SimpleHeaderConverter
      	key.converter = class org.apache.kafka.connect.json.JsonConverter
      	listeners = [http://:8083]
      	metric.reporters = []
      	metrics.num.samples = 2
      	metrics.recording.level = INFO
      	metrics.sample.window.ms = 30000
      	offset.flush.interval.ms = 60000
      	offset.flush.timeout.ms = 5000
      	offset.storage.file.filename = /myfile/file-connector-offsets.txt
      	offset.storage.partitions = null
      	offset.storage.replication.factor = null
      	offset.storage.topic = 
      	plugin.path = null
      	response.http.headers.config = 
      	rest.advertised.host.name = null
      	rest.advertised.listener = null
      	rest.advertised.port = null
      	rest.extension.classes = []
      	ssl.cipher.suites = null
      	ssl.client.auth = none
      	ssl.enabled.protocols = [TLSv1.2, TLSv1.3]
      	ssl.endpoint.identification.algorithm = https
      	ssl.engine.factory.class = null
      	ssl.key.password = null
      	ssl.keymanager.algorithm = SunX509
      	ssl.keystore.certificate.chain = null
      	ssl.keystore.key = null
      	ssl.keystore.location = null
      	ssl.keystore.password = null
      	ssl.keystore.type = JKS
      	ssl.protocol = TLSv1.3
      	ssl.provider = null
      	ssl.secure.random.implementation = null
      	ssl.trustmanager.algorithm = PKIX
      	ssl.truststore.certificates = null
      	ssl.truststore.location = null
      	ssl.truststore.password = null
      	ssl.truststore.type = JKS
      	task.shutdown.graceful.timeout.ms = 5000
      	topic.creation.enable = true
      	topic.tracking.allow.reset = true
      	topic.tracking.enable = true
      	value.converter = class org.apache.kafka.connect.json.JsonConverter
      
      config.put("quarkus.profile", "mongodb");
      config.put("%mongodb.debezium.source.connector.class", "io.debezium.connector.mongodb.MongoDbConnector");
      config.put("%mongodb.debezium.source.mongodb.name", "testc");
      config.put("%mongodb.debezium.source.mongodb.authsource", "inventory");
      config.put("%mongodb.debezium.source.mongodb.user", "debezium");
      config.put("%mongodb.debezium.source.mongodb.password", "dbz");
      config.put("%mongodb.debezium.source.mongodb.ssl.enabled", "false");
      config.put("%mongodb.debezium.source.database.include.list", "inventory"); // ok
      config.put("%mongodb.debezium.source.collection.include.list", "inventory[.]*");
      config.put("%mongodb.debezium.source.snapshot.include.collection.list", "inventory[.]*");
      

      exception

      2021-11-14 15:27:16,774 ERROR [io.deb.con.mon.ReplicaSetDiscovery] (debezium-mongodbconnector-testc-replica-set-monitor) Error while reading the 'shards' collection in the 'config' database: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='debezium', source='inventory', password=<hidden>, mechanismProperties=<hidden>}: com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='debezium', source='inventory', password=<hidden>, mechanismProperties=<hidden>}
      	at com.mongodb.internal.connection.SaslAuthenticator.wrapException(SaslAuthenticator.java:273)
      	at com.mongodb.internal.connection.SaslAuthenticator.getNextSaslResponse(SaslAuthenticator.java:137)
      	at com.mongodb.internal.connection.SaslAuthenticator.access$100(SaslAuthenticator.java:48)
      	at com.mongodb.internal.connection.SaslAuthenticator$1.run(SaslAuthenticator.java:63)
      	at com.mongodb.internal.connection.SaslAuthenticator$1.run(SaslAuthenticator.java:57)
      	at com.mongodb.internal.connection.SaslAuthenticator.doAsSubject(SaslAuthenticator.java:280)
      	at com.mongodb.internal.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:57)
      	at com.mongodb.internal.connection.DefaultAuthenticator.authenticate(DefaultAuthenticator.java:51)
      	at com.mongodb.internal.connection.InternalStreamConnectionInitializer.authenticate(InternalStreamConnectionInitializer.java:205)
      	at com.mongodb.internal.connection.InternalStreamConnectionInitializer.finishHandshake(InternalStreamConnectionInitializer.java:79)
      	at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:170)
      	at com.mongodb.internal.connection.UsageTrackingInternalConnection.open(UsageTrackingInternalConnection.java:53)
      	at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection.open(DefaultConnectionPool.java:495)
      	at com.mongodb.internal.connection.DefaultConnectionPool$OpenConcurrencyLimiter.openOrGetAvailable(DefaultConnectionPool.java:855)
      	at com.mongodb.internal.connection.DefaultConnectionPool$OpenConcurrencyLimiter.openOrGetAvailable(DefaultConnectionPool.java:805)
      	at com.mongodb.internal.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:154)
      	at com.mongodb.internal.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:144)
      	at com.mongodb.internal.connection.DefaultServer.getConnection(DefaultServer.java:92)
      	at com.mongodb.internal.binding.ClusterBinding$ClusterBindingConnectionSource.getConnection(ClusterBinding.java:141)
      	at com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource.getConnection(ClientSessionBinding.java:163)
      	at com.mongodb.internal.operation.CommandOperationHelper.lambda$executeCommand$4(CommandOperationHelper.java:190)
      	at com.mongodb.internal.operation.OperationHelper.withReadConnectionSource(OperationHelper.java:583)
      	at com.mongodb.internal.operation.CommandOperationHelper.executeCommand(CommandOperationHelper.java:189)
      	at com.mongodb.internal.operation.ListDatabasesOperation.execute(ListDatabasesOperation.java:201)
      	at com.mongodb.internal.operation.ListDatabasesOperation.execute(ListDatabasesOperation.java:54)
      	at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:184)
      	at com.mongodb.client.internal.MongoIterableImpl.execute(MongoIterableImpl.java:135)
      	at com.mongodb.client.internal.MongoIterableImpl.iterator(MongoIterableImpl.java:92)
      	at com.mongodb.client.internal.MappingIterable.iterator(MappingIterable.java:39)
      	at io.debezium.connector.mongodb.MongoUtil.contains(MongoUtil.java:193)
      	at io.debezium.connector.mongodb.MongoUtil.contains(MongoUtil.java:182)
      	at io.debezium.connector.mongodb.MongoUtil.onDatabase(MongoUtil.java:125)
      	at io.debezium.connector.mongodb.MongoUtil.onCollection(MongoUtil.java:140)
      	at io.debezium.connector.mongodb.MongoUtil.onCollectionDocuments(MongoUtil.java:159)
      	at io.debezium.connector.mongodb.ReplicaSetDiscovery.getReplicaSets(ReplicaSetDiscovery.java:70)
      	at io.debezium.connector.mongodb.ReplicaSetMonitorThread.run(ReplicaSetMonitorThread.java:67)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
      	at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: com.mongodb.MongoCommandException: Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:56057. The full response is {"ok": 0.0, "errmsg": "Authentication failed.", "code": 18, "codeName": "AuthenticationFailed", "operationTime": {"$timestamp": {"t": 1636900025, "i": 7}}, "$clusterTime": {"clusterTime": {"$timestamp": {"t": 1636900025, "i": 7}}, "signature": {"hash": {"$binary": {"base64": "AAAAAAAAAAAAAAAAAAAAAAAAAAA=", "subType": "00"}}, "keyId": 0}}}
      	at com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:195)
      	at com.mongodb.internal.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:398)
      	at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:319)
      	at com.mongodb.internal.connection.CommandHelper.sendAndReceive(CommandHelper.java:88)
      	at com.mongodb.internal.connection.CommandHelper.executeCommand(CommandHelper.java:36)
      	at com.mongodb.internal.connection.SaslAuthenticator.sendSaslStart(SaslAuthenticator.java:228)
      	at com.mongodb.internal.connection.SaslAuthenticator.getNextSaslResponse(SaslAuthenticator.java:135)
      	... 37 more
      

       

              Unassigned Unassigned
              ismailsimsek ismail simsek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: