# Install SonarQube 8.7 and unable to create or update postgresql database 12.5

**URL:** <https://community.sonarsource.com/t/install-sonarqube-8-7-and-unable-to-create-or-update-postgresql-database-12-5/39792>\
**Category:** SonarQube Server / Community Build\
**Created:** [March 8, 2021, 10:36pm UTC](https://community.sonarsource.com/t/install-sonarqube-8-7-and-unable-to-create-or-update-postgresql-database-12-5/39792 "2021-03-08T22:36:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljdavis](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@ljdavis](https://community.sonarsource.com/u/ljdavis)\
**Post date:** [March 8, 2021, 10:36pm UTC](https://community.sonarsource.com/t/install-sonarqube-8-7-and-unable-to-create-or-update-postgresql-database-12-5/39792/1 "2021-03-08T22:36:28Z")

</div>

Whoever,

I installed SonarQube 8.7 with aws rds postresql database and I am unable to write to the database. The database seems to be in a read only state. Whenever I attempt to create or update a project, user or anything I get an error like this error below:

localhost - - [08/Mar/2021:22:32:22 +0000] “POST /sonar/api/projects/create HTTP/1.1” 401 - “[http://localhost:9000/sonar/projects/create?mode=manual](http://localhost:9000/sonar/projects/create?mode=manual)”

I am also unable to login using the username: admin and password: admin because by default I wants me to change my password. The password update fails do to the inability to write or update the database.

Please help!

---

<div class="post-metadata">

**Author:** ![Tobias\_Trabelsi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/tobias_trabelsi/32/31755_2.png) [@Tobias\_Trabelsi](https://community.sonarsource.com/u/Tobias_Trabelsi)\
**Post date:** [March 9, 2021, 7:26am UTC](https://community.sonarsource.com/t/install-sonarqube-8-7-and-unable-to-create-or-update-postgresql-database-12-5/39792/2 "2021-03-09T07:26:50Z")

</div>

Hello @ljdavis and welcome to the community 👋

can you elaborate the environment your are running in and share the log files (in `$SONARQUBE_HOME/logs/`) with us to narrow down the problem?

---

<div class="post-metadata">

**Author:** ![ljdavis](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@ljdavis](https://community.sonarsource.com/u/ljdavis)\
**Post date:** [March 9, 2021, 12:34pm UTC](https://community.sonarsource.com/t/install-sonarqube-8-7-and-unable-to-create-or-update-postgresql-database-12-5/39792/3 "2021-03-09T12:34:36Z")

</div>

Tobias,

I am honored to be apart of the SonarSource Community. I have installed the SonarQube Enterprise Edition 8.7.0 latest on an AWS Centos 7.2 Linux Ami. Once installed, the app. worked fine with the H2 database. But, once I switched over to the Postgres database everything changed. I chose to us a AWS RDS Postgres database (v12.5). I made sure that the Security Group inbound rules are set to connect to the database. Also, I created a sonarqube user and granted it full access to the database and public schema. The application does connect to the database and creates all tables. Additionally, I am using the pgadmin client to manipulate the database server. I also noticed that I was unable to update the “reset\_password” flag using the inline table manipulation tool. However, I am able to update the table by executing a SQL command from the “Query Tool” in the pgadmin tool. This is really weird! There is really nothing in the logs that jumps out. I there a way to make SonarQube list the logs verbosely?

Thanks for your help,

---

<div class="post-metadata">

**Author:** ![Tobias\_Trabelsi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/tobias_trabelsi/32/31755_2.png) [@Tobias\_Trabelsi](https://community.sonarsource.com/u/Tobias_Trabelsi)\
**Post date:** [March 9, 2021, 1:30pm UTC](https://community.sonarsource.com/t/install-sonarqube-8-7-and-unable-to-create-or-update-postgresql-database-12-5/39792/4 "2021-03-09T13:30:22Z")

</div>

you can increase the verbosity of the logs by setting another log level as described in our docs [here](https://docs.sonarqube.org/latest/instance-administration/system-info/), maybe that helps.  
apart from that the issue seems indeed be related to your rds postgres setup and not to sonarqube specifically. Do you see any Spikes in the RDS monitoring or any suspicious log entries on the RDS side? Sometimes you need to manually perform a `VACUUM (FULL, ANALYZE)` on RDS. Usually only [after an update](https://docs.sonarqube.org/latest/setup/upgrading/#header-5) but maybe this will help here as well.

---

<div class="post-metadata">

**Author:** ![ljdavis](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@ljdavis](https://community.sonarsource.com/u/ljdavis)\
**Post date:** [March 9, 2021, 4:44pm UTC](https://community.sonarsource.com/t/install-sonarqube-8-7-and-unable-to-create-or-update-postgresql-database-12-5/39792/5 "2021-03-09T16:44:32Z")

</div>

Tobias,

I believe it was Postgres user permissions issue. It is fixed now.

Thanks for you help!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [March 16, 2021, 4:44pm UTC](https://community.sonarsource.com/t/install-sonarqube-8-7-and-unable-to-create-or-update-postgresql-database-12-5/39792/6 "2021-03-16T16:44:32Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
