Code Monkey home page Code Monkey logo

Comments (3)

fmulero avatar fmulero commented on June 21, 2024

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.

sle78 avatar sle78 commented on June 21, 2024
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.

fmulero avatar fmulero commented on June 21, 2024

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:

  1. 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
  1. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.