Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding fails with "SonarQube request failed: Failed to write credentials" #1209

Closed
duncanp-sonar opened this issue Jan 29, 2020 · 1 comment · Fixed by #1544
Closed

Binding fails with "SonarQube request failed: Failed to write credentials" #1209

duncanp-sonar opened this issue Jan 29, 2020 · 1 comment · Fixed by #1544
Assignees
Projects
Milestone

Comments

@duncanp-sonar
Copy link
Contributor

duncanp-sonar commented Jan 29, 2020

Description

See the following two community forum threads: here and here.

Expected behavior

Credentials should be saved successfully and the binding process completed.

Actual behavior

The binding process failed.

Known workarounds

None

Related information

  • SonarLint for VS Version: 4.6.
  • Visual Studio Version: ?
  • Languages in your solution; C#

Notes

We've been unable to repro the issue locally.

The Failed to write credentials error message is thrown by the Microsoft.Alm.Authentication component as the result of a failed Win32 API call. The API is throwing Win32Exception which should have the HRESULT error code. Unfortunately, we aren't logging that part so we're losing the Windows error code.

In the absence of a repro, we could amend the logging to capture the Windows error code to give us a better idea of what the underlying issue might be.

@RogerW-VZC
Copy link

RogerW-VZC commented Mar 12, 2020

Same error, VS2019 16.4.6. Pro

I get one additional line before the "Failed to write credentials" error.
"Ruleset binding: all projects need to be updated reference the generated ruleset."

Every time the binding tries to run, an additional ruleset file is added to every project.

I have just deleted the .sonarlint and .sonarqube folders, etc as recommended https://groups.google.com/forum/#!topic/sonarlint/_hgsvV6WHEU because I needed to switch from a localhost sonarqube to our corporate one.

SonarLint 4.19.0.15817
Windows 10 Pro.
SonarQube Enterprise EditionVersion 7.9.1 (build 27448)

Saving everything. Closing VS, and reopening appears to have corrected it.
I got a message that the profile was "out of date", and after clicking "Update" I seem to be connected.

@rita-gorokhod rita-gorokhod added this to To do in Hardening via automation Jul 21, 2020
@rita-gorokhod rita-gorokhod added this to the Hardening milestone Jul 21, 2020
@rita-gorokhod rita-gorokhod moved this from To do to In progress in Hardening Jul 29, 2020
@rita-gorokhod rita-gorokhod self-assigned this Jul 29, 2020
@rita-gorokhod rita-gorokhod moved this from In progress to Review in progress in Hardening Jul 29, 2020
@rita-gorokhod rita-gorokhod linked a pull request Jul 29, 2020 that will close this issue
@rita-gorokhod rita-gorokhod moved this from Review in progress to Done in Hardening Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Hardening
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants