Port 9000 is not listening after server restart sonarqube 9.9 LTS

Installed the sonarqube by following this page

After installation i can access the dashboard in http://myipaddress:9000
After restarting my EC2 instance unable to access the sonarqube web page.

check the services sonar services its running

ubuntu@ip-10-0-1-245:~$ sudo systemctl status sonar.service
● sonar.service - SonarQube service
     Loaded: loaded (/etc/systemd/system/sonar.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-07-26 07:13:26 UTC; 7s ago
    Process: 114074 ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh start (code=exited, status=0/SUCCESS)
   Main PID: 114097 (java)
      Tasks: 51 (limit: 4402)
     Memory: 738.0M
        CPU: 15.182s
     CGroup: /system.slice/sonar.service
             ├─114097 java -Xms8m -Xmx32m --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/ja>
             └─114122 /usr/lib/jvm/java-17-openjdk-amd64/bin/java -XX:+UseG1GC -Djava.io.tmpdir=/opt/sonarqube/temp -XX>

Jul 26 07:13:26 ip-10-0-1-245 systemd[1]: Starting SonarQube service...
Jul 26 07:13:26 ip-10-0-1-245 sonar.sh[114074]: /usr/bin/java
Jul 26 07:13:26 ip-10-0-1-245 sonar.sh[114074]: Starting SonarQube...
Jul 26 07:13:26 ip-10-0-1-245 sonar.sh[114074]: Started SonarQube.
Jul 26 07:13:26 ip-10-0-1-245 systemd[1]: Started SonarQube service.
lines 1-17/17 (END)
ubuntu@ip-10-0-1-245:/opt/sonarqube/logs$ netstat -tunlp
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      -
tcp6       0      0 :::22                   :::*                    LISTEN      -
udp        0      0 127.0.0.53:53           0.0.0.0:*                           -
udp        0      0 10.0.1.245:68           0.0.0.0:*                           -
udp        0      0 127.0.0.1:323           0.0.0.0:*                           -
udp6       0      0 ::1:323                 :::*

What do the logs say?

I solved it.

these values are removed once instance is restarted.
so placed it inside this file, after restating it was working.
File Location: /etc/sysctl.conf

sysctl -w vm.max_map_count=524288
sysctl -w fs.file-max=131072
ulimit -n 131072
ulimit -u 8192

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