System.IO.InvalidDataException: End of Central Directory record could not be found

We had recently update to SonarQube *Enterprise Edition

  • v10.8.1 (101195)

We have pipelines created in Azure to scan the .net projects
During the Prepare analysis on SonarQube Server step on pipeline its failing with the below error


   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)
##[debug]Process exited with code 3762504530 and signal null for tool 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.1.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe'
##[debug]STDIO streams have closed and received exit code 3762504530 and signal null for tool 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.1.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe'
##[error][ERROR] SonarQube Server: Error while executing task Prepare: The process 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.1.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 3762504530
##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;][ERROR] SonarQube Server: Error while executing task Prepare: The process 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.1.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 3762504530
##[debug]task result: Failed
##[error]The process 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.1.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 3762504530
##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;]The process 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.1.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 3762504530
##[debug]Processed: ##vso[task.complete result=Failed;]The process 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.1.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 3762504530

Is that the plugin that is trying to use Processing plugin: csharpenterprise version 10.3.0.106239 corrupted or its not available?

Is some steps ?

Thanks and Regards,
Avinash

Since you’ve mentioned this plugin, I’m guessing there’s something missing from the beginning of the logs you shared. Can you share the full log output?

Hi,

Attached the full log file.

Thanks and Regards,
Avinash
Sonar_prepare.txt (27.8 KB)