Must-share information (formatted with Markdown): sonarqube-developer-10.5.1.90531 and plugin sonar-atl-plugin-85.0.1
how is SonarQube deployed: zip.
what are you trying to achieve
i am trying to get the application back running. saw the logs and the command sonar.sh start does not work. looked into sonar log file and all other files
what have you tried so far to achieve this
We have a load balancer and the application is installed in the Linux Ec2. have troubleshooted and then the health check on port 9000 is unhealthy status. This application is not stable. please help Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
the logs (sonar.log) have the below error and its not valid as i have the user speciffically create and have all the permissions to the folders and sub folders. and wen i use sonar.sh start or stop command there is a messaged pid removed and then the status say not running.
Version java matches.
Permissions are all good, but in log earlier throwed an error and later i have granted accesses to all the subfolders.
we use AWS RDS Postgress.
Weird part is its not giving new logs
log Error:
caused by: java.nio.file.AccessDeniedException: /var/sonarqube/temp/conf/es
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:248)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
at org.sonar.application.ProcessLauncherImpl.pruneElasticsearchConfDirectory(ProcessLauncherImpl.java:154)
… 10 common frames omitted
I’m not sure what to tell you. The error speaks for itself. Perhaps you have some other “helpful” process on the box interfering. Microsoft Defender & antivirus scanners in general are notorious for this.
thank you for the response and part of the troubleshoot. i was able to fix and make the server runnig. the issu is the subfolder owner keeps changing to root and idk why and did a restart cleared cash temp files.
sudo chmod -R 755 /var/sonarqube
sudo rm -rf /var/sonarqube/temp