Error 504 on https://develop.ampf.com/sonar/batch/project.protobuf?

sonarqube

(Mohit) #1

Template for a good bug report, formatted with Markdown:

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
    sonarqube version 6.0, scanner version 2.8, and sonar-scanner-cli-2.8.jar
  • error observed (wrap logs/code around triple quote ``` for proper formatting)
    [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.5.0.1254:sonar (default-cli) on project. Unable to load component class org.sonar.api.config.Settings: Unable to load component class org.sonar.scanner.repository.ProjectRepositories: Error 504 on https://develop.ampf.com/sonar/batch/project.protobuf?
  • steps to reproduce
  • potential workaround

P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behaviour


(Mohit) #2

Hi Nicolas/Team,

Could you please help as we are seeing the same issue in multiple build plans.

Thanks,
Mohit Saraf


(Colin Mueller) #3

Mohit,

You need to consider an upgrade to 6.7 LTS or 7.4, the current supported versions of SonarQube. You’ll have a hard time finding support for other versions.

That said, I would check your logs folder for any clues.

Colin


(Mohit) #4

Hi Colin,

Thanks for your prompt response!

Please suggest the version to which we can upgrade to have the dashboard capability. As per the release notes the dashboard feature has been dropped since 6.2 version of Sonarqube. we are willing to go the latest version of sonarqube, but as we cannot leverage the dashboard feature we are unable to upgrade.

Also, Please find the attached logs.

Thanks,
Mohit Sarafstdout (2).txt (699.6 KB)


(Colin Mueller) #5

Mohit,

We do not plan to reintroduce the custom dashboard capability, therefore you may find yourself quite out of luck as we do not support any version of SonarQube with that capability. The current LTS is v6.7 and the Latest version is 7.4.

We think our dashboards in the latest versions are pretty nifty, we are always accepting feedback on them, and our Web APIs are extensive and should allow you to generate additional external reports if absolutely necessary.

Colin


(Mohit) #6

Thank You Colin, we will look forward to upgrade to LTS version.

Please suggest if you found anything in the logs which i shared. If we can do some changes at our end to fix this as multiple build plans fails with this particular error.

Thanks,
Mohit Saraf


(Colin Mueller) #7

Mohit,

A 504 is a timeout response, and the error in the logs indicate that the request was interrupted. Since you are using HTTPS, your SonarQube Server must be behind a proxy and I would recommend checking the access/error logs of your proxy to see if there’s anything relevant.


(Mohit) #8

Thank You Colin,

But our app is running on local and doesn’t need any proxy settings. please suggest if there is any other reason because of which we are seeing this error. exact error is this
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.5.0.1254:sonar (default-cli) on project clientexperience-exposure-sit-config: Unable to load component class org.sonar.api.config.Settings: Unable to load component class org.sonar.scanner.repository.ProjectRepositories: Error 504 on https://develop.ampf.com/sonar/batch/project.protobuf?key=clientexperience-exposure-config%3Aclientexperience-exposure-sit-config%3Arelease-uplift -> [Help 1]


(Mohit) #9

Hi Team,

Please help us on the above issue.

Thanks,
Mohit Saraf


(Colin Mueller) #10

Mohit,

If you are not running your server behind a reverse proxy, you probably aren’t really using HTTPS.

A couple more ideas

  • Only access your SonarQube Server via HTTP, prevent any redirects, etc. from interrupting your web requests
  • Use the latest version of the SonarQube Scanner
  • Stop your instance, delete your $SONARQUBE_HOME/data/es folder and start your instance again, allowing a reindexing to take place

Beyond this, I cannot really be anymore help. You need to upgrade your instance.

Cheers,

Colin