-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[stable/mongodb] Not working without password #16450
Comments
Hi @shield-9 ,
Also I tried with a normal deployment and both work as expected.
|
Could you try this?
Oops, thank you! It is my mistake while creating example YAML. |
I am seeing the same problem. Using the helm command you suggested the primary fails to spin up and I see I think this issue may be related https://github.com/bitnami/bitnami-docker-mongodb/issues/151 For now, I am using an earlier version of the bitnami mongo image (4.0.10-debian-9-r22) and it is working again. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. |
does not work with stable/mongodb 7.4.2 4.0.13 . I get
|
@davide-talesco I'm using modified container image to avoid this issue. |
One workaround is to set The other is, obviously to set |
I've found another awful way around this. :P It seems the issue isn't actually with the helm chart, but with the bitnami mongodb image. If you use older versions of the mongodb image, it'll fix this problem for you: image:
tag: 3.2.11-r2
replicaSet:
enabled: true
name: rs0
replicas:
secondary: 1
arbiter: 1
usePassword: false
# Need this because the older bitnami mongodb images won't work if you're not running as root
securityContext:
enabled: false This comes up. In fact, if you set Error executing 'postInstallation': Not possible to configure replica set scenario using authentication. Please do not provided any of the following properties: username, password, database, rootPassword. -_- |
I think this might need reopening considering the details in the linked issue :) |
I tried this command after many attempts. It seems like working for me.
I am able to login without password |
Just for info:: Fix for this issue was first shipped in mongo helm chart version 7.10.9 bitnami/charts@ff1db9d#diff-36d6c73e8bcce8b9eb984fba150cacb36170c85f85f688d273bff9791b47d08a |
Describe the bug
When
usePassword
is set tofalse
, mongodb-primary-0 fails to start.Version of Helm and Kubernetes:
Which chart:
stable/mongodb (5.20.3 or later)
What happened:
What you expected to happen:
When
usePassword
is set tofalse
, mongodb-primary-0 start without problem.How to reproduce it (as minimally and precisely as possible):
My values.yaml is:
The text was updated successfully, but these errors were encountered: