SonarQube 9.9LTS upgrade Failed

Make sure to tell us:

  • What version are you upgrading from: 8.9.2-Enterprise to 9.9.4-Enterprise
  • System information (Operating system, Java version, Database provider/version): Ubuntu, Java 11, PostgresSQL not external
  • What’s the issue you’re facing: We’re getting below error
STDERR:
  Error: UPGRADE FAILED: template: sonarqube/charts/postgresql/templates/secrets.yaml:18:35: executing "sonarqube/charts/postgresql/templates/secrets.yaml" at <include "postgresql.postgres.password" .>: error calling include: template: sonarqube/charts/postgresql/templates/_helpers.tpl:75:8: executing "postgresql.postgres.password" at <include "getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "common.names.fullname" .) "Length" 10 "Key" "postgresql-postgres-password")>: error calling include: template: sonarqube/charts/postgresql/templates/_helpers.tpl:60:22: executing "getValueFromSecret" at <b64dec>: invalid value; expected string

COMBINED OUTPUT:
  Error: UPGRADE FAILED: template: sonarqube/charts/postgresql/templates/secrets.yaml:18:35: executing "sonarqube/charts/postgresql/templates/secrets.yaml" at <include "postgresql.postgres.password" .>: error calling include: template: sonarqube/charts/postgresql/templates/_helpers.tpl:75:8: executing "postgresql.postgres.password" at <include "getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "common.names.fullname" .) "Length" 10 "Key" "postgresql-postgres-password")>: error calling include: template: sonarqube/charts/postgresql/templates/_helpers.tpl:60:22: executing "getValueFromSecret" at <b64dec>: invalid value; expected string

We have set postgresql.enabled flag to true as we don’t have external DB. However I noticed 8.9.2 is using Postgresql chart of [kubernetes source] (charts/stable/postgresql/README.md at master · helm/charts · GitHub) whereas 9.9.4 is using Bitnami Postgresql chart

Our instance is running smooth on 8.9.2 whereas when I tried to upgrade to 9.9.4 getting above error.
We’re using default credentials postgresql, we’ve not set any credentials of postgresql.
Updated: Appversion: 9.9.4-Enterprise, Chart Version: 8.0.4, Repo: Sonarsource Chart Repository, chart: sonarqube/sonarqube

This looks like a BUG, Request your immediate help

Hi,

Welcome to the community!

Our README states pretty clearly that you need to be using an external DB.

You should stand one up and move your data there.

If you continue to have problems after that, let us know.

 
Ann