Sonarqube server developper edition failed to scan source code with license error

Hi Team,

Below error message am getting at the time of scanning a specific branch of a particular git repo.
“errorMessage”:“The last analysis failed because it would have caused your server-wide lines of code total to exceed your 1000000 limit.”

But I have checked the same repo other branches can be scanned without any error.
Not sure what is causing this issue.

Can you help with any specific configuration/software version needed for this repo.

Thanks,
Asutosh

=============
Version used : Developer EditionVersion 8.9.1
Error observed : full logs :

===LOGS=====
INFO: Scanner configuration file: /usr/local/Cellar/sonar-scanner/4.6.1.2450/libexec/conf/sonar-scanner.properties

INFO: Project root configuration file: NONE

INFO: SonarScanner 4.6.1.2450

INFO: Java 15.0.2 N/A (64-bit)

INFO: Mac OS X 11.4 x86_64

INFO: User cache: /Users/asutoshsatapathy/.sonar/cache

INFO: Scanner configuration file: /usr/local/Cellar/sonar-scanner/4.6.1.2450/libexec/conf/sonar-scanner.properties

INFO: Project root configuration file: NONE

INFO: Analyzing on SonarQube server 8.9.1

INFO: Default locale: “en_IN”, source code encoding: “UTF-8” (analysis is platform dependent)

INFO: Load global settings

INFO: Load global settings (done) | time=955ms

INFO: Server id: FB4B1083-AXpnFNmcOJrPqsHwQzIT

INFO: User cache: /Users/asutoshsatapathy/.sonar/cache

INFO: Load/download plugins

INFO: Load plugins index

INFO: Load plugins index (done) | time=596ms

INFO: Load/download plugins (done) | time=821ms

INFO: Loaded core extensions: developer-scanner

INFO: JavaScript/TypeScript frontend is enabled

INFO: Process project properties

INFO: Process project properties (done) | time=6ms

INFO: Execute project builders

INFO: Execute project builders (done) | time=1ms

INFO: Project key: project.c3-stage1-mapping

INFO: Base dir: /Users/asutoshsatapathy/Documents/MyWork/GIT/MAPPING

INFO: Working dir: /Users/asutoshsatapathy/Documents/MyWork/GIT/MAPPING/.scannerwork

INFO: Load project settings for component key: ‘project.c3-stage1-mapping’

INFO: Load project settings for component key: ‘project.c3-stage1-mapping’ (done) | time=485ms

INFO: Load project branches

INFO: Load project branches (done) | time=620ms

INFO: Load project pull requests

INFO: Load project pull requests (done) | time=593ms

INFO: Load branch configuration

INFO: Load branch configuration (done) | time=2ms

INFO: Load quality profiles

INFO: Load quality profiles (done) | time=624ms

INFO: Load active rules

INFO: Load active rules (done) | time=13971ms

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: 82 files indexed

INFO: Quality profile for py: Sonar way

INFO: ------------- Run sensors on module project.c3-stage1-mapping

INFO: JavaScript/TypeScript frontend is enabled

INFO: Load metrics repository

INFO: Load metrics repository (done) | time=310ms

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=0ms

INFO: Sensor C# Project Type Information [csharp]

INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms

INFO: Sensor C# Properties [csharp]

INFO: Sensor C# Properties [csharp] (done) | time=0ms

INFO: Sensor JavaXmlSensor [java]

INFO: Sensor JavaXmlSensor [java] (done) | time=1ms

INFO: Sensor HTML [web]

INFO: Sensor HTML [web] (done) | time=3ms

INFO: Sensor VB.NET Project Type Information [vbnet]

INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms

INFO: Sensor VB.NET Properties [vbnet]

INFO: Sensor VB.NET Properties [vbnet] (done) | time=1ms

INFO: Sensor Python Sensor [python]

INFO: Starting global symbols computation

INFO: 73 source files to be analyzed

INFO: Load project repositories

INFO: Load project repositories (done) | time=317ms

INFO: 73/73 source files have been analyzed

INFO: Starting rules execution

INFO: 73 source files to be analyzed

ERROR: Unable to parse file: ai-engg/utils/synonym_manager.py

ERROR: Parse error at line 27 column 33:

24: = OmopVocab(self.engine, omop_vocabulary)

25: self.umlsVocab = UmlsVocab(self.engine, additional_vocabulary)

26:

→ def get_umls_synonyms(self, )

28:

29: def addSynonymsBatch(self):

30: “”"

31: Update omop synonyms and umls synonyms in batch mode

32: “”"

33: chunkSize = 500

34: nProcessed = 0

35: s = time.time()

36: filtered_concepts = [

INFO: 73/73 source files have been analyzed

INFO: Sensor Python Sensor [python] (done) | time=14074ms

INFO: Sensor Cobertura Sensor for Python coverage [python]

INFO: Sensor Cobertura Sensor for Python coverage [python] (done) | time=63ms

INFO: Sensor PythonXUnitSensor [python]

INFO: Sensor PythonXUnitSensor [python] (done) | time=53ms

INFO: Sensor JaCoCo XML Report Importer [jacoco]

INFO: ‘sonar.coverage.jacoco.xmlReportPaths’ is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml

INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer

INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=3ms

INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]

INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=0ms

INFO: Sensor Python HTML templates processing [securitypythonfrontend]

INFO: Sensor Python HTML templates processing [securitypythonfrontend] (done) | time=54ms

INFO: Sensor JavaSecuritySensor [security]

INFO: Reading type hierarchy from: /Users/asutoshsatapathy/Documents/MyWork/GIT/MAPPING/.scannerwork/ucfg2/java

