Scan python code stuck at INFO: Sensor Cobertura Sensor for Python coverage [python]

Template for a good bug report, formatted with Markdown:

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
  • error observed (wrap logs/code around triple quote ``` for proper formatting)
  • steps to reproduce
  • potential workaround

P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behaviour

sonarqube version: 8.6
sonar-scanner: 4.5

my python source code is at /home/test/cloud_agent

when I do scanning in cloud_agent folder, it can scan success.

but when I scan in /home/test, the scanning will stuck at
INFO: Sensor Cobertura Sensor for Python coverage [python]

my sonar-project.properties is at /home/test, the content is:
sonar.projectKey=cloud
sonar.projectName=cloud
sonar.projectVersion=1.0
sonar.sources=/home/test/cloud_agent
sonar.sourceEncoding=UTF-8

the scanning log:

root@test-VirtualBox:~# sonar-scanner
INFO: Scanner configuration file: /home/test/Downloads/sonar-scanner-4.5.0.2216-linux/conf/sonar-scanner.properties
INFO: Project root configuration file: /home/test/sonar-project.properties
INFO: SonarScanner 4.5.0.2216
INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
INFO: Linux 5.4.0-59-generic amd64
INFO: User cache: /root/.sonar/cache
INFO: Scanner configuration file: /home/test/Downloads/sonar-scanner-4.5.0.2216-linux/conf/sonar-scanner.properties
INFO: Project root configuration file: /home/test/sonar-project.properties
INFO: Analyzing on SonarQube server 8.6.0
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Load global settings
INFO: Load global settings (done) | time=158ms
INFO: Server id: 86E1FA4D-AXZqmToXE7BZeV0KUFoD
INFO: User cache: /root/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=89ms
INFO: Load/download plugins (done) | time=556ms
INFO: Loaded core extensions: developer-scanner
INFO: JavaScript/TypeScript frontend is enabled
INFO: Process project properties
INFO: Process project properties (done) | time=37ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=9ms
INFO: Project key: cloud
INFO: Base dir: /home/test
INFO: Working dir: /home/test/.scannerwork
INFO: Load project settings for component key: 'cloud'
INFO: Load project settings for component key: 'cloud' (done) | time=32ms
INFO: Load project branches
INFO: Load project branches (done) | time=26ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=43ms
INFO: Load branch configuration
INFO: Load branch configuration (done) | time=2ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=120ms
INFO: Load active rules
INFO: Load active rules (done) | time=1581ms
WARN: SCM provider autodetection failed. Please use "sonar.scm.provider" to define SCM of your project, or disable the SCM Sensor in the project settings.
INFO: Indexing files...
INFO: Project configuration:
INFO: 12 files indexed
INFO: Quality profile for py: Sonar way
INFO: ------------- Run sensors on module cloud
INFO: JavaScript/TypeScript frontend is enabled
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=68ms
INFO: Sensor CSS Rules [cssfamily]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor CSS Rules [cssfamily] (done) | time=1ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=1ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=3ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=15ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=6ms
INFO: Sensor Python Sensor [python]
INFO: Starting global symbols computation
INFO: 5 source files to be analyzed
INFO: Load project repositories
INFO: Load project repositories (done) | time=41ms
INFO: 0/5 files analyzed, current file: cloud_agent/fetchurl_agent.py
INFO: 5/5 source files have been analyzed
INFO: Starting rules execution
INFO: 5 source files to be analyzed
INFO: 5/5 source files have been analyzed
INFO: Sensor Python Sensor [python] (done) | time=18840ms
INFO: Sensor Cobertura Sensor for Python coverage [python]

Hi,

Can you bump your log level (-Dsonar.log.level=DEBUG on the command line) & run the analysis again?

 
Ann

HI, Ann

the debug log as below:
I’m a new user, so i can’t paste over 6 links, I’ll let http → htp

root@test-VirtualBox:~# sonar-scanner
INFO: Scanner configuration file: /home/test/Downloads/sonar-scanner-4.5.0.2216-linux/conf/sonar-scanner.properties
INFO: Project root configuration file: /home/test/sonar-project.properties
09:56:17.476 INFO: SonarScanner 4.5.0.2216
09:56:17.478 INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
09:56:17.478 INFO: Linux 5.4.0-59-generic amd64
09:56:18.213 DEBUG: keyStore is : 
09:56:18.214 DEBUG: keyStore type is : pkcs12
09:56:18.214 DEBUG: keyStore provider is : 
09:56:18.214 DEBUG: init keystore
09:56:18.222 DEBUG: init keymanager of type SunX509
09:56:18.768 DEBUG: Create: /root/.sonar/cache
09:56:18.772 INFO: User cache: /root/.sonar/cache
09:56:18.773 DEBUG: Create: /root/.sonar/cache/_tmp
09:56:18.775 DEBUG: Extract sonar-scanner-api-batch in temp...
09:56:18.811 DEBUG: Get bootstrap index...
09:56:18.814 DEBUG: Download: htp://localhost:9000/batch/index
09:56:19.118 DEBUG: Get bootstrap completed
09:56:19.124 DEBUG: Create isolated classloader...
09:56:19.196 DEBUG: Start temp cleaning...
09:56:19.204 DEBUG: Temp cleaning done
09:56:19.204 INFO: Scanner configuration file: /home/test/Downloads/sonar-scanner-4.5.0.2216-linux/conf/sonar-scanner.properties
09:56:19.205 INFO: Project root configuration file: /home/test/sonar-project.properties
09:56:19.224 DEBUG: Execution getVersion
09:56:19.297 INFO: Analyzing on SonarQube server 8.6.0
09:56:19.298 INFO: Default locale: "en_US", source code encoding: "UTF-8"
09:56:19.299 DEBUG: Work directory: /home/test/.scannerwork
09:56:19.300 DEBUG: Execution execute
09:56:20.333 DEBUG: Enterprise 8.6.0.39681
09:56:20.826 INFO: Load global settings
09:56:20.962 DEBUG: GET 200 htp://localhost:9000/api/settings/values.protobuf | time=133ms
09:56:21.135 INFO: Load global settings (done) | time=309ms
09:56:21.159 INFO: Server id: 86E1FA4D-AXZqmToXE7BZeV0KUFoD
09:56:21.183 INFO: User cache: /root/.sonar/cache
09:56:21.228 INFO: Load/download plugins
09:56:21.229 INFO: Load plugins index
09:56:21.288 DEBUG: GET 200 htp://localhost:9000/api/plugins/installed | time=59ms
09:56:21.418 INFO: Load plugins index (done) | time=189ms
09:56:22.285 INFO: Load/download plugins (done) | time=1057ms
09:56:22.895 DEBUG: Plugins:
09:56:22.896 DEBUG:   * CSS Code Quality and Security 1.3.1.1642 (cssfamily)
09:56:22.896 DEBUG:   * PL/SQL Code Quality and Security 3.5.0.3437 (plsql)
09:56:22.897 DEBUG:   * Scala Code Quality and Security 1.8.1.1804 (sonarscala)
09:56:22.897 DEBUG:   * C# Code Quality and Security 8.15.0.24505 (csharp)
09:56:22.897 DEBUG:   * Vulnerability Analysis 8.6.0.6438 (security)
09:56:22.897 DEBUG:   * Java Code Quality and Security 6.9.0.23563 (java)
09:56:22.898 DEBUG:   * HTML Code Quality and Security 3.3.0.2534 (web)
09:56:22.899 DEBUG:   * Flex Code Quality and Security 2.6.0.2294 (flex)
09:56:22.899 DEBUG:   * SonarXML 2.0.1.2020 (xml)
09:56:22.899 DEBUG:   * VB.NET Code Quality and Security 8.15.0.24505 (vbnet)
09:56:22.899 DEBUG:   * Swift Code Quality and Security 4.3.0.4687 (swift)
09:56:22.899 DEBUG:   * CFamily Code Quality and Security 6.15.0.25047 (cpp)
09:56:22.899 DEBUG:   * Python Code Quality and Security 3.1.0.7619 (python)
09:56:22.899 DEBUG:   * Go Code Quality and Security 1.8.1.1804 (go)
09:56:22.899 DEBUG:   * JaCoCo 1.1.0.898 (jacoco)
09:56:22.899 DEBUG:   * Kotlin Code Quality and Security 1.8.1.1804 (kotlin)
09:56:22.900 DEBUG:   * RPG Code Quality 2.5.0.2338 (rpg)
09:56:22.900 DEBUG:   * SonarPLI 1.10.0.1880 (pli)
09:56:22.900 DEBUG:   * T-SQL Code Quality and Security 1.5.0.3958 (tsql)
09:56:22.900 DEBUG:   * VB6 Code Quality and Security 2.7.0.2497 (vb)
09:56:22.900 DEBUG:   * Apex Code Quality and Security 1.8.1.1804 (sonarapex)
09:56:22.900 DEBUG:   * JavaScript/TypeScript Code Quality and Security 7.0.1.14561 (javascript)
09:56:22.901 DEBUG:   * Ruby Code Quality and Security 1.8.1.1804 (ruby)
09:56:22.902 DEBUG:   * Vulnerability Rules for C# 8.6.0.6438 (securitycsharpfrontend)
09:56:22.904 DEBUG:   * Vulnerability Rules for Java 8.6.0.6438 (securityjavafrontend)
09:56:22.904 DEBUG:   * License for SonarLint 8.6.0.39681 (license)
09:56:22.904 DEBUG:   * Vulnerability Rules for JS 8.6.0.6438 (securityjsfrontend)
09:56:22.906 DEBUG:   * COBOL Code Quality 4.6.0.4639 (cobol)
09:56:22.907 DEBUG:   * Vulnerability Rules for Python 8.6.0.6438 (securitypythonfrontend)
09:56:22.908 DEBUG:   * PHP Code Quality and Security 3.13.0.6849 (php)
09:56:22.908 DEBUG:   * ABAP Code Quality and Security 3.9.0.2739 (abap)
09:56:22.908 DEBUG:   * Vulnerability Rules for PHP 8.6.0.6438 (securityphpfrontend)
09:56:23.084 INFO: Loaded core extensions: developer-scanner
09:56:23.147 DEBUG: Installed core extension: developer-scanner
09:56:24.114 INFO: JavaScript/TypeScript frontend is enabled
09:56:24.710 INFO: Process project properties
09:56:24.736 INFO: Process project properties (done) | time=26ms
09:56:24.737 INFO: Execute project builders
09:56:24.738 DEBUG: Execute project builder: org.sonar.plugins.csharp.CSharpGlobalProtobufFileProcessor
09:56:24.738 DEBUG: Execute project builder: org.sonar.plugins.vbnet.VbNetGlobalProtobufFileProcessor
09:56:24.744 INFO: Execute project builders (done) | time=7ms
09:56:24.755 INFO: Project key: cloud
09:56:24.761 INFO: Base dir: /home/test
09:56:24.761 INFO: Working dir: /home/test/.scannerwork
09:56:24.762 DEBUG: Project global encoding: UTF-8, default locale: en_US
09:56:24.763 DEBUG: Creating module hierarchy
09:56:24.766 DEBUG:   Init module 'cloud'
09:56:24.776 DEBUG:     Base dir: /home/test
09:56:24.776 DEBUG:     Working dir: /home/test/.scannerwork
09:56:24.785 DEBUG:     Module global encoding: UTF-8, default locale: en_US
09:56:25.166 INFO: Load project settings for component key: 'cloud'
09:56:25.192 DEBUG: GET 200 htp://localhost:9000/api/settings/values.protobuf?component=cloud | time=26ms
09:56:25.199 INFO: Load project settings for component key: 'cloud' (done) | time=32ms
09:56:25.216 INFO: Load project branches
09:56:25.233 DEBUG: GET 200 htp://localhost:9000/api/project_branches/list?project=cloud | time=17ms
09:56:25.257 INFO: Load project branches (done) | time=41ms
09:56:25.259 INFO: Load project pull requests
09:56:25.294 DEBUG: GET 200 htp://localhost:9000/api/project_pull_requests/list?project=cloud | time=34ms
09:56:25.323 INFO: Load project pull requests (done) | time=64ms
09:56:25.325 INFO: Load branch configuration
09:56:25.342 INFO: Load branch configuration (done) | time=17ms
09:56:25.492 DEBUG: Available languages:
09:56:25.495 DEBUG:   * CSS => "css"
09:56:25.496 DEBUG:   * PL/SQL => "plsql"
09:56:25.496 DEBUG:   * Scala => "scala"
09:56:25.496 DEBUG:   * C# => "cs"
09:56:25.496 DEBUG:   * Java => "java"
09:56:25.496 DEBUG:   * HTML => "web"
09:56:25.496 DEBUG:   * JSP => "jsp"
09:56:25.496 DEBUG:   * Flex => "flex"
09:56:25.496 DEBUG:   * XML => "xml"
09:56:25.496 DEBUG:   * VB.NET => "vbnet"
09:56:25.496 DEBUG:   * Swift => "swift"
09:56:25.497 DEBUG:   * C => "c"
09:56:25.497 DEBUG:   * C++ => "cpp"
09:56:25.497 DEBUG:   * Objective-C => "objc"
09:56:25.497 DEBUG:   * Python => "py"
09:56:25.497 DEBUG:   * Go => "go"
09:56:25.497 DEBUG:   * Kotlin => "kotlin"
09:56:25.497 DEBUG:   * RPG => "rpg"
09:56:25.499 DEBUG:   * PL/I => "pli"
09:56:25.499 DEBUG:   * T-SQL => "tsql"
09:56:25.499 DEBUG:   * Vb => "vb"
09:56:25.509 DEBUG:   * Apex => "apex"
09:56:25.509 DEBUG:   * JavaScript => "js"
09:56:25.509 DEBUG:   * TypeScript => "ts"
09:56:25.509 DEBUG:   * Ruby => "ruby"
09:56:25.510 DEBUG:   * COBOL => "cobol"
09:56:25.510 DEBUG:   * PHP => "php"
09:56:25.513 DEBUG:   * ABAP => "abap"
09:56:25.518 INFO: Load quality profiles
**There are some DEBUG GET message, but i'am a new user, I can't paste over 6 links.**
09:56:53.108 DEBUG: GET 200 htp://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AXZqmjrzE7BZeV0KUIAU&ps=500&p=1 | time=109ms
09:56:53.157 INFO: Load active rules (done) | time=27403ms
09:56:53.277 WARN: SCM provider autodetection failed. Please use "sonar.scm.provider" to define SCM of your project, or disable the SCM Sensor in the project settings.
09:56:53.436 DEBUG: Declared extensions of language CSS were converted to sonar.lang.patterns.css : **/*.css,**/*.less,**/*.scss
09:56:53.436 DEBUG: Declared extensions of language PL/SQL were converted to sonar.lang.patterns.plsql : **/*.sql,**/*.pks,**/*.pkb
09:56:53.437 DEBUG: Declared extensions of language Scala were converted to sonar.lang.patterns.scala : **/*.scala
09:56:53.437 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
09:56:53.440 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
09:56:53.456 DEBUG: Declared extensions of language HTML were converted to sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml
09:56:53.457 DEBUG: Declared extensions of language JSP were converted to sonar.lang.patterns.jsp : **/*.jsp,**/*.jspf,**/*.jspx
09:56:53.463 DEBUG: Declared extensions of language Flex were converted to sonar.lang.patterns.flex : **/*.as
09:56:53.463 DEBUG: Declared extensions of language XML were converted to sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**/*.xsl
09:56:53.463 DEBUG: Declared extensions of language VB.NET were converted to sonar.lang.patterns.vbnet : **/*.vb
09:56:53.467 DEBUG: Declared extensions of language Swift were converted to sonar.lang.patterns.swift : **/*.swift
09:56:53.467 DEBUG: Declared extensions of language C were converted to sonar.lang.patterns.c : **/*.c,**/*.h
09:56:53.468 DEBUG: Declared extensions of language C++ were converted to sonar.lang.patterns.cpp : **/*.cc,**/*.cpp,**/*.cxx,**/*.c++,**/*.hh,**/*.hpp,**/*.hxx,**/*.h++,**/*.ipp
09:56:53.468 DEBUG: Declared extensions of language Objective-C were converted to sonar.lang.patterns.objc : **/*.m
09:56:53.468 DEBUG: Declared extensions of language Python were converted to sonar.lang.patterns.py : **/*.py
09:56:53.468 DEBUG: Declared extensions of language Go were converted to sonar.lang.patterns.go : **/*.go
09:56:53.474 DEBUG: Declared extensions of language Kotlin were converted to sonar.lang.patterns.kotlin : **/*.kt
09:56:53.474 DEBUG: Declared extensions of language RPG were converted to sonar.lang.patterns.rpg : **/*.rpg,**/*.rpgle,**/*.rpg,**/*.rpgle
09:56:53.475 DEBUG: Declared extensions of language PL/I were converted to sonar.lang.patterns.pli : **/*.pli
09:56:53.476 DEBUG: Declared extensions of language T-SQL were converted to sonar.lang.patterns.tsql : **/*.tsql
09:56:53.477 DEBUG: Declared extensions of language Vb were converted to sonar.lang.patterns.vb : **/*.vb,**/*.bas,**/*.frm,**/*.ctl,**/*.vb,**/*.bas,**/*.frm,**/*.ctl
09:56:53.480 DEBUG: Declared extensions of language Apex were converted to sonar.lang.patterns.apex : **/*.cls,**/*.trigger
09:56:53.480 DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js,**/*.jsx,**/*.vue
09:56:53.480 DEBUG: Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.tsx
09:56:53.481 DEBUG: Declared extensions of language Ruby were converted to sonar.lang.patterns.ruby : **/*.rb
09:56:53.481 DEBUG: Declared extensions of language COBOL were converted to sonar.lang.patterns.cobol : 
09:56:53.481 DEBUG: Declared extensions of language PHP were converted to sonar.lang.patterns.php : **/*.php,**/*.php3,**/*.php4,**/*.php5,**/*.phtml,**/*.inc
09:56:53.482 DEBUG: Declared extensions of language ABAP were converted to sonar.lang.patterns.abap : **/*.abap,**/*.ab4,**/*.flow,**/*.asprog
09:56:53.489 DEBUG: Will ignore generated code
09:56:53.496 DEBUG: Will ignore generated code
09:56:53.517 INFO: Indexing files...
09:56:53.520 INFO: Project configuration:
09:56:53.577 DEBUG: 'cloud_agent/Makefile' indexed with no language
09:56:53.587 DEBUG: 'cloud_agent/expmode_wan_check.py' indexed with language 'py'
09:56:53.605 DEBUG: 'cloud_agent/privacy_statement.pyc' indexed with no language
09:56:53.607 DEBUG: 'cloud_agent/expmode_wan_check.pyc' indexed with no language
09:56:53.617 DEBUG: 'cloud_agent/agent_util.py' indexed with language 'py'
09:56:53.638 DEBUG: 'cloud_agent/reg_agent.py' indexed with language 'py'
09:56:53.640 DEBUG: 'cloud_agent/fetchurl_agent.pyc' indexed with no language
09:56:53.649 DEBUG: 'cloud_agent/privacy_statement.py' indexed with language 'py'
09:56:53.652 DEBUG: 'cloud_agent/sonar-project.properties' indexed with no language
09:56:53.653 DEBUG: 'cloud_agent/agent_util.pyc' indexed with no language
09:56:53.666 DEBUG: 'cloud_agent/reg_agent.pyc' indexed with no language
09:56:53.670 DEBUG: 'cloud_agent/fetchurl_agent.py' indexed with language 'py'
09:56:53.685 INFO: 12 files indexed
09:56:53.686 INFO: Quality profile for py: Sonar way
09:56:53.686 INFO: ------------- Run sensors on module cloud
09:56:54.196 INFO: JavaScript/TypeScript frontend is enabled
09:56:54.377 INFO: Load metrics repository
09:56:54.386 DEBUG: GET 200 htp://localhost:9000/api/metrics/search?f=name,description,direction,qualitative,custom&ps=500&p=1 | time=9ms
09:56:54.441 INFO: Load metrics repository (done) | time=64ms
09:56:58.322 DEBUG: Adding rules for repository 'jssecurity', language: JAVASCRIPT, [class A.A.A.A.A.A.B, class A.A.A.A.A.A.A, class A.A.A.A.A.A.C] from A.A.A.A.A.F
09:56:58.342 DEBUG: Adding rules for repository 'tssecurity', language: TYPESCRIPT, [class A.A.A.A.A.A.B, class A.A.A.A.A.A.A, class A.A.A.A.A.A.C] from A.A.A.A.A.B
09:56:59.474 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project
09:56:59.480 DEBUG: 'CobolSquidSensor' skipped because there is no related file in current project
09:56:59.481 DEBUG: 'Import external issues report' skipped because one of the required properties is missing
09:56:59.482 DEBUG: 'CSS Metrics' skipped because there is no related file in current project
09:56:59.482 DEBUG: 'Import of stylelint issues' skipped because there is no related file in current project
09:56:59.483 DEBUG: 'PL/SQL Sensor' skipped because there is no related file in current project
09:56:59.483 DEBUG: 'Scala Sensor' skipped because there is no related file in current project
09:56:59.483 DEBUG: 'Scoverage sensor for Scala coverage' skipped because there is no related file in current project
09:56:59.484 DEBUG: 'Import of Scalastyle issues' skipped because there is no related file in current project
09:56:59.491 DEBUG: 'Import of Scapegoat issues' skipped because there is no related file in current project
09:56:59.492 DEBUG: 'Import of Checkstyle issues' skipped because there is no related file in current project
09:56:59.493 DEBUG: 'Import of PMD issues' skipped because one of the required properties is missing
09:56:59.496 DEBUG: 'Import of SpotBugs issues' skipped because there is no related file in current project
09:56:59.505 DEBUG: 'SurefireSensor' skipped because there is no related file in current project
09:56:59.507 DEBUG: 'Removed properties sensor' skipped because there is no related file in current project
09:56:59.509 DEBUG: 'Flex' skipped because there is no related file in current project
09:56:59.512 DEBUG: 'Flex Cobertura' skipped because there is no related file in current project
09:56:59.512 DEBUG: 'XML Sensor' skipped because there is no related file in current project
09:56:59.513 DEBUG: 'Swift Code Quality and Security' skipped because there is no related file in current project
09:56:59.514 DEBUG: 'Import of SwiftLint issues' skipped because there is no related file in current project
09:56:59.516 DEBUG: 'gcov' skipped because there is no related file in current project
09:56:59.520 DEBUG: 'llvm-cov' skipped because there is no related file in current project
09:56:59.532 DEBUG: 'cppunit' skipped because there is no related file in current project
09:56:59.534 DEBUG: 'VisualStudioCoverage' skipped because there is no related file in current project
09:56:59.534 DEBUG: 'bullseye' skipped because there is no related file in current project
09:56:59.545 DEBUG: 'Import of Pylint issues' skipped because one of the required properties is missing
09:56:59.548 DEBUG: 'Import of Bandit issues' skipped because one of the required properties is missing
09:56:59.548 DEBUG: 'Import of Flake8 issues' skipped because one of the required properties is missing
09:56:59.548 DEBUG: 'Code Quality and Security for Go' skipped because there is no related file in current project
09:56:59.549 DEBUG: 'Go Unit Test Report' skipped because there is no related file in current project
09:56:59.550 DEBUG: 'Go Cover sensor for Go coverage' skipped because one of the required properties is missing
09:56:59.550 DEBUG: 'Import of go vet issues' skipped because there is no related file in current project
09:56:59.550 DEBUG: 'Import of Golint issues' skipped because there is no related file in current project
09:56:59.557 DEBUG: 'Import of GoMetaLinter issues' skipped because there is no related file in current project
09:56:59.557 DEBUG: 'Import of GolangCI-Lint issues' skipped because there is no related file in current project
09:56:59.557 DEBUG: 'Kotlin Sensor' skipped because there is no related file in current project
09:56:59.558 DEBUG: 'KotlinSurefireSensor' skipped because there is no related file in current project
09:56:59.559 DEBUG: 'Import of detekt issues' skipped because there is no related file in current project
09:56:59.560 DEBUG: 'Import of Android Lint issues' skipped because one of the required properties is missing
09:56:59.572 DEBUG: 'RPG sensor' skipped because there is no related file in current project
09:56:59.577 DEBUG: 'PliSquidSensor' skipped because there is no related file in current project
09:56:59.579 DEBUG: 'T-SQL Sensor' skipped because there is no related file in current project
09:56:59.584 DEBUG: 'VbSquidSensor' skipped because there is no related file in current project
09:56:59.584 DEBUG: 'Apex Sensor' skipped because there is no related file in current project
09:56:59.584 DEBUG: 'Test coverage Sensor for Apex' skipped because there is no related file in current project
09:56:59.585 DEBUG: 'Import of PMD issues' skipped because there is no related file in current project
09:56:59.585 DEBUG: 'JavaScript analysis' skipped because there is no related file in current project
09:56:59.586 DEBUG: 'TypeScript analysis' skipped because there is no related file in current project
09:56:59.590 DEBUG: 'JavaScript/TypeScript Coverage' skipped because there is no related file in current project
09:56:59.591 DEBUG: 'Import of ESLint issues' skipped because one of the required properties is missing
09:56:59.596 DEBUG: 'Import of TSLint issues' skipped because one of the required properties is missing
09:56:59.597 DEBUG: 'Ruby Sensor' skipped because there is no related file in current project
09:56:59.601 DEBUG: 'Import of RuboCop issues' skipped because there is no related file in current project
09:56:59.605 DEBUG: 'SimpleCov Sensor for Ruby coverage' skipped because there is no related file in current project
09:56:59.606 DEBUG: 'PHP sensor' skipped because there is no related file in current project
09:56:59.606 DEBUG: 'Analyzer for "php.ini" files' skipped because there is no related file in current project
09:56:59.606 DEBUG: 'AbapSquidSensor' skipped because there is no related file in current project
09:56:59.631 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing
09:56:59.633 DEBUG: 'CFamily' skipped because there is no related file in current project
09:56:59.637 DEBUG: Sensors : CSS Rules -> C# Properties -> JavaXmlSensor -> HTML -> VB.NET Properties -> Python Sensor -> Cobertura Sensor for Python coverage -> PythonXUnitSensor -> JaCoCo XML Report Importer -> ThymeLeaf template sensor -> Python HTML templates processing -> JavaSecuritySensor -> CSharpSecuritySensor -> PhpSecuritySensor -> PythonSecuritySensor -> JsSecuritySensor
09:56:59.640 INFO: Sensor CSS Rules [cssfamily]
09:56:59.649 INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
09:56:59.649 INFO: Sensor CSS Rules [cssfamily] (done) | time=9ms
09:56:59.649 INFO: Sensor C# Properties [csharp]
09:56:59.649 DEBUG: Project 'cloud': Property missing: 'sonar.cs.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
09:56:59.654 DEBUG: Project 'cloud': No Roslyn issues reports have been found.
09:56:59.657 INFO: Sensor C# Properties [csharp] (done) | time=5ms
09:56:59.673 INFO: Sensor JavaXmlSensor [java]
09:56:59.681 INFO: Sensor JavaXmlSensor [java] (done) | time=9ms
09:56:59.682 INFO: Sensor HTML [web]
09:56:59.696 INFO: Sensor HTML [web] (done) | time=14ms
09:56:59.697 INFO: Sensor VB.NET Properties [vbnet]
09:56:59.698 DEBUG: Project 'cloud': Property missing: 'sonar.vbnet.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
09:56:59.712 DEBUG: Project 'cloud': No Roslyn issues reports have been found.
09:56:59.715 INFO: Sensor VB.NET Properties [vbnet] (done) | time=18ms
09:56:59.716 INFO: Sensor Python Sensor [python]
09:56:59.739 INFO: Starting global symbols computation
09:56:59.745 INFO: 5 source files to be analyzed
09:56:59.872 INFO: Load project repositories
09:56:59.917 DEBUG: GET 200 htp://localhost:9000/batch/project.protobuf?key=cloud | time=45ms
09:56:59.962 INFO: Load project repositories (done) | time=90ms
09:56:59.963 DEBUG: 'cloud_agent/fetchurl_agent.py' generated metadata with charset 'UTF-8'
09:57:09.760 INFO: 0/5 files analyzed, current file: cloud_agent/fetchurl_agent.py
09:57:12.992 DEBUG: 'cloud_agent/expmode_wan_check.py' generated metadata with charset 'UTF-8'
09:57:13.070 DEBUG: 'cloud_agent/reg_agent.py' generated metadata with charset 'UTF-8'
09:57:13.422 DEBUG: 'cloud_agent/privacy_statement.py' generated metadata with charset 'UTF-8'
09:57:13.523 DEBUG: 'cloud_agent/agent_util.py' generated metadata with charset 'UTF-8'
09:57:13.532 INFO: 5/5 source files have been analyzed
09:57:13.533 DEBUG: Time to build the project level symbol table: 13794ms
09:57:13.540 INFO: Starting rules execution
09:57:13.540 INFO: 5 source files to be analyzed
09:57:19.192 INFO: 5/5 source files have been analyzed
09:57:19.192 INFO: Sensor Python Sensor [python] (done) | time=19476ms
09:57:19.193 INFO: Sensor Cobertura Sensor for Python coverage [python]
09:57:19.193 DEBUG: Using pattern 'coverage-reports/*coverage-*.xml' to find reports

Felix

Hi Felix,

Thanks for the log. I don’t see anything obvious here, so now we wait for the specialists to pick this up.

While we’re waiting, I don’t suppose you have any sort of antivirus or other “helpful” background processes running locally? We have deep experience in processes that lock files and/or twiddle permissions interfering with analysis.

 
Ann

I am running into this issue as well. In my case, our entire project is in JavaScript except for one single python util script that was recently added. Now the scan hangs in the same spot that Felix reported.
19:35:07.847 DEBUG: 'SonarTS' skipped because there is no related file in current project
19:35:07.850 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
19:35:07.850 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing
19:35:07.850 DEBUG: Sensors : Cobertura Sensor for Python coverage -> JaCoCo XML Report Importer -> JavaScript analysis -> SonarJS Coverage -> JavaXmlSensor -> HTML
19:35:07.851 INFO: Sensor Cobertura Sensor for Python coverage [python]
19:35:07.851 DEBUG: Using pattern 'coverage-reports/*coverage-*.xml' to find reports

I’ve tried excluding the python file.
I’ve tried setting up inclusions for everything but the python file.
I’ve tried setting sonar.language=js

I am currently running the scan with sonar-scanner-4.6.0.2311-linux

I found the solution to my problem and I thought I would share in case it is of use to Felix.

My problem was caused because the python file in question was located in the Test folder. I think that Sonar assumed that it must be a test, and if it was a test, then there must be a coverage report to compare it with. But since that was the only python code in the project, Sonar was looking for something that didn’t exist.
I moved the python script to a utils folder and Sonar worked like it should.

1 Like

Hello,
I encountered this problem and I would like to share what I have found:

  • my project was a Python project, so I can’t use the workaround found by Matt Reinker;
  • this problem happens only on Linux system, if I run scan on Windows everything works fine;
  • to solve the problem I add property “sonar.projectBaseDir” to my sonar property file as indicated here https://groups.google.com/g/sonarqube/c/8vJUpFga-vc/m/srLvN7XaBAAJ?pli=1

Version used:

  • sonar-scanner-cli-4.6.2.2472-linux.zip
  • sonar-scanner-4.6.2.2472-windows

Andrea.

Hi Andrea,

Welcome to the community!

What version of SonarQube (from your page footer) are you using? Also, are there any symlinks involved in your path on Linux?

 
Ann

Hi,
SonarQube version is Community Edition Version 9.0 (build 45539).

On the root directory ("/") there are symlinks. The root was not intended to be the scan path, because in sonar.properties file there was “sonar.sources” property set to “/data/” which isn’t and not contain symlinks. At the beginning, my sonar.property file not contain “sonar.projectBaseDir” and from logs I saw it was set to “/”. So the problem arise on a folder with symlinks.

As additional information I add that my linux is a docker container and sonar scanner is running inside it.

I hope that help.
Andrea.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.