# Port 9000 doesn't open when installing Sonarqube 8.8 on Ubuntu 20.04

**URL:** <https://community.sonarsource.com/t/port-9000-doesnt-open-when-installing-sonarqube-8-8-on-ubuntu-20-04/41904>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [April 19, 2021, 7:02pm UTC](https://community.sonarsource.com/t/port-9000-doesnt-open-when-installing-sonarqube-8-8-on-ubuntu-20-04/41904 "2021-04-19T19:02:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luism.cortes.tirado](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/luism.cortes.tirado/32/21355_2.png) [@Luism.cortes.tirado](https://community.sonarsource.com/u/Luism.cortes.tirado)\
**Post date:** [April 19, 2021, 7:02pm UTC](https://community.sonarsource.com/t/port-9000-doesnt-open-when-installing-sonarqube-8-8-on-ubuntu-20-04/41904/1 "2021-04-19T19:02:17Z")

</div>

Hi everyone, I´ve tried to install Sonarqube 8.8 on Ubuntu 20.04 with Postgresql and Nginx, but I get Error 502 Bad Gateway on web server. When I execute netstat, port 9000 is not open, and ufw is inactive. Any suggestion?

---

<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:** [April 20, 2021, 6:31am UTC](https://community.sonarsource.com/t/port-9000-doesnt-open-when-installing-sonarqube-8-8-on-ubuntu-20-04/41904/2 "2021-04-20T06:31:58Z")

</div>

Hello @Luism.cortes.tirado and welcome to the community 👋

hmm this looks like your sonarqube instance is not running. can you check your `$SONARQUBE_HOME/logs` directory? each part of sonarqube will create a log file there and hopefully they will give insight why your instance is not running 🙂

The information what edition your are running, which java version you have installed and how you start sonarqube would also be helpful

---

<div class="post-metadata">

**Author:** ![Luism.cortes.tirado](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/luism.cortes.tirado/32/21355_2.png) [@Luism.cortes.tirado](https://community.sonarsource.com/u/Luism.cortes.tirado)\
**Post date:** [April 20, 2021, 9:14am UTC](https://community.sonarsource.com/t/port-9000-doesnt-open-when-installing-sonarqube-8-8-on-ubuntu-20-04/41904/3 "2021-04-20T09:14:09Z")

</div>

I’ve installed Sonarqube Community Edition on this link: [https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-8.8.0.42792.zip](https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-8.8.0.42792.zip)

That versions of Java And Postgresql:  
openjdk-15-jdk  
psql (PostgreSQL) 13.2 (Ubuntu 13.2-1.pgdg20.10+1)

And followed this tutorial, changing to latest versions of Java, Postgresql and Sonarqube:  
[https://medium.com/@isaalop/sonarqube-8-3-en-ubuntu-20-04-lts-ff0ed30158e5](https://medium.com/@isaalop/sonarqube-8-3-en-ubuntu-20-04-lts-ff0ed30158e5)

On log file “/opt/sonarqube/logs/sonar.20210419.log” I receive the following error message:  
warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release  
Unrecognized VM option ‘UseConcMarkSweepGC’  
Error: Could not create the Java Virtual Machine.  
Error: A fatal exception has occurred. Program will exit.

---

<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:** [April 20, 2021, 9:43am UTC](https://community.sonarsource.com/t/port-9000-doesnt-open-when-installing-sonarqube-8-8-on-ubuntu-20-04/41904/4 "2021-04-20T09:43:04Z")

</div>

Thanks for the information.

> [@Luism.cortes.tirado](#):
>
> openjdk-15-jdk

we currently require java 11 as documented [here](https://docs.sonarqube.org/latest/requirements/requirements/#header-3). remove java 15 and install java 11 and start sonarqube again.  
please also take a look at the [platform notes](https://docs.sonarqube.org/latest/requirements/requirements/#header-5) that you need to fulfill for sonarqube.

---

<div class="post-metadata">

**Author:** ![Luism.cortes.tirado](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/luism.cortes.tirado/32/21355_2.png) [@Luism.cortes.tirado](https://community.sonarsource.com/u/Luism.cortes.tirado)\
**Post date:** [April 20, 2021, 2:02pm UTC](https://community.sonarsource.com/t/port-9000-doesnt-open-when-installing-sonarqube-8-8-on-ubuntu-20-04/41904/5 "2021-04-20T14:02:05Z")

</div>

Removed Java 15, installed Java 11 and restarted all services. Now it’s working without problems. Thanks 👏

---

<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:** [April 27, 2021, 2:02pm UTC](https://community.sonarsource.com/t/port-9000-doesnt-open-when-installing-sonarqube-8-8-on-ubuntu-20-04/41904/6 "2021-04-27T14:02:34Z")

</div>

Closed on April 27, 2021, 2:02pm UTC

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