INFO: Read 0 type definitions

INFO: Reading UCFGs from: /Users/asutoshsatapathy/Documents/MyWork/GIT/MAPPING/.scannerwork/ucfg2/java

INFO: No UCFGs have been included for analysis.

INFO: Sensor JavaSecuritySensor [security] (done) | time=3ms

INFO: Sensor CSharpSecuritySensor [security]

INFO: Reading type hierarchy from: /Users/asutoshsatapathy/Documents/MyWork/GIT/MAPPING/ucfg_cs2

INFO: Read 0 type definitions

INFO: Reading UCFGs from: /Users/asutoshsatapathy/Documents/MyWork/GIT/MAPPING/ucfg_cs2

INFO: No UCFGs have been included for analysis.

INFO: Sensor CSharpSecuritySensor [security] (done) | time=0ms

INFO: Sensor PhpSecuritySensor [security]

INFO: Reading type hierarchy from: /Users/asutoshsatapathy/Documents/MyWork/GIT/MAPPING/.scannerwork/ucfg2/php

INFO: Read 0 type definitions

INFO: Reading UCFGs from: /Users/asutoshsatapathy/Documents/MyWork/GIT/MAPPING/.scannerwork/ucfg2/php

INFO: No UCFGs have been included for analysis.

INFO: Sensor PhpSecuritySensor [security] (done) | time=0ms

INFO: Sensor PythonSecuritySensor [security]

INFO: Reading type hierarchy from: /Users/asutoshsatapathy/Documents/MyWork/GIT/MAPPING/.scannerwork/ucfg2/python

INFO: Read 1008 type definitions

INFO: Reading UCFGs from: /Users/asutoshsatapathy/Documents/MyWork/GIT/MAPPING/.scannerwork/ucfg2/python

INFO: 20:00:52.364845 Building Runtime Type propagation graph

INFO: 20:00:52.462719 Running Tarjan on 14536 nodes

INFO: 20:00:52.479979 Tarjan found 14531 components

INFO: 20:00:52.525805 Variable type analysis: done

INFO: 20:00:52.52728 Building Runtime Type propagation graph

INFO: 20:00:52.597602 Running Tarjan on 14352 nodes

INFO: 20:00:52.609688 Tarjan found 14347 components

INFO: 20:00:52.641591 Variable type analysis: done

INFO: Analyzing 4084 ucfgs to detect vulnerabilities.

INFO: All rules entrypoints : 0 Retained UCFGs : 0

INFO: rule: S5334, entrypoints: 0

INFO: rule: S5334 done

INFO: rule: S5135, entrypoints: 0

INFO: rule: S5135 done

INFO: rule: S3649, entrypoints: 0

INFO: rule: S3649 done

INFO: rule: S5146, entrypoints: 0

INFO: rule: S5146 done

INFO: rule: S2083, entrypoints: 0

INFO: rule: S2083 done

INFO: rule: S2091, entrypoints: 0

INFO: rule: S2091 done

INFO: rule: S2078, entrypoints: 0

INFO: rule: S2078 done

INFO: rule: S5145, entrypoints: 0

INFO: rule: S5145 done

INFO: rule: S5167, entrypoints: 0

INFO: rule: S5167 done

INFO: rule: S5144, entrypoints: 0

INFO: rule: S5144 done

INFO: rule: S2076, entrypoints: 0

INFO: rule: S2076 done

INFO: rule: S5131, entrypoints: 0

INFO: rule: S5131 done

INFO: rule: S2631, entrypoints: 0

INFO: rule: S2631 done

INFO: Sensor PythonSecuritySensor [security] (done) | time=11777ms

INFO: Sensor JsSecuritySensor [security]

INFO: Reading type hierarchy from: /Users/asutoshsatapathy/Documents/MyWork/GIT/MAPPING/.scannerwork/ucfg2/js

INFO: Read 0 type definitions

INFO: Reading UCFGs from: /Users/asutoshsatapathy/Documents/MyWork/GIT/MAPPING/.scannerwork/ucfg2/js

INFO: No UCFGs have been included for analysis.

INFO: Sensor JsSecuritySensor [security] (done) | time=0ms

INFO: ------------- Run sensors on project

INFO: Sensor Zero Coverage Sensor

INFO: Sensor Zero Coverage Sensor (done) | time=68ms

INFO: SCM Publisher No SCM system was detected. You can use the ‘sonar.scm.provider’ property to explicitly specify it.

INFO: CPD Executor 9 files had no CPD blocks

INFO: CPD Executor Calculating CPD for 63 files

INFO: CPD Executor CPD calculation finished (done) | time=70ms

INFO: Load New Code definition

INFO: Load New Code definition (done) | time=308ms

INFO: Analysis report generated in 514ms, dir size=1 MB

INFO: Analysis report compressed in 1633ms, zip size=539 KB

INFO: Analysis report uploaded in 4626ms

INFO: ANALYSIS SUCCESSFUL, you can browse http://10.164.1.146:8080/sonar/dashboard?id=project.c3-stage1-mapping

INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report

INFO: More about the report processing at http://10.164.1.146:8080/sonar/api/ce/task?id=AXuC3w3o8Q8jwJmZXQtx

INFO: Analysis total time: 53.133 s

INFO: ------------------------------------------------------------------------

INFO: EXECUTION SUCCESS

INFO: ------------------------------------------------------------------------

INFO: Total time: 56.791s

INFO: Final Memory: 8M/47M

INFO: ------------------------------------------------------------------------

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