Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL: password authentication failed for user "sonar" #81

Closed
larruda opened this issue May 12, 2017 · 4 comments
Closed

FATAL: password authentication failed for user "sonar" #81

larruda opened this issue May 12, 2017 · 4 comments
Labels

Comments

@larruda
Copy link

larruda commented May 12, 2017

After upgrading to 6.1, 6.2, 6.3 or 6.3.1 images (alpine or not), my instance keeps failing with this message. The password is correct and available through the SONARQUBE_JDBC_PASSWORD environment variable set as a secret in Kubernetes. If I go back to 6.0, it just works.

Did something change regarding connecting to the database?

@jarrod-marshall
Copy link

Having the same problem as well.

@Godin
Copy link
Member

Godin commented May 30, 2017

Cannot reproduce using PostgreSQL:

docker run -it --rm --name some-postgres \
  -e POSTGRES_USER=myuser \
  -e POSTGRES_PASSWORD=mysecretpassword \
  -e POSTGRES_DB=sonar \
  postgres

docker run -it --rm --name sonarqube \
  -p 9000:9000 \
  --link some-postgres:postgres \
  -e SONARQUBE_JDBC_USERNAME=myuser \
  -e SONARQUBE_JDBC_PASSWORD=mysecretpassword \
  -e SONARQUBE_JDBC_URL=jdbc:postgresql://postgres:5432/sonar \
  sonarqube:6.3.1-alpine

second container with SonarQube 6.3.1 successfully connects to the first one.

Answering on the question

Did something change regarding connecting to the database?

This repository contains files to build Docker image for SonarQube and nothing more, i.e. not the SonarQube itself. The only changes in this repository between image for 6.0 and image for 6.3.1 are updates of SonarQube version - 5dc2733...476d459 About the changes in SonarQube itself please refer to its repository changelog/release notes/upgrade notes. But AFAIK there were no changes in regards to database connection. For the questions about SonarQube you'd better reach out to wider audience of community - there are various communication channels, such as Google Group: https://www.sonarqube.org/community/

In absence of clear steps to reproduce the issue and hence evidences that there is a problem specifically in files for image and not in a particular setup/environment, I'm closing this ticket.

Thank you for your understanding.

@Godin Godin closed this as completed May 30, 2017
@Godin Godin added the invalid label May 30, 2017
@larruda
Copy link
Author

larruda commented May 30, 2017

@jarrod268 please let me know if somehow you find to solve the issue.
Thanks @Godin for the explanation.

@jarrod-marshall
Copy link

This works fine on a VM with the latest version of docker-compose, however the Azure extension for docker is behind a little on the docker-compose version and they may be the culprit for me.

@SonarSource SonarSource locked as resolved and limited conversation to collaborators Jan 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants