SonarQube SharedBindingConfigProvider problem

Information

  • Operating system: Windows 11 Enterprise
  • Visual Studio version: Microsoft Visual Studio Professional 2022 (64-bit) - Current
    Version 17.12.4
  • SonarQube for Visual Studio plugin version: SonarQube for Visual Studio 8.10.0.11758
  • Programming language you’re coding in: C#
  • Is connected mode used: Yes, SonarQube Server
  • JDK Version configured for sonar is OpenJDK\jdk-21

Problem/Description:
When trying to connect SonarQube to SonarQube Server and error happens and the connection cannot be stablished.
Steps to reproduce:

  • Bind to SonarQube (Server/Cloud
  • Manage connections → New connection → SonarQube connection
  • Add url for sonar and token and click accept
    The plugin does not connect:

LOGS:
09:55:10:578 [ThreadId 1] [SharedBindingConfigProvider] The .sonarlint shared folder was not found
Log errors:
|09:55:29:536|[DEBUG] [ThreadId 77] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 200 myserver.com/api/system/status | response time=57ms|
|—|—|
|09:55:29:538|[DEBUG] [ThreadId 77] [SLCore] [sonarlint > SonarLint Server RPC request executor] Downloaded server infos in 58ms|

The first log message about SharedBindingConfigProvider is triggered directly when clicking "Bind to SonarQube (Server/Cloud) " much before lining the connections and configurations are done.

If I do a curl against myserver.com/api/system/status then I get a 200

Can someone help or point into some direction?

Hello @serrot!

First of all, welcome to our community! :sonar:

The log regarding the SharedBindingConfigProvider is just informing that no shared configuration was found, which in itself is not an error. You can learn more about the shared configuration feature here.

Other logs hold more information regarding the problem you are facing.Therefore could you please provide us the verbose logs?

Hi Gabriela
Many thanks for the welcome and for your answer.

I’ve set the logs to verbose and start a clean “Bind to SonarQube”

These are the logs:

12:35:43:672 [ThreadId 1] [SharedBindingConfigProvider] The .sonarlint shared folder was not found
12:37:14:153 [DEBUG] [ThreadId 58] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 200 http://myserver/api/system/status
12:37:14:154 [DEBUG] [ThreadId 58] [SLCore] [sonarlint > SonarLint Server RPC request executor] Downloaded server infos in 195ms
12:37:14:186 [DEBUG] [ThreadId 9] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 200 http://myserver/api/system/status
12:37:14:188 [DEBUG] [ThreadId 9] [SLCore] [sonarlint > SonarLint Server RPC request executor] Downloaded server infos in 33ms
  1. This is triggered immediately after clicking the “Bind to SonarQube” from Visual Studio IDE. As you mention, it might not be related with the connection.
    |12:35:43:672|[ThreadId 1] [SharedBindingConfigProvider] The .sonarlint shared folder was not found|
    |—|—|

  2. This is what happens when setting the token and clicking in “OK”
    |12:37:14:153|[DEBUG] [ThreadId 58] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 200 http://myserver/api/system/status | response time=194ms|
    |12:37:14:154|[DEBUG] [ThreadId 58] [SLCore] [sonarlint > SonarLint Server RPC request executor] Downloaded server infos in 195ms|
    |12:37:14:186|[DEBUG] [ThreadId 9] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 200 http://myserver/api/system/status | response time=33ms|
    |12:37:14:188|[DEBUG] [ThreadId 9] [SLCore] [sonarlint > SonarLint Server RPC request executor] Downloaded server infos in 33ms|

Note: If I click in the link “Generate” for the token I’m redirected to the server correctly.

Please, let me know if I can provide with more information.

@serrot, it might be that the token you use is invalid.

Could you please make sure that the token that you use is valid (i.e. it is not expired or revoked) by generating a new one?

Additionally, could you please make sure to use a “User token” as per documentation?

Thanks for the answer Gabriela,

I have double checked and generated a token from the link “Generate” that brings to the next screen:

According to the screen, the token is a user token.
I’m getting the same issue as before with the same logs.

I’ve also tested with curl ( curl -u TheToken http://TheServer/ ) against the same APIs that are in the logs and get a 200 with the following json:

{
“id”: “CBC7CDD6-AWNsunor6Z3d4GDuoVaG”,
“version”: “8.9.3.48735”,
“status”: “UP”
}

Not sure how to proceed or if I can provide with other logs that might help to continue the investigation.

Thank you for the very detailed answer, @serrot!

The problem is very likely caused by the fact that you are using an outdated version of the SonarQube Server. Could you please update to a newer version (at least >= 9.9.1) and let us know if the problem still occurs?

1 Like

Thanks Gabriela,
We are aiming to update the version, however in order to go to 2025.1.LTA the path according to the page below is 8.9 → 9.9 → 2025.1.LTA

but when I try to download the 9.9 from SonarQube 9.9 LTS - Long Term Support | SonarQube
the link redirects to 2025.1.LTS

Where can the version 9.9 be downloaded to follow the instructions provided in the link: Determining the server upgrade path | SonarQube Server Documentation
Thanks in advance.

@serrot, you can find our older versions (including the 9.9 LTA) here. I hope that helps!

1 Like

Thanks Gabriela for your answer.
We have to prepare the change, I’ll come back once we start.
Thanks for all your help.

1 Like

2 posts were split to a new topic: SonarQube 8.9 → 9.9 Upgrade Questions

After migrating the connection is fixed so I’ve marked the update answer as the solution.

Thank you very much for your help!

1 Like

I am glad to hear that, @serrot! Happy coding! :sonar:

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