Skip to content

Instantly share code, notes, and snippets.

@tschneider-aneo
Created June 18, 2024 15:59
Show Gist options
  • Save tschneider-aneo/8e808bb1da3aebac7b7d190f52788f64 to your computer and use it in GitHub Desktop.
Save tschneider-aneo/8e808bb1da3aebac7b7d190f52788f64 to your computer and use it in GitHub Desktop.
MongoDB sharded with Bitnami's Helm chart : shard pod logs when custom root credentials are defined
Name: my-mongodb-sharded-mongos-d44974ddf-hr555
Namespace: default
Priority: 0
Service Account: my-mongodb-sharded-mongos
Node: desktop-g2irosd/172.20.99.19
Start Time: Tue, 18 Jun 2024 17:25:52 +0200
Labels: app.kubernetes.io/component=mongos
app.kubernetes.io/instance=my-mongodb-sharded
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=mongodb-sharded
app.kubernetes.io/version=7.0.11
helm.sh/chart=mongodb-sharded-8.2.3
pod-template-hash=d44974ddf
Annotations: <none>
Status: Running
IP: 10.42.0.27
IPs:
IP: 10.42.0.27
Controlled By: ReplicaSet/my-mongodb-sharded-mongos-d44974ddf
Containers:
mongos:
Container ID: docker://d6acdfd0ddd591277f067450d8b2e9a699897a5767c688210363a7e957be5fd2
Image: docker.io/bitnami/mongodb-sharded:7.0.11-debian-12-r0
Image ID: docker-pullable://bitnami/mongodb-sharded@sha256:3905cc24ff0fb7ba3c226b090ce24fe74232eba58fa48075a979aabcc620f5e3
Port: 27017/TCP
Host Port: 0/TCP
SeccompProfile: RuntimeDefault
State: Running
Started: Tue, 18 Jun 2024 17:25:53 +0200
Ready: True
Restart Count: 0
Limits:
cpu: 750m
ephemeral-storage: 1Gi
memory: 768Mi
Requests:
cpu: 500m
ephemeral-storage: 50Mi
memory: 512Mi
Liveness: exec [pgrep mongos] delay=60s timeout=20s period=30s #success=1 #failure=2
Readiness: exec [/bin/sh -c mongosh --port $MONGODB_PORT_NUMBER --eval "db.adminCommand('ping')"] delay=10s timeout=20s period=30s #success=1 #failure=6
Environment:
MONGODB_ENABLE_NUMACTL: no
BITNAMI_DEBUG: false
MONGODB_SHARDING_MODE: mongos
MONGODB_INIT_RETRY_ATTEMPTS: 24
MONGODB_INIT_RETRY_DELAY: 5
MONGODB_ROOT_USER: abc123
MONGODB_ROOT_PASSWORD: <set to the key 'mongodb-root-password' in secret 'my-mongodb-sharded'> Optional: false
MONGODB_REPLICA_SET_KEY: <set to the key 'mongodb-replica-set-key' in secret 'my-mongodb-sharded'> Optional: false
MONGODB_POD_NAME: my-mongodb-sharded-mongos-d44974ddf-hr555 (v1:metadata.name)
MONGODB_ADVERTISED_HOSTNAME: $(MONGODB_POD_NAME)
MONGODB_PORT_NUMBER: 27017
MONGODB_CFG_PRIMARY_HOST: my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local
MONGODB_CFG_REPLICA_SET_NAME: my-mongodb-sharded-configsvr
MONGODB_SYSTEM_LOG_VERBOSITY: 0
MONGODB_DISABLE_SYSTEM_LOG: no
MONGODB_ENABLE_IPV6: no
MONGODB_ENABLE_DIRECTORY_PER_DB: no
Mounts:
/.mongodb from empty-dir (rw,path="app-mongosh-dir")
/opt/bitnami/mongodb/conf from empty-dir (rw,path="app-conf-dir")
/opt/bitnami/mongodb/logs from empty-dir (rw,path="app-logs-dir")
/opt/bitnami/mongodb/tmp from empty-dir (rw,path="app-tmp-dir")
/tmp from empty-dir (rw,path="tmp-dir")
Conditions:
Type Status
PodReadyToStartContainers True
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
empty-dir:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit: <unset>
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 31m default-scheduler Successfully assigned default/my-mongodb-sharded-mongos-d44974ddf-hr555 to desktop-g2irosd
Normal Pulled 31m kubelet Container image "docker.io/bitnami/mongodb-sharded:7.0.11-debian-12-r0" already present on machine
Normal Created 31m kubelet Created container mongos
Normal Started 31m kubelet Started container mongos
Warning Unhealthy 31m kubelet Readiness probe failed: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Name: my-mongodb-sharded-shard0-data-0
Namespace: default
Priority: 0
Service Account: my-mongodb-sharded-shardsvr
Node: desktop-g2irosd/172.20.99.19
Start Time: Tue, 18 Jun 2024 17:25:56 +0200
Labels: app.kubernetes.io/component=shardsvr
app.kubernetes.io/instance=my-mongodb-sharded
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=mongodb-sharded
app.kubernetes.io/version=7.0.11
apps.kubernetes.io/pod-index=0
controller-revision-hash=my-mongodb-sharded-shard0-data-749fd5b49f
helm.sh/chart=mongodb-sharded-8.2.3
shard=0
statefulset.kubernetes.io/pod-name=my-mongodb-sharded-shard0-data-0
Annotations: <none>
Status: Running
IP: 10.42.0.31
IPs:
IP: 10.42.0.31
Controlled By: StatefulSet/my-mongodb-sharded-shard0-data
Containers:
mongodb:
Container ID: docker://dfffccbb76d0102dd3740b977fe7dd1ccbafdf554fdb3296b74738b6d2c0c692
Image: docker.io/bitnami/mongodb-sharded:7.0.11-debian-12-r0
Image ID: docker-pullable://bitnami/mongodb-sharded@sha256:3905cc24ff0fb7ba3c226b090ce24fe74232eba58fa48075a979aabcc620f5e3
Port: 27017/TCP
Host Port: 0/TCP
SeccompProfile: RuntimeDefault
Command:
/bin/bash
/entrypoint/replicaset-entrypoint.sh
State: Waiting
Reason: CrashLoopBackOff
Last State: Terminated
Reason: Error
Exit Code: 1
Started: Tue, 18 Jun 2024 17:46:18 +0200
Finished: Tue, 18 Jun 2024 17:48:36 +0200
Ready: False
Restart Count: 6
Limits:
cpu: 750m
ephemeral-storage: 1Gi
memory: 1536Mi
Requests:
cpu: 500m
ephemeral-storage: 50Mi
memory: 1Gi
Liveness: exec [pgrep mongod] delay=60s timeout=20s period=30s #success=1 #failure=2
Readiness: exec [/bin/sh -c mongosh --port $MONGODB_PORT_NUMBER --eval "db.adminCommand('ping')"] delay=10s timeout=20s period=30s #success=1 #failure=6
Environment:
MONGODB_ENABLE_NUMACTL: no
BITNAMI_DEBUG: false
MONGODB_SYSTEM_LOG_VERBOSITY: 0
MONGODB_INIT_RETRY_ATTEMPTS: 24
MONGODB_INIT_RETRY_DELAY: 5
MONGODB_DISABLE_SYSTEM_LOG: no
MONGODB_PORT_NUMBER: 27017
MONGODB_SHARDING_MODE: shardsvr
MONGODB_POD_NAME: my-mongodb-sharded-shard0-data-0 (v1:metadata.name)
MONGODB_MONGOS_HOST: my-mongodb-sharded
MONGODB_MONGOS_PORT_NUMBER: 27017
MONGODB_INITIAL_PRIMARY_HOST: my-mongodb-sharded-shard0-data-0.my-mongodb-sharded-headless.default.svc.cluster.local
MONGODB_REPLICA_SET_NAME: my-mongodb-sharded-shard-0
MONGODB_ADVERTISED_HOSTNAME: $(MONGODB_POD_NAME).my-mongodb-sharded-headless.default.svc.cluster.local
MONGODB_ROOT_USER: abc123
MONGODB_ROOT_PASSWORD: <set to the key 'mongodb-root-password' in secret 'my-mongodb-sharded'> Optional: false
MONGODB_REPLICA_SET_KEY: <set to the key 'mongodb-replica-set-key' in secret 'my-mongodb-sharded'> Optional: false
MONGODB_ENABLE_IPV6: no
MONGODB_ENABLE_DIRECTORY_PER_DB: no
Mounts:
/.mongodb from empty-dir (rw,path="app-mongosh-dir")
/bitnami/mongodb from datadir (rw)
/entrypoint from replicaset-entrypoint-configmap (rw)
/opt/bitnami/mongodb/conf from empty-dir (rw,path="app-conf-dir")
/opt/bitnami/mongodb/logs from empty-dir (rw,path="app-logs-dir")
/opt/bitnami/mongodb/tmp from empty-dir (rw,path="app-tmp-dir")
/tmp from empty-dir (rw,path="tmp-dir")
Conditions:
Type Status
PodReadyToStartContainers True
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
datadir:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: datadir-my-mongodb-sharded-shard0-data-0
ReadOnly: false
empty-dir:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit: <unset>
replicaset-entrypoint-configmap:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: my-mongodb-sharded-replicaset-entrypoint
Optional: false
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 27m default-scheduler Successfully assigned default/my-mongodb-sharded-shard0-data-0 to desktop-g2irosd
Warning Unhealthy 19m kubelet Liveness probe failed:
Warning Unhealthy 19m (x4 over 27m) kubelet Readiness probe failed: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Normal Started 19m (x4 over 27m) kubelet Started container mongodb
Normal Created 16m (x5 over 27m) kubelet Created container mongodb
Normal Pulled 12m (x6 over 27m) kubelet Container image "docker.io/bitnami/mongodb-sharded:7.0.11-debian-12-r0" already present on machine
Warning BackOff 2m31s (x46 over 22m) kubelet Back-off restarting failed container mongodb in pod my-mongodb-sharded-shard0-data-0_default(b63c43b8-40ba-47f9-8d76-d3905fdef301)
Name: my-mongodb-sharded-shard1-data-0
Namespace: default
Priority: 0
Service Account: my-mongodb-sharded-shardsvr
Node: desktop-g2irosd/172.20.99.19
Start Time: Tue, 18 Jun 2024 17:25:57 +0200
Labels: app.kubernetes.io/component=shardsvr
app.kubernetes.io/instance=my-mongodb-sharded
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=mongodb-sharded
app.kubernetes.io/version=7.0.11
apps.kubernetes.io/pod-index=0
controller-revision-hash=my-mongodb-sharded-shard1-data-c7bdf68fd
helm.sh/chart=mongodb-sharded-8.2.3
shard=1
statefulset.kubernetes.io/pod-name=my-mongodb-sharded-shard1-data-0
Annotations: <none>
Status: Running
IP: 10.42.0.33
IPs:
IP: 10.42.0.33
Controlled By: StatefulSet/my-mongodb-sharded-shard1-data
Containers:
mongodb:
Container ID: docker://6c51eb68b67d19373172548058cfb2de55f8d4ee75090454360784766b732446
Image: docker.io/bitnami/mongodb-sharded:7.0.11-debian-12-r0
Image ID: docker-pullable://bitnami/mongodb-sharded@sha256:3905cc24ff0fb7ba3c226b090ce24fe74232eba58fa48075a979aabcc620f5e3
Port: 27017/TCP
Host Port: 0/TCP
SeccompProfile: RuntimeDefault
Command:
/bin/bash
/entrypoint/replicaset-entrypoint.sh
State: Running
Started: Tue, 18 Jun 2024 17:53:39 +0200
Last State: Terminated
Reason: Error
Exit Code: 1
Started: Tue, 18 Jun 2024 17:46:09 +0200
Finished: Tue, 18 Jun 2024 17:48:26 +0200
Ready: True
Restart Count: 7
Limits:
cpu: 750m
ephemeral-storage: 1Gi
memory: 1536Mi
Requests:
cpu: 500m
ephemeral-storage: 50Mi
memory: 1Gi
Liveness: exec [pgrep mongod] delay=60s timeout=20s period=30s #success=1 #failure=2
Readiness: exec [/bin/sh -c mongosh --port $MONGODB_PORT_NUMBER --eval "db.adminCommand('ping')"] delay=10s timeout=20s period=30s #success=1 #failure=6
Environment:
MONGODB_ENABLE_NUMACTL: no
BITNAMI_DEBUG: false
MONGODB_SYSTEM_LOG_VERBOSITY: 0
MONGODB_INIT_RETRY_ATTEMPTS: 24
MONGODB_INIT_RETRY_DELAY: 5
MONGODB_DISABLE_SYSTEM_LOG: no
MONGODB_PORT_NUMBER: 27017
MONGODB_SHARDING_MODE: shardsvr
MONGODB_POD_NAME: my-mongodb-sharded-shard1-data-0 (v1:metadata.name)
MONGODB_MONGOS_HOST: my-mongodb-sharded
MONGODB_MONGOS_PORT_NUMBER: 27017
MONGODB_INITIAL_PRIMARY_HOST: my-mongodb-sharded-shard1-data-0.my-mongodb-sharded-headless.default.svc.cluster.local
MONGODB_REPLICA_SET_NAME: my-mongodb-sharded-shard-1
MONGODB_ADVERTISED_HOSTNAME: $(MONGODB_POD_NAME).my-mongodb-sharded-headless.default.svc.cluster.local
MONGODB_ROOT_USER: abc123
MONGODB_ROOT_PASSWORD: <set to the key 'mongodb-root-password' in secret 'my-mongodb-sharded'> Optional: false
MONGODB_REPLICA_SET_KEY: <set to the key 'mongodb-replica-set-key' in secret 'my-mongodb-sharded'> Optional: false
MONGODB_ENABLE_IPV6: no
MONGODB_ENABLE_DIRECTORY_PER_DB: no
Mounts:
/.mongodb from empty-dir (rw,path="app-mongosh-dir")
/bitnami/mongodb from datadir (rw)
/entrypoint from replicaset-entrypoint-configmap (rw)
/opt/bitnami/mongodb/conf from empty-dir (rw,path="app-conf-dir")
/opt/bitnami/mongodb/logs from empty-dir (rw,path="app-logs-dir")
/opt/bitnami/mongodb/tmp from empty-dir (rw,path="app-tmp-dir")
/tmp from empty-dir (rw,path="tmp-dir")
Conditions:
Type Status
PodReadyToStartContainers True
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
datadir:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: datadir-my-mongodb-sharded-shard1-data-0
ReadOnly: false
empty-dir:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit: <unset>
replicaset-entrypoint-configmap:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: my-mongodb-sharded-replicaset-entrypoint
Optional: false
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 29m default-scheduler Successfully assigned default/my-mongodb-sharded-shard1-data-0 to desktop-g2irosd
Warning Unhealthy 29m kubelet Readiness probe failed: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Normal Created 18m (x5 over 29m) kubelet Created container mongodb
Normal Started 18m (x5 over 29m) kubelet Started container mongodb
Normal Pulled 9m31s (x7 over 29m) kubelet Container image "docker.io/bitnami/mongodb-sharded:7.0.11-debian-12-r0" already present on machine
Warning BackOff 4m35s (x49 over 24m) kubelet Back-off restarting failed container mongodb in pod my-mongodb-sharded-shard1-data-0_default(6ffe0a3b-ed83-4d08-861d-f9c0c524b9fb)
mongodb 15:25:53.19 INFO ==>
mongodb 15:25:53.19 INFO ==> Welcome to the Bitnami mongodb-sharded container
mongodb 15:25:53.19 INFO ==> Subscribe to project updates by watching https://github.com/bitnami/containers
mongodb 15:25:53.19 INFO ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
mongodb 15:25:53.19 INFO ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
mongodb 15:25:53.20 INFO ==>
mongodb 15:25:53.20 INFO ==> ** Starting MongoDB Sharded setup **
mongodb 15:25:53.23 INFO ==> Validating settings in MONGODB_* env vars...
mongodb 15:25:53.29 INFO ==> Initializing Mongos...
mongodb 15:25:53.29 INFO ==> Writing keyfile for replica set authentication...
mongodb 15:25:53.31 INFO ==> Trying to connect to MongoDB server my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local...
cannot resolve host "my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local": lookup my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local: no such host
cannot resolve host "my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local": lookup my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local: no such host
cannot resolve host "my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local": lookup my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local: no such host
cannot resolve host "my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local": lookup my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local: no such host
cannot resolve host "my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local": lookup my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local: no such host
mongodb 15:26:18.37 INFO ==> Found MongoDB server listening at my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local:27017 !
MongoNetworkError: connect ECONNREFUSED 10.42.0.32:27017
mongodb 15:26:25.27 INFO ==> MongoDB server listening and working at my-mongodb-sharded-configsvr-0.my-mongodb-sharded-headless.default.svc.cluster.local:27017 !
mongodb 15:26:26.06 INFO ==> Primary node ready.
mongodb 15:26:26.07 INFO ==> ** MongoDB Sharded setup finished! **
mongodb 15:26:26.08 INFO ==> ** Starting MongoDB **
{"t":{"$date":"2024-06-18T15:26:26.151Z"},"s":"I", "c":"CONTROL", "id":5760901, "ctx":"main","msg":"Applied --setParameter options","attr":{"serverParameters":{"enableLocalhostAuthBypass":{"default":true,"value":false}}}}
{"t":{"$date":"2024-06-18T15:26:26.152Z"},"s":"W", "c":"SHARDING", "id":24132, "ctx":"main","msg":"Running a sharded cluster with fewer than 3 config servers should only be done for testing purposes and is not recommended for production."}
15:46:14.19 INFO ==> Setting node as primary
mongodb 15:46:14.20 INFO ==>
mongodb 15:46:14.21 INFO ==> Welcome to the Bitnami mongodb-sharded container
mongodb 15:46:14.21 INFO ==> Subscribe to project updates by watching https://github.com/bitnami/containers
mongodb 15:46:14.21 INFO ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
mongodb 15:46:14.21 INFO ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
mongodb 15:46:14.21 INFO ==>
mongodb 15:46:14.21 INFO ==> ** Starting MongoDB Sharded setup **
mongodb 15:46:14.23 INFO ==> Validating settings in MONGODB_* env vars...
mongodb 15:46:14.26 INFO ==> Initializing MongoDB Sharded...
mongodb 15:46:14.30 INFO ==> Writing keyfile for replica set authentication...
mongodb 15:46:14.34 INFO ==> Deploying MongoDB Sharded with persisted data...
mongodb 15:46:14.36 INFO ==> Trying to connect to MongoDB server my-mongodb-sharded...
mongodb 15:46:14.36 INFO ==> Found MongoDB server listening at my-mongodb-sharded:27017 !
mongodb 15:46:15.26 INFO ==> MongoDB server listening and working at my-mongodb-sharded:27017 !
mongodb 15:46:17.96 INFO ==> Joining the shard cluster
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
mongodb 15:48:25.06 ERROR ==> Unable to join the sharded cluster
mongodb 15:48:25.06 INFO ==> Stopping MongoDB...
15:53:44.17 INFO ==> Setting node as primary
mongodb 15:53:44.18 INFO ==>
mongodb 15:53:44.18 INFO ==> Welcome to the Bitnami mongodb-sharded container
mongodb 15:53:44.18 INFO ==> Subscribe to project updates by watching https://github.com/bitnami/containers
mongodb 15:53:44.19 INFO ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
mongodb 15:53:44.19 INFO ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
mongodb 15:53:44.19 INFO ==>
mongodb 15:53:44.19 INFO ==> ** Starting MongoDB Sharded setup **
mongodb 15:53:44.21 INFO ==> Validating settings in MONGODB_* env vars...
mongodb 15:53:44.24 INFO ==> Initializing MongoDB Sharded...
mongodb 15:53:44.28 INFO ==> Writing keyfile for replica set authentication...
mongodb 15:53:44.29 INFO ==> Deploying MongoDB Sharded with persisted data...
mongodb 15:53:44.30 INFO ==> Trying to connect to MongoDB server my-mongodb-sharded...
mongodb 15:53:44.34 INFO ==> Found MongoDB server listening at my-mongodb-sharded:27017 !
mongodb 15:53:45.06 INFO ==> MongoDB server listening and working at my-mongodb-sharded:27017 !
mongodb 15:53:47.76 INFO ==> Joining the shard cluster
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
MongoServerError: Authentication failed.
mongodb 15:55:54.69 ERROR ==> Unable to join the sharded cluster
mongodb 15:55:54.69 INFO ==> Stopping MongoDB...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment