Update to sonarqube-9.6.0.59041 missing files

Here is what to do:

create a file in /etc/systemd/system/sonarqube.service

# nano -w /etc/systemd/system/sonarqube.service
[Unit]
Description=SonarQube service
After=syslog.target network.target

[Service]
Type=simple
User=sonar
Group=sonar
PermissionsStartOnly=true
ExecStart=/opt/java11-latest/bin/java -Xms32m -Xmx4000m -Djava.net.preferIPv4Stack=true -jar /opt/sonar/lib/sonar-application-9.6.1.59531.jar
StandardOutput=syslog
LimitNOFILE=131072
LimitNPROC=8192
TimeoutStartSec=5
Restart=always
SuccessExitStatus=143

[Install]
WantedBy=multi-user.target

just pay attention to /opt/sonar/lib/sonar-application-9.6.1.59531.jar to be the correct path according to where you install sonarqube.
and to this /opt/java11-latest/bin/java according where you have your java
I suppose you have sonar user. pay attention that you have user as sonar or sonarqube
same as your database user

# systemctl daemon-reload
# systemctl start sonarqube.service
# systemctl enable sonarqube.service
2 Likes