Error : The token you provided doesn't have sufficient rights to check license

I am trying to run sonarqube scanner in local. I am getting this error.

The token you provided doesn’t have sufficient rights to check license.
Pre-processing failed. Exit code: 1

Please help


Welcome to the community!

I’m not familiar with that particular error. Could you provide the entire anlaysis log, starting from the analysis command?


Hi Ann,
I have setup sonarqube on my local laptop and did all the configuration. I started Sonarqube and was able to browse http://localhost:9000.
When I am running the Sonar Scanner command I am getting this error.
I am attaching the screen here from the command prompt.


Thanks for the log. I’m still not familiar with that particular error string & I’m pursing that internally, but it’s clear that it is coming from SonarQube analysis.

To get past it, I would start by verifying that the account you generated the token from has rights to analyze the project in question.


Hello @Siddharth_Shankar

could you please check that your license is still valid?

what version of SQ are you using?

Hi ,
This has been resolved, There was problem with the token , I created the token again and it worked.
Thanks for your help and support

1 Like

Hi @Siddharth_Shankar , thanks for the update.

What problem did the token have? Had it been revoked? Or was it a different problem?

We are looking into improving the error message and your answer will help us.


The problem was that I was using same name for Project and Token name.
So maybe that was creating the problem. So I changed the name of the Project and also gave different name to token also. then it worked

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