Comments (3)
Hi @sle78, thanks for using bitnami/charts.
Could you share how the secret was created? This secret should have the field mediawiki-password
to work.
from charts.
apiVersion: v1
data:
mariadb-password: xxxxx
mariadb-replication-password: xxxxx
mariadb-root-password: xxxxx
mediawiki-password: xxxxx
kind: Secret
metadata:
annotations:
meta.helm.sh/release-name: mediawiki
meta.helm.sh/release-namespace: mediawiki
creationTimestamp: "2023-09-08T15:40:22Z"
labels:
app.kubernetes.io/managed-by: Helm
name: mediawiki-mariadb
namespace: mediawiki
resourceVersion: "55004502"
uid: 63e8b806-f2eb-481b-bb41-1fa8ff974ad9
type: Opaque
So when I created this app i.e. helm install mediawiki bitnami/mediawiki
everything worked fine, the problem is when I use helm upgrade mediawiki bitnami/mediawiki
, that doesn't work
from charts.
I am facing other issues probably related to a wrong assumption: According to the content of your secret and I think you are using mediawiki-mariadb
secret to store mediawiki and mariadb passwords. If I do that and I set that secret for both porpouses my mediawiki pod won't work, it doesn't start.
I'd like to reproduce exactly your case before applying any patch or fix. Could you share your specific steps to reproduce the problem?. For instance, these are the steps I followed:
- Create the secret with this command:
$ kubectl create secret generic mediawiki-test --from-literal mediawiki-password=salame --from-literal=mariadb-password=salchichon --from-literal=mariadb-root-password=sausage
secret/mediawiki-test created
- Using these values:
mediawikiSecret: mediawiki-test
mediawikiHost: mediawiki.example.com
mariadb:
auth:
existingSecret: mediawiki-test
Install the chart:
helm install mediawiki bitnami/mediawiki -f ../support/charts/25943/mediawiki.yaml
NAME: mediawiki
LAST DEPLOYED: Mon May 27 10:27:23 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: mediawiki
CHART VERSION: 20.1.0
APP VERSION: 1.41.1
** Please be patient while the chart is being deployed **
1. Get the MediaWiki URL by running:
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
Watch the status with: 'kubectl get svc --namespace default -w mediawiki'
export SERVICE_IP=$(kubectl get svc --namespace default mediawiki --template "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}")
echo "Mediawiki URL: http://$SERVICE_IP/"
2. Get your MediaWiki login credentials by running:
echo Username: user
echo Password: $(kubectl get secret --namespace default mediawiki -o jsonpath="{.data.mediawiki-password}" | base64 -d)
WARNING: There are "resources" sections in the chart not set. Using "resourcesPreset" is not recommended for production. For production installations, please set the following values according to your workload needs:
- resources
+info https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
NOTE: Pods don't work and the get secret message is wrong. Same secret shouldn't be used for mariadb and mediawiki password
3. Upgrade the chart:
rror: UPGRADE FAILED: execution error at (mediawiki/templates/NOTES.txt:118:4):
PASSWORDS ERROR: You must provide your current passwords when upgrading the release.
Note that even after reinstallation, old credentials may be needed as they may be kept in persistent volume claims.
Further information can be obtained at https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues/#credential-errors-while-upgrading-chart-releases
'mediawikiPassword' must not be empty, please add '--set mediawikiPassword=$MEDIAWIKI_PASSWORD' to the command. To get the current value:
export MEDIAWIKI_PASSWORD=$(kubectl get secret --namespace "default" mediawiki -o jsonpath="{.data.mediawiki-password}" | base64 -d)
As I said, please share the instructions to reproduce it because the problems I shared seem not exactly the same you described.
from charts.
Related Issues (20)
- [bitnami/postgresql-ha] Upgrading repmgr from 5.3 to 5.4
- [bitnami/kafka] No NetworkPolicy for jmx metrics HOT 2
- Kafka Broker Cannot Access Outside Kubernetes Cluster via ClusterIP Services HOT 1
- [bitnami/mongodb] Configmap common-scripts broken HOT 1
- Put a requirements.txt it gives error
- [bitnami/ghost] In latest version of ghost, it can't connect to local MySQL server through socket '/opt/bitnami/mysql/tmp/mysql.sock HOT 4
- [ bitnami/postgres-ha ] postgresql-ha vault root password autorotate support HOT 3
- [bitnami/mlflow] raises image warning without changing image HOT 1
- Fix permissions for apprepositories issue 5323 tanzu HOT 3
- [bitnami/grafana-operator] Wrong content of grafanacontactpoints.integreatly.org.yaml HOT 2
- Thanos Sharding Cache Issue
- cp: cannot stat '/opt/bitnami/keycloak/lib/quarkus/*': No such file or directory HOT 3
- [bitnami/contour] Typo in livenessProbe HOT 1
- [multus-cni] Add support for the thick plugin HOT 1
- [bitnami/argo-cd] Liveness Probe always fails on applicationset-controller HOT 1
- test ticket
- Many users reporting "error 400, request header too large" HOT 2
- [bitnami/postgresql-ha] Bug hostname "I have no name!" in release 14.1.3 HOT 1
- [bitnami/mysql] mysql Server upgrade from 'X' to 'X' takes 5 minutes HOT 1
- [bitnami/redis] Low latency HOT 1
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.