Comments (5)
Could you check container logs and describe the pods to get more info about the cause of the crashes?
from charts.
https://gist.github.com/tschneider-aneo/8e808bb1da3aebac7b7d190f52788f64
Note that while retrieving logs and pods description, my shard pods crashed again. I am now at 8 pod restarts in 35 minutes
from charts.
It seems all the errors appear when trying to connect with MongoDB:
Warning Unhealthy 19m (x4 over 27m) kubelet Readiness probe failed: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
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:46:17.96 INFO ==> Joining the shard cluster
MongoServerError: Authentication failed.
...
mongodb 15:48:25.06 ERROR ==> Unable to join the sharded cluster
Did you install the Helm chart reusing the name and namespace from a previous installation? Are you able to reproduce the issue by installing the chart from scratch in a brand-new namespace? I'm wondering if the issue could be related to reusing the PV/PVC from a previous installation where the old password is stored and it doesn't match with the one used in this new deployment.
from charts.
When deploying with this command:
helm install new-mongodb-sharded oci://registry-1.docker.io/bitnamicharts/mongodb-sharded --version=8.2.3 --set auth.rootUser=abc123 --create-namespace -n new-namespace
I want to highlight that despite these frequent shard pods crashes, the credentials I define are valid and I'm able to connect to the MongoDB cluster from the shard pods using their environment variable, even though I'm indeed not able to perform write operations on the sharded cluster:
$ kubectl exec -it new-mongodb-sharded-shard0-data-0 -n new-namespace -- bash
I have no name!@my-mongodb-sharded-shard0-data-0:/$ mongosh -u $MONGODB_ROOT_USER -p $MONGODB_ROOT_PASSWORD mongodb://my-mongodb-sharded:27017
Current Mongosh Log ID: 6672a7798043957a47a26a12
Connecting to: mongodb://<credentials>@my-mongodb-sharded:27017/?directConnection=true&appName=mongosh+2.2.6
Using MongoDB: 7.0.11
Using Mongosh: 2.2.6
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
[direct: mongos] test> use database
switched to db database
[direct: mongos] database> db.mycollection.insertOne({data: 'test'})
MongoServerError[ShardNotFound]: Database database could not be created :: caused by :: No shards found
I verified that no PVC and PV were existent before reproducing the bug. The deployment is still as unstable as described in the issue.
Finally, I hadn't tested but I also cannot perform write operation when the chart is deployed like in the issue (in the default namespace)
from charts.
It seems to be the same issue as the one below :
#13364
from charts.
Related Issues (20)
- [bitnami/redis] Redis pod going into "Succeeded" state after some time HOT 3
- Jenkins chart has incompatible configuration-as-code plugin
- [bitnami/keycloak] Support deploying keycloak config CLI configuration in secrets rather than in configMaps. HOT 1
- Minio Ingress Probleme HOT 2
- [bitnami/apisix] missing ingressClass resource KIND HOT 2
- Kafka chart has incorrect extraListeners templating HOT 1
- [bitnami/elasticsearch] xpack.security.http HOT 1
- Supabase `auth.uid()` always null HOT 1
- [Mediawiki] Pod in Crashlookbackoff HOT 1
- [bitnami/postgresql] Migration steps from Postgres chart to Postgres-HA chart without losing data HOT 2
- [bitnami/elasticsearch] Modify elasticsearch.yaml - permission denied HOT 3
- [bitnami/mongodb] when start mongodb livenessProbe hang HOT 3
- [bitnami/mongodb] What is best way to restore mongodump created by cronjob mongodb-mongodump
- [bitnami/supabase] Storage PVC and NetworkPolicy are created even if storage is explicitly disabled HOT 1
- [bitnami/kafka] jmx-metrics servicemonitor has wrong path HOT 1
- [bitnami/redis] Long release name breaks statefulset pods
- [bitnami/elasticsearch] [Chart config] How to persisten new keystore data in Kubernetes environment? HOT 1
- [bitnami/mysql]: How to perform mysql backup
- [bitnami/kong] No way to open additional ports on pods HOT 1
- [bitnami/airflow] Mount my own ssh-dir(/.ssh) after 18.0.6?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.