Snoarqube- I keep getting the error "The 'report' parameter is missing" - sonarqube

I can not seem to find any answers regarding this issue
5:04:56.635 INFO: ------------------------------------------------------------------------
05:04:56.635 INFO: EXECUTION FAILURE
05:04:56.635 INFO: ------------------------------------------------------------------------
05:04:56.635 INFO: Total time: 28.403s
05:04:56.849 INFO: Final Memory: 63M/1435M
05:04:56.849 INFO: ------------------------------------------------------------------------
05:04:56.849 ERROR: Error during SonarQube Scanner execution
The 'report' parameter is missing
05:04:56.850 DEBUG: Execution getVersion
05:04:56.850 DEBUG: Execution stop

For me, this was that the SonarQube server had a full HDD

Re-run SonarQube using the -X switch to enable full debug logging.

Related

SonarQube Scanner - SocketException Socket Closed - Unexpected EOF read on the socket

I'm trying to scan my project with sonarqube and no matter what I try, it fails when trying to upload the report to the local sonarqube server.
When scanning as a maven goal or using the sonar-scanner download, it reports the same type of issue:
sonar-scanner
10:28:42.304 DEBUG: Upload report
10:28:52.553 INFO: ------------------------------------------------------------------------
10:28:52.554 INFO: EXECUTION FAILURE
10:28:52.557 INFO: ------------------------------------------------------------------------
10:28:52.558 INFO: Total time: 28.827s
10:28:52.775 INFO: Final Memory: 49M/298M
10:28:52.776 INFO: ------------------------------------------------------------------------
10:28:52.777 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Fail to request http://localhost:9000/api/ce/submit?projectKey=abc:abc
...
...
Caused by: java.net.SocketTimeoutException: timeout
...
...
Caused by: java.net.SocketException: Socket closed
Maven sonar:sonar goal
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45.193 s
[INFO] Finished at: 2018-01-31T10:38:54-05:00
[INFO] Final Memory: 80M/452M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project abc: Fail to request http://localhost:9000/api/ce/submit?projectKey=abc:abc&projectName=abc: timeout: Socket closed -> [Help 1]
Looking into the sonar server's logs, I found the following relevant looking statement in access.log
127.0.0.1 - - [31/Jan/2018:10:39:04 -0500] "POST /api/ce/submit?projectKey=abc:abc&projectName=abc HTTP/1.1" 400 56 "-" "ScannerMaven/3.3.0.603/3.5.0" "AWFM1VQ1EuWVn5rHAAAf"
And this error in the web.log
2018.01.31 10:39:04 WARN web[AWFM1VQ1EuWVn5rHAAAf][o.s.s.w.ServletRequest] Can't read file part for parameter report
java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Unexpected EOF read on the socket
...
...
Caused by: org.apache.tomcat.util.http.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Unexpected EOF read on the socket
...
...
Caused by: java.io.EOFException: Unexpected EOF read on the socket
I've tried using the following versions with the same results:
| sonar-scanner | maven sonar plugin | sonarqube |
| n/a | 3.4.0.905 | 6.5 |
| n/a | 3.4.0.905 | 6.7.1 |
| n/a | 3.3.0.603 | 6.7.1 |
| 3.0.3.778 | n/a | 6.7.1 |
I've also tried other projects of mine and they do the same thing.
What am I doing wrong?
Edit: I tried yet another project of mine, a tiny one, and it worked fine. It seems that as long as the report upload takes less than 10 seconds it works. However as soon as upload takes about 10 seconds, it gets cut off:
14:10:38.537 INFO: Analysis report generated in abc\.scannerwork\scanner-report
14:10:38.537 DEBUG: Upload report
14:10:48.864 INFO: ------------------------------------------------------------------------
14:10:48.864 INFO: EXECUTION FAILURE
The difference in timestamps seems to always be 10s +/- a few hundred milliseconds.
I don't know why it's taking so long to upload such a small report when both items are on my same machine however is there a way to increase this timeout?

SonarQube Plugin

I am trying to run sonar analysis and the execution is failing.The error I am seeing :-
Using build-wrapper output: /Users/../out/build-wrapper-dump.json
14:26:01 14:23:02.369 INFO: EXECUTION FAILURE
14:26:01 14:23:02.369 INFO: ------------------------------------------------------------------------
14:26:01 14:23:02.369 INFO: Total time: 28.484s
14:26:01 14:23:02.503 INFO: Final Memory: 83M/1248M
14:26:01 14:23:02.503 ERROR: Error during SonarQube Scanner execution
14:26:01 java.lang.RuntimeException: java.io.FileNotFoundException: /Users/.../app/build-wrapper-dump.json (No such file or directory)
In the sonar project properties I specified sonar.cfamily.build-wrapper-output=app/out

sonarqube v5.4 analysis failed on WARN messages

