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

Changing postgresql password does not work #7

Open
yohanliyanage opened this issue May 3, 2015 · 1 comment
Open

Changing postgresql password does not work #7

yohanliyanage opened this issue May 3, 2015 · 1 comment

Comments

@yohanliyanage
Copy link

If the password is changed from the default one to another (in fig.xml for DB container as well as Sonar) the Sonar instance fails to start. The database can be accessed using the new password through psql, which means password is properly configured from the database side.

When I use the default password you have provided, it works just fine. Is the password hard-coded in the image?

@dkapanidis
Copy link
Member

It should work without issues, just did a test on my machine changing the password to both db and sonar container sections on fig.yml and it runs correctly.

Couple of things that can be done to pinpoint the issue:

  • Double-check if the password is the same on both sections of the fig.yml (Not sure if it affects but also check for space characters before or after the password)
  • Inspect your sonarqube container to verify if the password is injected correctly as variable:
docker inspect -f '{{.Config.Env}}' dockersonarqube_sonarqube_1
  • Check the actual sonar.properties file inside the container if it is properly configured:
docker exec dockersonarqube_sonarqube_1 cat /opt/sonar/conf/sonar.properties|grep sonar.jdbc.password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants