Sonar Scanner was stuck

Sonarqube version 7.9
Sonar Scanner 4.0.0

we are running sonar scanner on jenkins but the jobs was stuck and never finished.

the logs like below:

09:45:20.933 DEBUG: 'VB.NET Unit Test Results Import' skipped because there is no related file in current project
09:45:20.933 DEBUG: Sensors : JaCoCo XML Report Importer -> SonarJS -> ESLint-based SonarJS -> SonarJS Coverage -> JavaXmlSensor -> HTML -> Generic Test Executions Report
09:45:20.934 INFO: Sensor JaCoCo XML Report Importer [jacoco]
09:45:20.937 DEBUG: No reports found
09:45:20.937 INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=3ms
09:45:20.937 INFO: Sensor SonarJS [javascript]
09:45:20.944 INFO: 24 source files to be analyzed
09:45:21.452 DEBUG: Not enough content in 'src/models/OrganizationUnit.js' to have CPD blocks, it will not be part of the duplication detection
09:45:21.491 DEBUG: Not enough content in 'src/repositories/Repository.js' to have CPD blocks, it will not be part of the duplication detection
09:45:30.949 INFO: 13/24 files analyzed, current file: src/repositories/queries/UserQueries.js
09:45:40.950 INFO: 13/24 files analyzed, current file: src/repositories/queries/UserQueries.js
09:45:50.950 INFO: 13/24 files analyzed, current file: src/repositories/queries/UserQueries.js
09:46:00.950 INFO: 13/24 files analyzed, current file: src/repositories/queries/UserQueries.js
09:46:10.951 INFO: 13/24 files analyzed, current file: src/repositories/queries/UserQueries.js
09:46:20.952 INFO: 13/24 files analyzed, current file: src/repositories/queries/UserQueries.js
09:46:30.952 INFO: 13/24 files analyzed, current file: src/repositories/queries/UserQueries.js
09:46:40.952 INFO: 13/24 files analyzed, current file: src/repositories/queries/UserQueries.js
09:46:50.953 INFO: 13/24 files analyzed, current file: src/repositories/queries/UserQueries.js
09:47:00.954 INFO: 13/24 files analyzed, current file: src/repositories/queries/UserQueries.js
09:47:10.954 INFO: 13/24 files analyzed, current file: src/repositories/queries/UserQueries.js
09:47:20.955 INFO: 13/24 files analyzed, current file: src/repositories/queries/UserQueries.js

Hello,

Did you try to use the latest version of the JavaScript analyzer if the latest one is not yet installed on your SonarQube instance?

Latest version is 6.2.1 as of now.

Alex

Hi Alex,

Thanks for your respon
I check it’s not 6.21.can we just update it? And if something goes wrong can we just remove the jar file in plugin folder than restart sonar?

Hello,

Yes, with SonarQube 7.9, you can upgrade the JavaScript analyzer by removing the one you have and replace it with the 6.2.2 (https://docs.sonarqube.org/7.9/analysis/languages/javascript/).

Alex