Execution Failure: Tasks support was removed

sonarcloud
scanner

(Davo) #1

I’m unable to run the scanner. Every time I try sonar-scanner Dproject.settings=./sonar-project.properties -X, I get the following:

10:23:29.157 INFO: Scanner configuration file: /usr/local/bin/sonar-scanner/conf/sonar-scanner.properties
10:23:29.161 INFO: Project root configuration file: NONE
10:23:29.174 INFO: SonarQube Scanner 3.3.0.1492
10:23:29.174 INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
10:23:29.174 INFO: Linux 4.15.0-47-generic amd64
10:23:29.275 DEBUG: keyStore is : 
10:23:29.275 DEBUG: keyStore type is : jks
10:23:29.275 DEBUG: keyStore provider is : 
10:23:29.275 DEBUG: init keystore
10:23:29.275 DEBUG: init keymanager of type SunX509
10:23:29.336 DEBUG: Create: /home/myuser/.sonar/cache
10:23:29.336 INFO: User cache: /home/myuser/.sonar/cache
10:23:29.337 DEBUG: Create: /home/myuser/.sonar/cache/_tmp
10:23:29.338 DEBUG: Extract sonar-scanner-api-batch in temp...
10:23:29.342 DEBUG: Get bootstrap index...
10:23:29.342 DEBUG: Download: https://sonarcloud.io/batch/index
10:23:30.012 DEBUG: Get bootstrap completed
10:23:30.019 DEBUG: Create isolated classloader...
10:23:30.024 DEBUG: Start temp cleaning...
10:23:30.030 DEBUG: Temp cleaning done
10:23:30.030 DEBUG: Execution getVersion
10:23:30.031 INFO: SonarQube server 7.8.0
10:23:30.033 DEBUG: Execution execute
10:23:30.221 INFO: Load global settings
10:23:30.910 DEBUG: GET 200 https://sonarcloud.io/api/settings/values.protobuf | time=684ms
10:23:30.932 INFO: Load global settings (done) | time=713ms
10:23:30.936 INFO: Server id: BD367519-AWHW8ct9-T_TB3XqouNu
10:23:30.946 INFO: User cache: /home/myuser/.sonar/cache
10:23:30.948 INFO: Load/download plugins
10:23:30.949 INFO: Load plugins index
10:23:31.073 DEBUG: GET 200 https://sonarcloud.io/api/plugins/installed | time=124ms
10:23:31.109 INFO: Load plugins index (done) | time=160ms
10:23:31.229 INFO: Load/download plugins (done) | time=281ms
10:23:31.324 DEBUG: Plugins:
10:23:31.324 DEBUG:   * SonarCSS 1.0.3.724 (cssfamily)
10:23:31.324 DEBUG:   * SonarPLSQL 3.4.1.2576 (plsql)
10:23:31.324 DEBUG:   * SonarScala 1.5.0.315 (sonarscala)
10:23:31.324 DEBUG:   * SonarC# 7.12.0.8217 (csharp)
10:23:31.325 DEBUG:   * Vulnerability Analysis 7.7.0.4011 (security)
10:23:31.325 DEBUG:   * SonarJava 5.11.0.17289 (java)
10:23:31.325 DEBUG:   * SonarHTML 3.1.0.1615 (web)
10:23:31.325 DEBUG:   * SonarFlex 2.4.0.1222 (flex)
10:23:31.325 DEBUG:   * SonarXML 2.0.1.2020 (xml)
10:23:31.325 DEBUG:   * SonarTS 1.9.0.3766 (typescript)
10:23:31.325 DEBUG:   * SonarVB 7.12.0.8217 (vbnet)
10:23:31.325 DEBUG:   * SonarSwift 4.1.0.3087 (swift)
10:23:31.325 DEBUG:   * SonarCFamily 6.1.0.11021 (cpp)
10:23:31.325 DEBUG:   * SonarPython 1.13.0.2922 (python)
10:23:31.325 DEBUG:   * JaCoCo 1.0.1.143 (jacoco)
10:23:31.326 DEBUG:   * Mercurial 1.1.2 (scmmercurial)
10:23:31.326 DEBUG:   * SonarGo 1.1.0.1612 (go)
10:23:31.326 DEBUG:   * SonarKotlin 1.5.0.315 (kotlin)
10:23:31.326 DEBUG:   * SonarTSQL 1.3.1.3067 (tsql)
10:23:31.326 DEBUG:   * SonarApex 1.5.0.315 (sonarapex)
10:23:31.326 DEBUG:   * SonarJS 5.1.1.7506 (javascript)
10:23:31.326 DEBUG:   * SonarRuby 1.5.0.315 (ruby)
10:23:31.326 DEBUG:   * Vulnerability Rules for C# 7.7.0.4011 (securitycsharpfrontend)
10:23:31.326 DEBUG:   * Vulnerability Rules for Java 7.7.0.4011 (securityjavafrontend)
10:23:31.326 DEBUG:   * License for SonarLint 7.8.0.23279 (license)
10:23:31.326 DEBUG:   * SonarCOBOL 4.4.0.3403 (cobol)
10:23:31.326 DEBUG:   * Git 1.8.0.1574 (scmgit)
10:23:31.326 DEBUG:   * SonarPHP 3.0.0.4537 (php)
10:23:31.327 DEBUG:   * SonarABAP 3.7.1.1762 (abap)
10:23:31.327 DEBUG:   * Vulnerability Rules for PHP 7.7.0.4011 (securityphpfrontend)
10:23:31.338 INFO: Loaded core extensions: developer-scanner
10:23:31.342 INFO: ------------------------------------------------------------------------
10:23:31.342 INFO: EXECUTION FAILURE
10:23:31.343 INFO: ------------------------------------------------------------------------
10:23:31.343 INFO: Total time: 2.201s
10:23:31.393 INFO: Final Memory: 22M/238M
10:23:31.394 INFO: ------------------------------------------------------------------------
10:23:31.394 ERROR: Error during SonarQube Scanner execution
10:23:31.394 ERROR: Tasks support was removed in SonarQube 7.6.

My sonar-project.properties are:

sonar.organization=set #don't want to show publicly
sonar.projectKey=set #don't want to show publicly
sonar.host.url=https://sonarcloud.io
sonar.login=set #don't want to show publicly
sonar.sources=backend/
sonar.exclusions=**/*.sql,**/tests/**,**/vendor/**,backend/plagiarism-api/**,backend/api-docs/**,backend/quality-api/**
sonar.language=php

Also, maybe helpful:

sonar-scanner Dproject.settings=./sonar-project.properties -v
INFO: Scanner configuration file: /usr/local/bin/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarQube Scanner 3.3.0.1492
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Linux 4.15.0-47-generic amd64

To me, this looks similar to CFamily plugin 6.0.0.10816 crashing during scan with gcc 4.9.1 output. However, It’s unclear to me what the timeline is for having the issue resolved, or what options are available to me in the meantime. Until I’m able to run it, I’m not able to use SonarQube in my CI process.


(G Ann Campbell) #2

Hi,

You’re missing the - on Dproject.settings=./sonar-project.properties, which by the way you don’t need anyway. That’s where the scanner’s going to look for properties anyway. Because the - is missing, this is seen not as the definition of a property, but as an argument (a task to run) and those aren’t supported.

Try this instead:

sonar-scanner -X

 
:slight_smile:
Ann