We have been running sonarqube via the 8.9.4 lts-developer container image. It was working fine until a few days ago when it suddenly started throwing errors during scans. I have run with -X flag applied and provided the truncated logs below
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.0.2155:sonar (default-cli) on project backend: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher: Unable to load component class org.sonar.api.batch.rule.internal.DefaultActiveRules: Failed to load quality profiles: unexpected end of stream -> [Help 1]
...
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.0.2155:sonar (default-cli) on project backend: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher
...
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher
...
Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher
...
Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.api.batch.rule.internal.DefaultActiveRules
...
Caused by: java.lang.IllegalStateException: Failed to load quality profiles
...
Caused by: java.net.ProtocolException: unexpected end of stream
The scan worked fine on one push, and then failed on another 20 mins later that made no changes to sonarqube, so I am confused as to what has caused it. We have not got around to setting up a dedicated database for the server yet and are still using the embedded one. Could this be causing the issue?
Other than restarting the container I have not tried anything else as I am not sure what else could resolve the issue.
Thanks