This is an archived version of the documentation for SonarQube-7.0.
See the Latest Documentation for current functionality.

Frequently Asked Questions

How to trigger a full SonarQube ES reindex?

Currently, the only way to force a reindex is to:

  • Stop your server

  • Remove the contents of the $SQ_HOME/data/es5 directory

  • Start your server

I can't use my HTTP Proxy since I upgraded to Java8u111

If you are getting this error in the logs when trying to use the Marketplace:

java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required

... you probably upgraded your Java8 installation with an update greater than 111. To fix that, change your sonar.properties like this:

sonar.web.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djdk.http.auth.tunneling.disabledSchemes=""

Reference: http://www.oracle.com/technetwork/java/javase/8u111-relnotes-3124969.html

How to remove False-Positive issues?

False-Positive and Won't Fix

You can mark individual issues as False Positive or Won't Fix through the issues interface. However, this solution doesn't work across branches - you'll have to re-mark the issue False Positive for each branch under analysis. So an in-code approach may be preferable if multiple branches of a project are under analysis:

//NOSONAR

You can use the mechanism embedded in rules engine (//NOPMD...) or the generic mechanism implemented in SonarQube: put //NOSONAR at the end of the line of the issue. This will suppress the issue.

Switch Off Issues

You can review an issue to flag it as false positive directly from the user interface.