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

2,143 views
Skip to first unread message

hari

unread,
Aug 30, 2017, 5:50:52 PM8/30/17
to SonarQube
Hi,

I am getting this error when I run the job from the Bamboo. Could you please advise the possible resolution please.

Error:

error	30-Aug-2017 22:26:13	ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
simple	30-Aug-2017 22:26:14	Failing task since return code of [C:\Program Files\SonarQube\sonar-scanner\bin\sonar-scanner.bat -Dsonar.projectKey=WebApplication -Dsonar.sources=. -Dsonar.host.url=https://sonarqube.some.co.uk -Dsonar.login=****** -Dsonar.password=****** -Dsonar.branch=master] was 1 while expected 0


thanks In advancs.

nicolas...@sonarsource.com

unread,
Aug 31, 2017, 3:48:23 AM8/31/17
to SonarQube
Hi,

That is quite a partial log, one can't tell much from it. You should share the full log to get some useful advice (and potentially: use the -X switch to enable full debug logging).

Best regards,
Nicolas

harry

unread,
Aug 31, 2017, 5:24:55 AM8/31/17
to SonarQube
Hi,

Many thanks for the reply, 

please see below log:


JOB1\src\WebApplication] for block at line 38. Keep only the first 100 references.
error 30-Aug-2017 22:20:39 WARN: Too many duplication references on file [moduleKey=WebApplication, relative=node_modules/moment/locale/uz.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication] for block at line 16. Keep only the first 100 references.
error 30-Aug-2017 22:20:39 WARN: Too many duplication references on file [moduleKey=WebApplication, relative=node_modules/moment/locale/uz.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication] for block at line 19. Keep only the first 100 references.
error 30-Aug-2017 22:20:39 WARN: Too many duplication references on file [moduleKey=WebApplication, relative=node_modules/moment/locale/uz.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication] for block at line 22. Keep only the first 100 references.
error 30-Aug-2017 22:20:39 WARN: Too many duplication references on file [moduleKey=WebApplication, relative=node_modules/moment/locale/uz.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication] for block at line 14. Keep only the first 100 references.
error 30-Aug-2017 22:20:39 WARN: Too many duplication references on file [moduleKey=WebApplication, relative=node_modules/moment/locale/uz.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication] for block at line 16. Keep only the first 100 references.
error 30-Aug-2017 22:20:40 WARN: Too many duplication references on file [moduleKey=WebApplication, relative=node_modules/moment/locale/yo.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication] for block at line 16. Keep only the first 100 references.
error 30-Aug-2017 22:20:40 WARN: Too many duplication references on file [moduleKey=WebApplication, relative=node_modules/moment/locale/yo.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication] for block at line 19. Keep only the first 100 references.
error 30-Aug-2017 22:20:40 WARN: Too many duplication references on file [moduleKey=WebApplication, relative=node_modules/moment/locale/yo.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication] for block at line 22. Keep only the first 100 references.
error 30-Aug-2017 22:20:40 WARN: Too many duplication references on file [moduleKey=WebApplication, relative=node_modules/moment/locale/yo.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication] for block at line 14. Keep only the first 100 references.
error 30-Aug-2017 22:20:40 WARN: Too many duplication references on file [moduleKey=WebApplication, relative=node_modules/moment/locale/yo.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication] for block at line 16. Keep only the first 100 references.
error 30-Aug-2017 22:20:43 WARN: Too many duplication groups on file [moduleKey=WebApplication, relative=node_modules/typescript/lib/typescriptServices.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication]. Keep only the first 100 groups.
error 30-Aug-2017 22:20:43 WARN: Too many duplication groups on file [moduleKey=WebApplication, relative=node_modules/core-js/client/core.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication]. Keep only the first 100 groups.
error 30-Aug-2017 22:20:43 WARN: Too many duplication groups on file [moduleKey=WebApplication, relative=node_modules/gulp-sourcemaps/node_modules/acorn/dist/acorn.es.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication]. Keep only the first 100 groups.
error 30-Aug-2017 22:20:43 WARN: Too many duplication references on file [moduleKey=WebApplication, relative=node_modules/moment/locale/x-pseudo.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication] for block at line 23. Keep only the first 100 references.
error 30-Aug-2017 22:20:43 WARN: Too many duplication groups on file [moduleKey=WebApplication, relative=node_modules/browser-sync/node_modules/rx/dist/rx.all.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication]. Keep only the first 100 groups.
error 30-Aug-2017 22:20:44 WARN: Too many duplication groups on file [moduleKey=WebApplication, relative=node_modules/engine.io-client/engine.io.js, basedir=D:\BAMBOO_HOME\xml-data\build-dir\NSSP-AWWS-JOB1\src\WebApplication]. Keep only the first 100 groups.
build 30-Aug-2017 22:20:44 INFO: CPD calculation finished
build 30-Aug-2017 22:23:17 INFO: Analysis report generated in 146253ms, dir size=226 MB
build 30-Aug-2017 22:25:36 INFO: Analysis reports compressed in 138784ms, zip size=83 MB
build 30-Aug-2017 22:26:13 INFO: ------------------------------------------------------------------------
build 30-Aug-2017 22:26:13 INFO: EXECUTION FAILURE
build 30-Aug-2017 22:26:13 INFO: ------------------------------------------------------------------------
build 30-Aug-2017 22:26:13 INFO: Total time: 34:48.771s
error 30-Aug-2017 22:26:13 ERROR: Error during SonarQube Scanner execution
error 30-Aug-2017 22:26:13 ERROR: Failed to upload report - 404: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
build 30-Aug-2017 22:26:13 INFO: Final Memory: 83M/2884M
build 30-Aug-2017 22:26:13 INFO: ------------------------------------------------------------------------
error 30-Aug-2017 22:26:13 <html xmlns="http://www.w3.org/1999/xhtml">
error 30-Aug-2017 22:26:13 <head>
error 30-Aug-2017 22:26:13 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
error 30-Aug-2017 22:26:13 <title>404 - File or directory not found.</title>
error 30-Aug-2017 22:26:13 <style type="text/css">
error 30-Aug-2017 22:26:13 <!--
error 30-Aug-2017 22:26:13 body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
error 30-Aug-2017 22:26:13 fieldset{padding:0 15px 10px 15px;} 
error 30-Aug-2017 22:26:13 h1{font-size:2.4em;margin:0;color:#FFF;}
error 30-Aug-2017 22:26:13 h2{font-size:1.7em;margin:0;color:#CC0000;} 
error 30-Aug-2017 22:26:13 h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} 
error 30-Aug-2017 22:26:13 #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
error 30-Aug-2017 22:26:13 background-color:#555555;}
error 30-Aug-2017 22:26:13 #content{margin:0 0 0 2%;position:relative;}
error 30-Aug-2017 22:26:13 .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
error 30-Aug-2017 22:26:13 -->
error 30-Aug-2017 22:26:13 </style>
error 30-Aug-2017 22:26:13 </head>
error 30-Aug-2017 22:26:13 <body>
error 30-Aug-2017 22:26:13 <div id="header"><h1>Server Error</h1></div>
error 30-Aug-2017 22:26:13 <div id="content">
error 30-Aug-2017 22:26:13 <div class="content-container"><fieldset>
error 30-Aug-2017 22:26:13  <h2>404 - File or directory not found.</h2>
error 30-Aug-2017 22:26:13  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
error 30-Aug-2017 22:26:13 </fieldset></div>
error 30-Aug-2017 22:26:13 </div>
error 30-Aug-2017 22:26:13 </body>
error 30-Aug-2017 22:26:13 </html>
error 30-Aug-2017 22:26:13
error 30-Aug-2017 22:26:13 ERROR: 
error 30-Aug-2017 22:26:13 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
simple 30-Aug-2017 22:26:14 Failing task since return code of [C:\Program Files\SonarQube\sonar-scanner\bin\sonar-scanner.bat -Dsonar.projectKey=WebApplication -Dsonar.sources=. -Dsonar.host.url=https://sonarqube.some.co.uk -Dsonar.login=****** -Dsonar.password=****** -Dsonar.branch=master] was 1 while expected 0
simple 30-Aug-2017 22:26:19 Finished task 'Run SonarQube Test Plan' with result: Failed
simple 30-Aug-2017 22:26:19 Running post build plugin 'npm Cache Cleanup'
simple 30-Aug-2017 22:26:19 Running post build plugin 'NCover Results Collector'
simple 30-Aug-2017 22:26:19 Running post build plugin 'Clover Results Collector'
simple 30-Aug-2017 22:26:19 Running post build plugin 'Docker Container Cleanup'
simple 30-Aug-2017 22:26:19 Running post build plugin 'Artifact Copier'
simple 30-Aug-2017 22:26:19 Publishing an artifact: ApplyNow WebApp Artifact
simple 30-Aug-2017 22:26:19 Finished publishing of artifact Shared artifact: [ApplyNow WebApp Artifact], pattern: [Artifact.zip] in 0s
simple 30-Aug-2017 22:26:19 Finalising the build...
simple 30-Aug-2017 22:26:19 Stopping timer.
simple 30-Aug-2017 22:26:19 Build NSSP-AWWS-JOB1-6 completed.
simple 30-Aug-2017 22:26:19 Running on server: post build plugin 'NCover Results Collector'
simple 30-Aug-2017 22:26:19 Running on server: post build plugin 'Clover Delta Calculator'
simple 30-Aug-2017 22:26:19 Running on server: post build plugin 'Maven Dependencies Postprocessor'
simple 30-Aug-2017 22:26:19 Running on server: post build plugin 'Build Hanging Detection Configuration'
simple 30-Aug-2017 22:26:19 All post build plugins have finished
simple 30-Aug-2017 22:26:19 Generating build results summary...
simple 30-Aug-2017 22:26:19 Saving build results to disk...
simple 30-Aug-2017 22:26:19 Logging substituted variables...
simple 30-Aug-2017 22:26:19 Indexing build results...
simple 30-Aug-2017 22:26:19 Finished building NSSP-AWWS-JOB1-6.

G. Ann Campbell

unread,
Aug 31, 2017, 8:39:53 AM8/31/17
to SonarQube
Hi,

The fact that you're getting a 404 when the analysis report is submitted suggests a misconfiguration of your server URL. But if that were actually the case, you wouldn't have been able to start analysis.

I'm guessing you have a proxy between the SonarQube server and the analysis machine and for some reason it's treating GET requests differently than POST requests.


Ann

harry

unread,
Aug 31, 2017, 4:23:31 PM8/31/17
to SonarQube
Hi,

SonarQube able to analyze the code which is on same Bitbucket but different server, Is there anything I need to check.

Please advise. 


Many thanks 

harry

unread,
Aug 31, 2017, 4:24:27 PM8/31/17
to SonarQube
Hi,

SonarQube able to analyze the code which is on same Bitbucket but different server, Is there anything I need to check in the source code with developers.

Please advise.

harry

unread,
Aug 31, 2017, 4:25:44 PM8/31/17
to SonarQube
sorry guys, not different server different repository in bitbucket.

G. Ann Campbell

unread,
Sep 1, 2017, 7:16:08 AM9/1/17
to harry, SonarQube
Hi,

From your logs the analysis is being performed. The problem is that the submission of the analysis report to the server is failing. So it appears that there's something between the analysis machine and your SonarQube server that's interfering.


Ann



---
G. Ann Campbell | SonarSource
Product Manager
@GAnnCampbell

--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/51R9SH7qJLs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/13988038-2f6b-41ca-838f-1593159285bc%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages