Fail to request url when contacting show.protobuf endpoint

Hi Support,

For the last 2 weeks we are receiving the fault below from the SonarQube scan of 1 of our projects. We have 3 and the other don’t surface this error.

Very important to note is that this pipeline has been running for about 2 years without problem and just recently started to fail.

It is not clear what causes the analysis phase of SQ to error as we thought initially that it was the stress the system was under during the request. So we fired of a few builds. This doesn’t seem to have any effect, the analysis keeps failing from time to time.

About half of the analysis taks succee. The other all report back this error

##[error]java.lang.IllegalStateException: Fail to request url: https://sonarqube.slgnt.eu/api/new_code_periods/show.protobuf?project=selligent.smc.portal.frontend.albatross&branch=master

We had a talk with our sysadmin as we thought we had to do with the network but wasn’t it. Also, all our other SonarQube taks run fine.

Kind Regards, Tom

Hi,

We are facing the same problem since about 2 weeks. We get intermittent failures on the show.protobuf URL as well.

Is this a known problem?

Velma

We are still experiencing the issue. Is there something we can do on our end besides inspecting the logs?

Thank you!

Any Update on this?
I am facing the same issue

I am facing the same issue too! Any updates are very much appreciated!

Same here. I hope someone can provide any hint about how to solve the problem.
The issue occurred for me following a migrating to Java 11. I also verified that the user can access the url on SonarQube’s server. It’s not all analysis that fails, some do not have the issue at all. Some always fails with this exception.

We are using SonarQube 8.9.1 scanning with SonarScanner for MSBuild 5.4.1 running on .NET 4.6.
Here is a sample of our logs for SEO:

     [exec] INFO: Load New Code definition
     [exec] INFO: ------------------------------------------------------------------------
     [exec] INFO: EXECUTION FAILURE
     [exec] INFO: ------------------------------------------------------------------------
     [exec] INFO: Total time: 15.299s
     [exec] ERROR: Error during SonarScanner execution
     [exec] java.lang.IllegalStateException: Fail to request url: https://my.sonarqube.domain/api/new_code_periods/show.protobuf?project=XYZ&branch=master

Edit: I could also specify that the exception is thrown at the end step. The “begin” and “build” steps are working as expected.

I managed to solve the issue by migrating to another JVM. We were using OpenJDK 11.0.2 which have a bug in the JVM about TLS encryption. I think the same issue is discussed in this another post and on github.com/square #4703. This bug is tracked as OpenJDK issues JDK-8211806 and JDK-8214060. It should be fixed in 11.0.3.

We were unable to find a windows release for 11.0.3. We migrated to microsoft-jdk-11.0.14.9.1 and temurin-jdk-11.0.14.1.1 and the problem is now resolved.