Sonarqube-scanner@4.3.3 not working

With latest version sonarqube-scanner@4.3.3 we get error when running analysis on our projects:

/usr/bin/bash: line 196: sonar-scanner: command not found

$ npm install -g sonarqube-scanner

$ sonar-scanner

/usr/bin/bash: line 196: sonar-scanner: command not found

Works with older versions (sonarqube-scanner@4.3.2)

EDIT: also trying

$ npx @sonar/scan

npm warn exec The following package was not found and will be installed: @sonar/scan@4.3.3

sh: 1: sonar: not found

But it also fails.

Best regards. Klemen

I try https://www.npmjs.com/package/sonarqube-scanner

$ npx @sonar/scan
npm warn exec The following package was not found and will be installed: @sonar/scan@4.3.3
sh: 1: sonar: not found

It also fails with installing @sonar/scan globally and running sonar command

$ npm install -g @sonar/scan

$ sonar

/usr/bin/bash: line 196: sonar: command not found


2 Likes

Hi all,

Welcome to the community and thanks for these reports!

I’ve raised the alarm internally. We’re on it. I’ll update you here when we know something.

 
Ann

Hi all,

We’re going to update latest to point back to 4.3.2, which will give us breathing room to figure out the problem.

 
Ann

1 Like

Hi again,

This move is done, so it should work for you again.

In the meantime, we spotted the problem and are working on putting out a fix.

 
Thx,
Ann

Hi Ann,

It looks like the sonarqube-scanner package was reverted to 4.3.2, but not the sonar/scan one, causing migrated setups to still fail.

https://www.npmjs.com/package/sonarqube-scanner

https://www.npmjs.com/package/@sonar/scan

2 Likes

A new version 4.3.4 has been released: https://www.npmjs.com/package/@sonar/scan?activeTab=versions

1 Like