Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TRACKER : error TRK0002: Failed to execute command

I got this error while trying to build my project on a buildAgent running as a service, does anyone have a solution for it?

 TRACKER : error TRK0002: Failed to execute command: ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe" @C:\BuildAgent\temp\buildTmp\tmpfde187c5fd8a42299ab4d18e25e0c9fe.rsp". The operation identifier is not valid.

i tried a solution to a similar issue when building the project in command line (using "_IsNativeEnvironment" variable ) but it didn't work for me, also i need the solution to work on my local computer permanently.

like image 202
Daniel Avatar asked Jul 06 '26 20:07

Daniel


1 Answers

This error will happen with multiple tools when launching MSBuild from the command line:

  • CL.exe
  • cvtres.exe
  • Lib.exe
  • link.exe

adding them to the exclusion list of the active antivirus can fix some of the issues, but will not be enough with a modern antivirus.

An alternative is to deactivate Tracker.exe which is a tool that enable incremental builds. As it's not something you generally want on a build server, I found it safe to deactivate.

You can deactivate it by passing this parameter to msbuild: /p:TrackFileAccess=false

like image 144
Matthieu Avatar answered Jul 09 '26 13:07

Matthieu