C:\Users\USER\source\repos\testSonar>dotnet sonarscanner begin /k:"test" /d:sonar.host.url="http://localhost:9000" /d:sonar.token="sqp_e27695f83c4b3a94910abc318db505903decad09"
SonarScanner for MSBuild 10.1.1
Using the .NET Core version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
18:58:34.909 Updating build integration targets...
18:58:35.034 Using SonarQube v25.4.0.105899.
18:58:35.132 Fetching analysis configuration settings...
18:58:35.781 Provisioning analyzer assemblies for cs...
18:58:35.782 Installing required Roslyn analyzers...
18:58:35.783 Processing plugin: csharp version 10.7.0.110445
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at SonarScanner.MSBuild.PreProcessor.Roslyn.SubdirIndex.GetOrCreatePath(String key)
at SonarScanner.MSBuild.PreProcessor.Roslyn.PluginResourceCache.GetResourceSpecificDir(Plugin plugin)
at SonarScanner.MSBuild.PreProcessor.Roslyn.EmbeddedAnalyzerInstaller.GetPluginResourceFiles(Plugin plugin)
at SonarScanner.MSBuild.PreProcessor.Roslyn.EmbeddedAnalyzerInstaller.InstallAssemblies(IEnumerable`1 plugins)
at SonarScanner.MSBuild.PreProcessor.Roslyn.RoslynAnalyzerProvider.FetchAnalyzerPlugins()
at SonarScanner.MSBuild.PreProcessor.Roslyn.RoslynAnalyzerProvider.SetupAnalyzer()
at SonarScanner.MSBuild.PreProcessor.PreProcessor.FetchArgumentsAndRuleSets(ISonarWebServer server, ProcessedArgs args, BuildSettings settings)
at SonarScanner.MSBuild.PreProcessor.PreProcessor.DoExecute(ProcessedArgs localSettings)
at SonarScanner.MSBuild.PreProcessor.PreProcessor.Execute(IEnumerable`1 args)
at SonarScanner.MSBuild.BootstrapperClass.PreProcess()
at SonarScanner.MSBuild.BootstrapperClass.Execute()
at SonarScanner.MSBuild.Program.Execute(String[] args, ILogger logger)
at SonarScanner.MSBuild.Program.Execute(String[] args)
at SonarScanner.MSBuild.Program.Main(String[] args)
at SonarScanner.MSBuild.Program.<Main>(String[] args)
i downloaded the plugin itself and replace it in the plugin folder the sonar not working.
Hi,
Could you add /d:sonar.verbose=true
to your command line and provide us the full, verbose log, starting from the command itself, please?
Also
Don’t do that.
Please restore your instance to its original state.
Ann
10:24:22.634 Local analyzer cache: C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources
10:24:22.634 Writing Roslyn generated ruleset to D:\a\1\.sonarqube\conf\Sonar-cs.ruleset...
10:24:22.65 Writing Roslyn generated ruleset to D:\a\1\.sonarqube\conf\Sonar-cs-none.ruleset...
10:24:22.665 Provisioning analyzer assemblies for cs...
10:24:22.665 Installing required Roslyn analyzers...
10:24:22.665 Processing plugin: csharp version 10.7.0.110445
10:24:22.665 Cache miss: plugin files were not found in the local cache
10:24:22.665 Fetching resource for plugin: csharp, version 10.7.0.110445. Resource: SonarAnalyzer-csharp-10.7.0.110445.zip
10:24:22.681 Downloading SonarAnalyzer-csharp-10.7.0.110445.zip to C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\0
10:24:22.681 Downloading file to C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\0\SonarAnalyzer-csharp-10.7.0.110445.zip...
10:24:22.681 Downloading from https://domain/static/csharp/SonarAnalyzer-csharp-10.7.0.110445.zip...
10:24:22.806 Response received from https://domain/static/csharp/SonarAnalyzer-csharp-10.7.0.110445.zip...
##[error]Unhandled Exception:
##[error]System.IO.FileNotFoundException: Plugin resource not found: csharp, version 10.7.0.110445. Resource: SonarAnalyzer-csharp-10.7.0.110445.zip.
I get a similar issue currently with the same version
Hi @Harun_Jasarevic,
Welcome to the community!
Can I please have a full /d:sonar.verbose=true
log starting from the begin
command?
Thx,
Ann
2025-04-16T10:23:38.6664680Z ##[section]Starting: SonarQubePrepare
2025-04-16T10:23:38.6671512Z ==============================================================================
2025-04-16T10:23:38.6671667Z Task : Prepare Analysis Configuration
2025-04-16T10:23:38.6671781Z Description : Prepare SonarQube Server analysis configuration
2025-04-16T10:23:38.6671905Z Version : 7.2.0
2025-04-16T10:23:38.6672000Z Author : sonarsource
2025-04-16T10:23:38.6672086Z Help : [More Information](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scanners/sonarqube-extension-for-azure-devops/)
2025-04-16T10:23:38.6672293Z ==============================================================================
2025-04-16T10:23:40.8325837Z [INFO] SonarQube Server: Server version: 25.4.0.105899
2025-04-16T10:23:41.1475047Z [INFO] SonarQube Server: Default branch of this repository is 'refs/heads/master'
2025-04-16T10:23:41.1630183Z [command]D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.2.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe begin /k:CyberManagerSonar
2025-04-16T10:23:41.3107779Z SonarScanner for MSBuild 10.1.1
2025-04-16T10:23:41.3108585Z Using the .NET Framework version of the Scanner for MSBuild
2025-04-16T10:23:41.3722111Z Pre-processing started.
2025-04-16T10:23:41.3765328Z Preparing working directories...
2025-04-16T10:23:42.5832758Z 10:23:42.464 Loading analysis properties from D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.2.0\classic-sonar-scanner-msbuild\SonarQube.Analysis.xml
2025-04-16T10:23:42.5833668Z 10:23:42.558 Server Url: https://sonar.cybermanager.nl
2025-04-16T10:23:42.5834199Z 10:23:42.558 Api Url: https://sonar.cybermanager.nl/api/v2
2025-04-16T10:23:42.5834663Z 10:23:42.558 Is SonarCloud: False
2025-04-16T10:23:42.5837998Z 10:23:42.558 No truststore provided; attempting to use the default location.
2025-04-16T10:23:42.5842830Z 10:23:42.558 No truststore found at the default location; proceeding without a truststore.
2025-04-16T10:23:42.5854595Z 10:23:42.574 sonar.verbose=true was specified - setting the log verbosity to 'Debug'
2025-04-16T10:23:42.5868242Z 10:23:42.574 Updating build integration targets...
2025-04-16T10:23:42.5933355Z 10:23:42.589 Installed SonarQube.Integration.ImportBefore.targets to C:\Users\VssAdministrator\AppData\Local\Microsoft\MSBuild\4.0\Microsoft.Common.targets\ImportBefore
2025-04-16T10:23:42.5944944Z 10:23:42.589 Installed SonarQube.Integration.ImportBefore.targets to C:\Users\VssAdministrator\AppData\Local\Microsoft\MSBuild\10.0\Microsoft.Common.targets\ImportBefore
2025-04-16T10:23:42.5959172Z 10:23:42.589 Installed SonarQube.Integration.ImportBefore.targets to C:\Users\VssAdministrator\AppData\Local\Microsoft\MSBuild\11.0\Microsoft.Common.targets\ImportBefore
2025-04-16T10:23:42.5970714Z 10:23:42.589 Installed SonarQube.Integration.ImportBefore.targets to C:\Users\VssAdministrator\AppData\Local\Microsoft\MSBuild\12.0\Microsoft.Common.targets\ImportBefore
2025-04-16T10:23:42.5985462Z 10:23:42.589 Installed SonarQube.Integration.ImportBefore.targets to C:\Users\VssAdministrator\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore
2025-04-16T10:23:42.5989710Z 10:23:42.589 Installed SonarQube.Integration.ImportBefore.targets to C:\Users\VssAdministrator\AppData\Local\Microsoft\MSBuild\15.0\Microsoft.Common.targets\ImportBefore
2025-04-16T10:23:42.5999414Z 10:23:42.589 Installed SonarQube.Integration.ImportBefore.targets to C:\Users\VssAdministrator\AppData\Local\Microsoft\MSBuild\Current\Microsoft.Common.targets\ImportBefore
2025-04-16T10:23:42.6009158Z 10:23:42.589 Installed SonarQube.Integration.targets to D:\a\1\.sonarqube\bin\targets
2025-04-16T10:23:42.6022404Z 10:23:42.589 Creating config and output folders...
2025-04-16T10:23:42.6035846Z 10:23:42.589 Creating directory: D:\a\1\.sonarqube\conf
2025-04-16T10:23:42.6037642Z 10:23:42.589 Creating directory: D:\a\1\.sonarqube\out
2025-04-16T10:23:42.6675167Z 10:23:42.652 Downloading from https://sonar.cybermanager.nl/api/settings/values?component=unknown...
2025-04-16T10:23:42.9573543Z 10:23:42.949 Response received from https://sonar.cybermanager.nl/api/settings/values?component=unknown...
2025-04-16T10:23:42.9595690Z 10:23:42.949 Fetching server version...
2025-04-16T10:23:42.9647488Z 10:23:42.949 Downloading from https://sonar.cybermanager.nl/api/v2/analysis/version...
2025-04-16T10:23:43.0558678Z 10:23:43.043 Response received from https://sonar.cybermanager.nl/api/v2/analysis/version...
2025-04-16T10:23:43.0787346Z 10:23:43.074 Using SonarQube v25.4.0.105899.
2025-04-16T10:23:43.0792746Z 10:23:43.074 Checking if the server version is supported...
2025-04-16T10:23:43.0838249Z 10:23:43.074 Checking validity of server license...
2025-04-16T10:23:43.0839057Z 10:23:43.074 Downloading from https://sonar.cybermanager.nl/api/editions/is_valid_license...
2025-04-16T10:23:43.1134241Z 10:23:43.105 Response received from https://sonar.cybermanager.nl/api/editions/is_valid_license...
2025-04-16T10:23:43.1633074Z 10:23:43.155 SonarQube Community Edition detected, license is valid.
2025-04-16T10:23:43.1667212Z 10:23:43.155 JreResolver: Resolving JRE path.
2025-04-16T10:23:43.1746287Z 10:23:43.171 Downloading from https://sonar.cybermanager.nl/api/v2/analysis/jres?os=windows&arch=x64...
2025-04-16T10:23:43.2074765Z 10:23:43.202 Response received from https://sonar.cybermanager.nl/api/v2/analysis/jres?os=windows&arch=x64...
2025-04-16T10:23:43.3940565Z 10:23:43.39 JreResolver: Cache miss. Attempting to download JRE.
2025-04-16T10:23:43.4055468Z 10:23:43.39 Starting the Java Runtime Environment download.
2025-04-16T10:23:43.4066649Z 10:23:43.405 The JRE provisioning is a time consuming operation.
2025-04-16T10:23:43.4067588Z JRE provisioned: OpenJDK17U-jre_x64_windows_hotspot_17.0.13_11.zip.
2025-04-16T10:23:43.4084296Z If you already have a compatible java version installed, please add either the parameter "/d:sonar.scanner.skipJreProvisioning=true" or "/d:sonar.scanner.javaExePath=<PATH>".
2025-04-16T10:23:43.4085312Z 10:23:43.405 Downloading Java JRE from analysis/jres/c5fceadc-0f9d-4d05-995e-ef3d3a1f8467.
2025-04-16T10:23:43.4104690Z 10:23:43.405 Downloading from https://sonar.cybermanager.nl/api/v2/analysis/jres/c5fceadc-0f9d-4d05-995e-ef3d3a1f8467...
2025-04-16T10:23:48.9937202Z 10:23:48.986 Response received from https://sonar.cybermanager.nl/api/v2/analysis/jres/c5fceadc-0f9d-4d05-995e-ef3d3a1f8467...
2025-04-16T10:23:49.4308014Z 10:23:49.425 The checksum of the downloaded file is '11a61a94d383e755b08b4e5890a13d148bc9f95b7149cbbeec62efb8c75a4a67' and the expected checksum is '11a61a94d383e755b08b4e5890a13d148bc9f95b7149cbbeec62efb8c75a4a67'.
2025-04-16T10:23:49.4336018Z 10:23:49.425 Starting extracting the Java runtime environment from archive 'C:\Users\VssAdministrator\.sonar\cache\11a61a94d383e755b08b4e5890a13d148bc9f95b7149cbbeec62efb8c75a4a67\OpenJDK17U-jre_x64_windows_hotspot_17.0.13_11.zip' to folder 'C:\Users\VssAdministrator\.sonar\cache\11a61a94d383e755b08b4e5890a13d148bc9f95b7149cbbeec62efb8c75a4a67\wlv35bnc.z1e'.
2025-04-16T10:23:51.7220684Z 10:23:51.708 Moving extracted Java runtime environment from 'C:\Users\VssAdministrator\.sonar\cache\11a61a94d383e755b08b4e5890a13d148bc9f95b7149cbbeec62efb8c75a4a67\wlv35bnc.z1e' to 'C:\Users\VssAdministrator\.sonar\cache\11a61a94d383e755b08b4e5890a13d148bc9f95b7149cbbeec62efb8c75a4a67\OpenJDK17U-jre_x64_windows_hotspot_17.0.13_11.zip_extracted'.
2025-04-16T10:23:51.7236808Z 10:23:51.708 The Java runtime environment was successfully added to 'C:\Users\VssAdministrator\.sonar\cache\11a61a94d383e755b08b4e5890a13d148bc9f95b7149cbbeec62efb8c75a4a67\OpenJDK17U-jre_x64_windows_hotspot_17.0.13_11.zip_extracted'.
2025-04-16T10:23:51.7237774Z 10:23:51.708 JreResolver: Download success. JRE can be found at 'C:\Users\VssAdministrator\.sonar\cache\11a61a94d383e755b08b4e5890a13d148bc9f95b7149cbbeec62efb8c75a4a67\OpenJDK17U-jre_x64_windows_hotspot_17.0.13_11.zip_extracted\jdk-17.0.13+11-jre/bin/java.exe'.
2025-04-16T10:23:51.7316586Z 10:23:51.724 Fetching analysis configuration settings...
2025-04-16T10:23:51.7376936Z 10:23:51.724 Fetching properties for project 'CyberManagerSonar'...
2025-04-16T10:23:51.7405851Z 10:23:51.724 Downloading from https://sonar.cybermanager.nl/api/settings/values?component=CyberManagerSonar...
2025-04-16T10:23:51.9373224Z 10:23:51.927 Response received from https://sonar.cybermanager.nl/api/settings/values?component=CyberManagerSonar...
2025-04-16T10:23:51.9446192Z 10:23:51.942 Downloading from https://sonar.cybermanager.nl/api/languages/list...
2025-04-16T10:23:51.9853674Z 10:23:51.974 Response received from https://sonar.cybermanager.nl/api/languages/list...
2025-04-16T10:23:51.9899092Z 10:23:51.974 Fetching quality profile for project 'CyberManagerSonar'...
2025-04-16T10:23:51.9900192Z 10:23:51.974 Downloading from https://sonar.cybermanager.nl/api/qualityprofiles/search?project=CyberManagerSonar...
2025-04-16T10:23:53.3339792Z 10:23:53.317 Response received from https://sonar.cybermanager.nl/api/qualityprofiles/search?project=CyberManagerSonar...
2025-04-16T10:23:53.3409003Z 10:23:53.333 Fetching rules for quality profile 'cb405648-2b2a-499b-ad69-b4bcb9ef7c36'...
2025-04-16T10:23:53.3410870Z 10:23:53.333 Downloading from https://sonar.cybermanager.nl/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params,actives&ps=500&qprofile=cb405648-2b2a-499b-ad69-b4bcb9ef7c36&p=1...
2025-04-16T10:24:22.6195798Z 10:24:22.603 Response received from https://sonar.cybermanager.nl/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params,actives&ps=500&qprofile=cb405648-2b2a-499b-ad69-b4bcb9ef7c36&p=1...
2025-04-16T10:24:22.6368180Z 10:24:22.634 Local analyzer cache: C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources
2025-04-16T10:24:22.6445046Z 10:24:22.634 Writing Roslyn generated ruleset to D:\a\1\.sonarqube\conf\Sonar-cs.ruleset...
2025-04-16T10:24:22.6638443Z 10:24:22.65 Writing Roslyn generated ruleset to D:\a\1\.sonarqube\conf\Sonar-cs-none.ruleset...
2025-04-16T10:24:22.6709115Z 10:24:22.665 Provisioning analyzer assemblies for cs...
2025-04-16T10:24:22.6720224Z 10:24:22.665 Installing required Roslyn analyzers...
2025-04-16T10:24:22.6727353Z 10:24:22.665 Processing plugin: csharp version 10.7.0.110445
2025-04-16T10:24:22.6804795Z 10:24:22.665 Cache miss: plugin files were not found in the local cache
2025-04-16T10:24:22.6813573Z 10:24:22.665 Fetching resource for plugin: csharp, version 10.7.0.110445. Resource: SonarAnalyzer-csharp-10.7.0.110445.zip
2025-04-16T10:24:22.6837266Z 10:24:22.681 Downloading SonarAnalyzer-csharp-10.7.0.110445.zip to C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\0
2025-04-16T10:24:22.6869644Z 10:24:22.681 Downloading file to C:\Users\VssAdministrator\AppData\Local\Temp\.sonarqube\resources\0\SonarAnalyzer-csharp-10.7.0.110445.zip...
2025-04-16T10:24:22.6870575Z 10:24:22.681 Downloading from https://sonar.cybermanager.nl/static/csharp/SonarAnalyzer-csharp-10.7.0.110445.zip...
2025-04-16T10:24:22.8109691Z 10:24:22.806 Response received from https://sonar.cybermanager.nl/static/csharp/SonarAnalyzer-csharp-10.7.0.110445.zip...
2025-04-16T10:24:22.9263556Z
2025-04-16T10:24:22.9299139Z ##[error]Unhandled Exception:
2025-04-16T10:24:22.9325617Z ##[error]System.IO.FileNotFoundException: Plugin resource not found: csharp, version 10.7.0.110445. Resource: SonarAnalyzer-csharp-10.7.0.110445.zip.
at SonarScanner.MSBuild.PreProcessor.Roslyn.EmbeddedAnalyzerInstaller.FetchResourceFromServer(Plugin plugin, String targetDir)
at SonarScanner.MSBuild.PreProcessor.Roslyn.EmbeddedAnalyzerInstaller.GetPluginResourceFiles(Plugin plugin)
at SonarScanner.MSBuild.PreProcessor.Roslyn.EmbeddedAnalyzerInstaller.InstallAssemblies(IEnumerable`1 plugins)
at SonarScanner.MSBuild.PreProcessor.Roslyn.RoslynAnalyzerProvider.SetupAnalyzer()
at SonarScanner.MSBuild.PreProcessor.PreProcessor.<FetchArgumentsAndRuleSets>d__9.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.PreProcessor.PreProcessor.<DoExecute>d__7.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.PreProcessor.PreProcessor.<Execute>d__6.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.BootstrapperClass.<PreProcess>d__9.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.BootstrapperClass.<Execute>d__8.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.<Execute>d__4.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.<Execute>d__3.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>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)
2025-04-16T10:24:22.9345875Z System.IO.FileNotFoundException: Plugin resource not found: csharp, version 10.7.0.110445. Resource: SonarAnalyzer-csharp-10.7.0.110445.zip.
2025-04-16T10:24:22.9488446Z at SonarScanner.MSBuild.PreProcessor.Roslyn.EmbeddedAnalyzerInstaller.FetchResourceFromServer(Plugin plugin, String targetDir)
2025-04-16T10:24:22.9583621Z at SonarScanner.MSBuild.PreProcessor.Roslyn.EmbeddedAnalyzerInstaller.GetPluginResourceFiles(Plugin plugin)
2025-04-16T10:24:22.9651027Z at SonarScanner.MSBuild.PreProcessor.Roslyn.EmbeddedAnalyzerInstaller.InstallAssemblies(IEnumerable`1 plugins)
2025-04-16T10:24:22.9671782Z at SonarScanner.MSBuild.PreProcessor.Roslyn.RoslynAnalyzerProvider.SetupAnalyzer()
2025-04-16T10:24:22.9674511Z at SonarScanner.MSBuild.PreProcessor.PreProcessor.<FetchArgumentsAndRuleSets>d__9.MoveNext()
2025-04-16T10:24:22.9674987Z --- End of stack trace from previous location where exception was thrown ---
2025-04-16T10:24:22.9675485Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-04-16T10:24:22.9675908Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-04-16T10:24:22.9676356Z at SonarScanner.MSBuild.PreProcessor.PreProcessor.<DoExecute>d__7.MoveNext()
2025-04-16T10:24:22.9678024Z --- End of stack trace from previous location where exception was thrown ---
2025-04-16T10:24:22.9678632Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-04-16T10:24:22.9681277Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-04-16T10:24:22.9686610Z at SonarScanner.MSBuild.PreProcessor.PreProcessor.<Execute>d__6.MoveNext()
2025-04-16T10:24:22.9687128Z --- End of stack trace from previous location where exception was thrown ---
2025-04-16T10:24:22.9687550Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-04-16T10:24:22.9688000Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-04-16T10:24:22.9688448Z at SonarScanner.MSBuild.BootstrapperClass.<PreProcess>d__9.MoveNext()
2025-04-16T10:24:22.9688862Z --- End of stack trace from previous location where exception was thrown ---
2025-04-16T10:24:22.9689273Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-04-16T10:24:22.9689722Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-04-16T10:24:22.9690157Z at SonarScanner.MSBuild.BootstrapperClass.<Execute>d__8.MoveNext()
2025-04-16T10:24:22.9690585Z --- End of stack trace from previous location where exception was thrown ---
2025-04-16T10:24:22.9691002Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-04-16T10:24:22.9691439Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-04-16T10:24:22.9691931Z at SonarScanner.MSBuild.Program.<Execute>d__4.MoveNext()
2025-04-16T10:24:22.9692324Z --- End of stack trace from previous location where exception was thrown ---
2025-04-16T10:24:22.9692722Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-04-16T10:24:22.9693143Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-04-16T10:24:22.9693564Z at SonarScanner.MSBuild.Program.<Execute>d__3.MoveNext()
2025-04-16T10:24:22.9693959Z --- End of stack trace from previous location where exception was thrown ---
2025-04-16T10:24:22.9694376Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-04-16T10:24:22.9695007Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-04-16T10:24:22.9695430Z at SonarScanner.MSBuild.Program.<Main>d__2.MoveNext()
2025-04-16T10:24:22.9695816Z --- End of stack trace from previous location where exception was thrown ---
2025-04-16T10:24:22.9696240Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-04-16T10:24:22.9696747Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-04-16T10:24:22.9698870Z
2025-04-16T10:24:22.9700111Z ##[error][ERROR] SonarQube Server: Error while executing task Prepare: The process 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.2.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 3762504530
2025-04-16T10:24:22.9701702Z ##[error]The process 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.2.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 3762504530
2025-04-16T10:24:22.9739836Z ##[section]
Finishing: SonarQubePrepare
Sorry, thought that was enough
This is from an Azure pipeline, with verbose logging turned on
Thank you for the warm welcome !
Just started preparing our SonarQube setup
Hi,
Thanks for the log! I’ll flag this for more expert eyes.
Ann
I see that there was a similar issue that was not resolved, it might be of help to anyone looking into this.
Our build agent has internet access.
Let me know if more information is needed please.
Hello Ann,
Just to let you know that I found the cause of this issue.
I had a rewrite rule with my setup of the reverse proxy that excluded the “static” folder from getting redirected to the SonarQube instance, must have picked it up when I copied the reverse proxy web.config.
I have now disabled that rule and the pipeline passes and the analysis gets done.
Thank you very much,
Kind regards,
Hi,
Thanks for the update! I’m glad you worked through this.
Ann