Sonarqube pod gets killed every now and then. This makes it unavailable for scans most of the time and not helping team building quality code.
Sonarqube 8.9.1 CE and Sonar-scanner 2.13 Jenkins Plugin
When the logs are analyzed, this is the last set of lines in Compute engine:
2021.07.16 03:32:19 INFO ce[o.s.c.t.CeProcessingSchedulerImpl] Gracefully stopping workers... 2021.07.16 03:32:29 WARN ce[o.s.c.t.CeProcessingSchedulerExecutorServiceImpl] Pool CeProcessingSchedulerExecutorServiceImpl did not terminate 2021.07.16 03:32:29 INFO ce[o.s.ce.app.CeServer] Compute Engine is stopped 2021.07.16 03:32:44 ERROR ce[o.s.c.t.CeWorkerImpl] Failed to pop the queue of analysis reports org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause: java.sql.SQLException: Data source is closed sonar-scanner sonar.projectKey=[PROJECT-FOLDER] sonar.sources=one, two, three sonar.exclusions=**/*.js,**/*.rb,**/*.css,**/*.scss,**/*.html,**/*.php,**/*.xml,**/*.java sonar.python.coverage.reportPaths=suite*/cover*.xml Its failing due to sonarqube pod is getting killed and the server isn't available for scan uploads.``` Thanks in advance