SonarCloudPrepare@1 task returning 403 in Azure DevOps (3762504530)

Hello,

This is pretty much a duplication of this ticket here.

Our scan suddenly started failing as the other users did. However, there has been a change recently, the ownership of our DevOps and
SonarCloud accounts has been transferred to another organisation which meant our email addresses changed and all the old administrator privileges were transferred over to the new email addresses (same people IRL).

I’ve double checked my account has the right Permission on DevOps (I presume Visual Studio Professional is good enough). I’ve recreated the PAT on Azure and used it to set the Organisation’s PAT on SonarCloud. In desperation I’ve also set the Project PAT but still get the same stack trace:

Starting: SonarCloudPrepare
==============================================================================
Task         : Prepare Analysis Configuration
Description  : Prepare SonarCloud analysis configuration
Version      : 1.40.2
Author       : sonarsource
Help         : Version: 1.40.2. [More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/)
==============================================================================
D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.40.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe begin /k:ddt-team_ddt-rt5 /o:ddt-team
SonarScanner for MSBuild 5.14
Using the .NET Framework version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
16:10:49.31  Updating build integration targets...
16:10:49.521  Fetching analysis configuration settings...

##[error]Unhandled Exception:
##[error]System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 ().
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.<TryDownloadIfExists>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

... paste truncated...

--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.Program.<Main>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.Program.<Main>(String[] args)
##[error]The process 'D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.40.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 3762504530
Finishing: SonarCloudPrepare

Any ideas?

Thanks

Hi,

Welcome to the community!

Does this imply that your organization name/identity changed? Because unfortunately, it’s currently not possible to unbind an organization and bind it to something else. You can vote for adding this feature here.

The only way to have your organization bound to a different DevOps Platform currently is to create a new organization and re-import your repositories there. Unfortunately, that means you’ll lose the results of previous analyses on these projects.

If you have a yearly subscription for your current organization, a new coupon can be issued for your new organization by reaching out to your sale representative.
If you have a monthly subscription by credit card, you can simply stop your subscription on the old organization and re-subscribe on the new one.

Sorry for the inconvenience.

 
Ann