Sonarqube 7.1 is not working

I have installed sonarqube7.1 as deployment in k8s and also added mysql as a database for sonarqube.

When i try to access sonarqube url it is giving me 502 error (connection refused).

[ec2-user@ip-10-0-4-191 ~]$ k exec -it sonar-deployment-7bc68b87c9-cwvgx -n analysis bash
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] – [COMMAND] instead.
bash-5.1# hs
bash: hs: command not found
bash-5.1# sh
/opt/sonarqube # ls -l
total 96
-rw-r–r-- 1 sonarqub sonarqub 7651 Oct 28 06:26 COPYING
drwxr-xr-x 1 sonarqub sonarqub 36 Oct 28 20:25 bin
drwxr-xr-x 2 sonarqub sonarqub 30 Oct 28 06:26 conf
drwxrwxrwx 4 999 ping 4096 Jul 11 2019 data
-rw-r–r-- 1 sonarqub sonarqub 78958 Oct 28 06:29 dependency-license.json
drwxr-xr-x 7 sonarqub sonarqub 132 Oct 28 06:31 elasticsearch
drwxrwxrwx 4 sonarqub sonarqub 40 Oct 28 06:26 extensions
drwxr-xr-x 5 sonarqub sonarqub 132 Oct 28 06:32 lib
drwxrwxrwx 2 sonarqub sonarqub 24 Oct 28 06:26 logs
drwxrwxrwx 2 sonarqub sonarqub 24 Oct 28 06:26 temp
drwxr-xr-x 5 sonarqub sonarqub 4096 Oct 28 06:32 web
/opt/sonarqube # ps -ef
PID USER TIME COMMAND
1 root 0:00 bash /opt/sonarqube/bin/run.sh /opt/sonarqube/bin/sonar.sh
8 root 0:10 chown -R 0:0 /opt/sonarqube/data /opt/sonarqube/extensions /opt/sonarqube/logs /opt/sonarqube/temp
9 root 0:00 bash
16 root 0:00 sh
18 root 0:00 ps -ef
/opt/sonarqube # netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node PID/Program name Path
/opt/sonarqube #

Also there is no logs inside log folder

/opt/sonarqube # cd logs
/opt/sonarqube/logs # ls -l
total 4
-rwxrwxrwx 1 sonarqub sonarqub 88 Oct 28 06:26 README.txt
/opt/sonarqube/logs #

Hi @Rahul_Tiwari and welcome to the community :wave:

Sonarqube 7 is way past eol. You should use the current lts (8.9.x) or the latest version (9.7) with the official Helm chart as described here: Deploy SonarQube on Kubernetes

Please note that MySQL support has been dropped in the mean time, so I would recommend that you use postgresql as a database

Hope that helps