I am trying to connect to the SonarQube server using the sonarlint extension in the visual studio 2019. While connecting to the server I am getting the below error.
Number of suppressions found: 2
Connecting to SonarQube server: http://xxxxxxxxxxxxx.com/
Connecting to SonarQube server: Validating credentials
Connecting to ‘http://xxxxxxxxxxxxx.com/’.
Connected to SonarQube ‘22.214.171.12410’.
Connecting to SonarQube server: Detecting server plugins
SonarQube request failed: Response status code does not indicate success: 403 ().
Connecting to SonarQube server: Failed
How do I resolve this issue?
It would be some work to check for sure but I highly suspect that your SonarLint (which I assume to very a recent version) is not compatible with your SonarQube version that is really old. Version 6.4 is not supported since very long.
I strongly encourage you to upgrade, either to the 7.9 LTS if you prefer a long supported (ie get patches for severe issue) version or 8.2 LATEST if you wish to get all the latest and greatest features.
Your version is so old that the upgrade will have to be in 2 (or 3) steps:
- Upgrade from 6.4 to 6.7 LTS (previous LTS)
- Upgrade from 6.7 to 7.9 LTS
- Optionally upgrade from 7.9 to 8.2
In the unlucky case you would use MySQL as database, be aware that we dropped MySQL support starting from 7.9 so you would also have to migrate from MySQL to another supported DB (Postgres, Oracle or SQL Server) before step 2 (ie before upgrading to 7.9).
We provide a tool, mysql-migrator, to migrate your data from MySQL to any other DB.
Additionally the 403 error code indicates that it’s a permission problem. Please verify that the user defined in SonarLint that you use to connect to SonarQube has sufficient permissions to access projects.