My cobertura coverage on sonarqube v4.5.6 with runner-2.4, and 2.5.1 has some warning "WARN-File not found:" but the sonar analysis complete successfully.
However, when the same job run on sonarqube v5.4 with same runner versions, the sonar analysis failed with "execution failure". I haven't found a way to ignore this warning for now. Has anyone run into the same issue and got it resolved? Thanks,
...
02:03:48.202 INFO - Sensor Groovy CoberturaSensor
02:03:48.202 INFO - Analyzing Cobertura report: target/test-reports/cobertura/coverage.xml
02:03:48.402 WARN - File not found: Route1.groovy
02:03:48.402 WARN - File not found: Route2.groovy
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
...

Execution failure, unable to request: /deploy/jdbc-driver.txt

We used a Master/Slaves Jenkins architecture to perform SonarQube. When i runned my job,
Sonar was unable to execute and request the file /deploy/jdbc-driver.txt. I didn't find the reason, my properties files (Sonar server and sonar runner) seems to be good.
Could you help me please ?
Best regards,
David Parcoit
[IBP.DVB] $ D:\sonar-runner\bin\sonar-runner.bat -Dsonar.jdbc.driver=com.mysql.jdbc.Driver "-Dsonar.jdbc.url=jdbc:mysql://ibicer05.srv-ib.dev:54301/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8" ******** ******** -Dsonar.host.url=http://ibicer00.srv-ib.dev:8090/sonar "-Dsonar.projectBaseDir=E:\Jenkins\workspace\DVB - Build Quotidien\IBP.DVB" -Dsonar.sourceEncoding=UTF-8 -Dsonar.dotnet.excludeGeneratedCode=true -Dsonar.dotnet.buildConfigurations=Release -Dsonar.language=cs -Dsonar.sources=. -Dsonar.gendarme.mode=skip -Dsonar.projectVersion=1.0.0.0 -Dsonar.projectKey=IBP.DVB -Dsonar.ndeps.mode=skip -Dsonar.dotnet.visualstudio.solution.file=IBP.DVB.sln -Dsonar.projectName=DVB
D:\sonar-runner
SonarQube Runner 2.4
Java 1.8.0_05 Oracle Corporation (64-bit)
Windows Server 2012 6.2 amd64
INFO: Runner configuration file: D:\sonar-runner\conf\sonar-runner.properties
INFO: Project configuration file: NONE
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Work directory: E:\Jenkins\workspace\DVB - Build Quotidien\IBP.DVB\.sonar
INFO: SonarQube Server 3.7.4
23:47:37.351 INFO - Load batch settings
23:47:37.507 INFO - User cache: C:\Windows\system32\config\systemprofile\.sonar\cache
23:47:37.523 INFO - Install plugins
23:47:42.265 INFO - Install JDBC driver
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 13.573s
Final Memory: 4M/44M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: Unable to request: /deploy/jdbc-driver.txt
ERROR: Caused by: Unexpected end of ZLIB input stream
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
Build step 'Invoke Standalone Sonar Analysis' marked build as failure
Finished: FAILURE

Failed to execute goal net.kindleit:maven-gae-plugin:0.9.2:unpack due to API Incomatibility

I'm new to Spring Roo as well as Maven. I was trying to setup a basic Google App Engine web application using Spring Roo. But when I run the tests - perform tests/mvn test - I get an error saying unable to run the goal Unpack due to API incomatibility.
Details:
gae.version: 1.6.1
gae-runtime: 0.9.2
Tried the same with 1.6.0 and 0.9.0 - still gives me the same error.
Exception:
[INFO] --- maven-gae-plugin:0.9.2:unpack (default) # project_x ---
Feb 8, 2012 2:47:40 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
WARNING: Error injecting: net.kindleit.gae.UnpackGoal
java.lang.TypeNotPresentException: Type net.kindleit.gae.UnpackGoal not present
at org.sonatype.guice.bean.reflect.URLClassSpace.loadClass(URLClassSpace.java:109)
at org.sonatype.guice.bean.reflect.NamedClass.load(NamedClass.java:45)
...
...
... 41 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.836s
[INFO] Finished at: Wed Feb 08 14:47:40 IST 2012
[INFO] Final Memory: 6M/12M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.kindleit:maven-gae-plugin:0.9.2:unpack (default) on project project_x: Execution default of goal net.kindleit:maven-gae-plugin:0.9.2:unpack failed: Unable to load the mojo 'unpack' in the plugin 'net.kindleit:maven-gae-plugin:0.9.2' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Bad version number in .class file
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>net.kindleit:maven-gae-plugin:0.9.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/myself/.m2/repository/net/kindleit/maven-gae-plugin/0.9.2/maven-gae-plugin-0.9.2.jar
[ERROR] urls[1] = file:/Users/myself/.m2/repository/net/kindleit/gae-runtime/1.6.1/gae-runtime-1.6.1.pom
...
..
I tried googling this issue, but didn't come across anyone facing this issue. I guess, I'm missing some dependency in the generated POM - but due to my inexperience I'm not able to figure out the exact cause.
Let me know, if I need to upload the generated pom.xml or any other details.
meanwhile, I'll continue to figure out what is causing the issue.
Thanks in advance.
Looks like an API incompatibility:
due to an API incompatibility:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Bad version number in .class file

Resources