After the latest update (via the bitnami docker image), docker logs shows the following issue: SONARQUBE_PASSWORD must have at least 12 characters
How can I fix or change the database user’s password w/o breaking things? This does not concern the admin user, but the DB user accessing the sonarqube DB
I reverted back to bitnami/sonarqube:25.3.0, and deleted the mounted es8 folder
(as it got changed by the latest sonarqube docker image, and invalidated the index). We are running against bitnami/postgresql:15.5.0
You shouldn’t need to change the DB user’s password. This is about SonarQube users’ passwords. I.e. the passwords to log into SonarQube itself (not the DB).
The message is during startup of the SonarQube container; this is not a user-related issue (it is LDAP in our case); something odd is going on, as the password is provided via the flag --env SONARQUBE_DATABASE_PASSWORD=....
sonarqube 16:12:23.64 INFO ==>
sonarqube 16:12:23.64 INFO ==> Welcome to the Bitnami sonarqube container
sonarqube 16:12:23.64 INFO ==> Subscribe to project updates by watching https://github.com/bitnami/containers
sonarqube 16:12:23.64 INFO ==> Did you know there are enterprise versions of the Bitnami catalog? For enhanced secure software supply chain features, unlimited pulls from Docker, LTS support, or application customization, see Bitnami Premium or Tanzu Application Catalog. See https://www.arrow.com/globalecs/na/vendors/bitnami/ for more information.
sonarqube 16:12:23.64 INFO ==>
sonarqube 16:12:23.65 INFO ==> Validating settings in POSTGRESQL_CLIENT_* env vars
string length is less than 12
sonarqube 16:12:23.69 ERROR ==> SONARQUBE_PASSWORD must have at least 12 characters
Mmm. I might see an issue; the official docker images from SonarQube do not work with Postgres 15 (?) And the tables might not be compatible (last time I checked).
It looks like you’ve already figured out that this validation was added by Bitnami in their SonarQube 25.5 container image. Why they added it? No idea, you might want to ask them directly.
At this point, your options are:
Open an issue on the Bitnami repo to ask why the password validation was added.
Change your database password to meet their new criteria and update the relevant environment variable.
Switch to the official SonarQube image, which doesn’t include this custom validation.
Official SonarQube images seem to adapt (or init) the (PostgreSQL) tables and thus “create” a fresh installation of SonarQube; I loose all the settings of the former instance (Bitnami-based). Is there a way to migrate that data w/o loosing any of that data/settings?