TFS 2010 - MsBuild stopped working
-
12 April 2012 14:03
Hi,
We have build service configured in TFS 2010 and it was running good for few months and suddenly it stopped working. Server team confirmed that there were no patch or server updates applied to the server.
Running the build creates zip file in some location, for example
_Package_20111115.2\UAT\_PublishedWebsites\ABC.Service.B_Package
Above folder has below files along with .zip file
ABC..Service.B.deploy
ABC.Service.B.deploy-readme
ABC.Service.B.SetParameters
ABC.Service.B.SourceManifest
Now when we run the build the above folders/files doesnt get created and I can see the below in the evertvwr in the build server.
An unhandled win32 exception occurred in MSBuild.exe [3716]. Just-In-Time debugging this exception failed with the following error: Debugger could not be started because no user is logged on.
I appreciate the error message above doesn't give much information but please let me know the information you need and I will get for you
Your help is much appreciated
Thanks
Vijay
- Jenis yang Diubah Karthik_Vijay 12 April 2012 23:39
Semua Balasan
-
13 April 2012 7:11Moderator
Hi Vijay,
Thanks for your post.
As we know that, Team Build(using Build Service account) invoke MSBuild to build solution on build agent machine, please logon build agent machine using Build Service account, then build your solution using MSBuild manually, what’s the result? Please share the detailed build log here.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
-
16 April 2012 7:40Moderator
Hi Vijay,
If misunderstood anything, please describe your question in more detail and we will be able to provide the better responses.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
-
24 April 2012 17:21
Hi John,
Apologies for the delay, actually there were some issues with teh TFS server because of which I was unable to get the build logs.
TFSBuildServiceHost was taking lot of memory, searching through found out we need to update to TFS2010 SP1. At the moment we are running in TFS2010 (30319.01).
Below is the build statement, couldnt find any errors though but the build package is not getting created which was working before as mentioned in the first post.
Run MSBuild for Project
Initial Property Values
AdditionalVCOverrides =
CommandLineArguments = /p:SkipInvalidConfigurations=true /P:CreatePackageOnPublish=True /p:DeployOnBuild=true
Configuration = UAT
GenerateVSPropsFile = True
LogFile =
LogFileDropLocation = \\XXXXXX\DEVBUILD\COL_Package\COL_Package_20120416.1\logs\x86\UAT
MaxProcesses = 1
OutDir = C:\Builds\2\XXX.YYYI.COL\COL_Package\Binaries\x86\UAT
Platform = x86
Project = C:\Builds\2\XXX.YYYI.COL\COL_Package\Sources\XXX.YYYI.COL\23Feb12\Source\Website\XXX.YYYi.CustomerOnline.sln
ResponseFile =
RunCodeAnalysis = AsConfigured
Targets =
TargetsNotLogged = String[] Array
ToolPath =
ToolPlatform = Auto
Verbosity = Diagnostic
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo /noconsolelogger "C:\Builds\2\XXX.YYYI.COL\COL_Package\Sources\XXX.YYYI.COL\23Feb12\Source\Website\XXX.YYYi.CustomerOnline.sln" /m:1 /fl /flp:"logfile=C:\Builds\2\XXX.YYYI.COL\COL_Package\Sources\XXX.YYYI.COL\23Feb12\Source\Website\XXX.YYYi.CustomerOnline.log;encoding=Unicode;verbosity=diagnostic" /p:SkipInvalidConfigurations=true /P:CreatePackageOnPublish=True /p:DeployOnBuild=true /p:OutDir="C:\Builds\2\XXX.YYYI.COL\COL_Package\Binaries\x86\UAT\\" /p:Configuration="UAT" /p:Platform="x86" /p:VCBuildOverride="C:\Builds\2\XXX.YYYI.COL\COL_Package\Sources\XXX.YYYI.COL\23Feb12\Source\Website\XXX.YYYi.CustomerOnline.sln.x86.UAT.vsprops" /dl:WorkflowCentralLogger,"D:\Program Files\Microsoft Team Foundation Server 2010\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Diagnostic;BuildUri=vstfs:///Build/Build/4654;InformationNodeId=1717575;TargetsNotLogged=GetNativeManifest,GetCopyToOutputDirectoryItems,GetTargetPath;TFSUrl=http://localhost:8080/tfs/YYYDefaultCollection;"*WorkflowForwardingLogger,"D:\Program Files\Microsoft Team Foundation Server 2010\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Diagnostic;"
Final Property Values
AdditionalVCOverrides =
CommandLineArguments = /p:SkipInvalidConfigurations=true /P:CreatePackageOnPublish=True /p:DeployOnBuild=true
Configuration = UAT
GenerateVSPropsFile = True
LogFile =
LogFileDropLocation = \\XXXXXX\DEVBUILD\COL_Package\COL_Package_20120416.1\logs\x86\UAT
MaxProcesses = 1
OutDir = C:\Builds\2\XXX.YYYI.COL\COL_Package\Binaries\x86\UAT
Project = C:\Builds\2\XXX.YYYI.COL\COL_Package\Sources\XXX.YYYI.COL\23Feb12\Source\Website\XXX.YYYi.CustomerOnline.sln
ResponseFile =
RunCodeAnalysis = AsConfigured
Targets =
TargetsNotLogged = String[] Array
ToolPath =
ToolPlatform = Auto
Verbosity = Diagnostic -
25 April 2012 3:13Moderator
Hi Vijay,
Thanks for your post.
Have you upgraded your TFS Build Service to TFS 2010 SP1? There still have the same issues on Build Service host?
You can remove this TFS Build Service and reconfigure it for your TFS 2010. Of course, after you reconfigured the TFS Build Service, upgrade it to TFS 2010 SP1.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
-
25 April 2012 8:57
Thanks John,
No I havent upgraded to TFS2010 SP1 yet. I was looking into the posts for upgrade issues due to which I am bit more cautious on doing the upgrade.
Also there are many install / upgrade instructions which is getting confused.
Could you please point me to something which will help me to upgrade from TFS 2010 to SP1?
Thanks again
-
25 April 2012 9:13Moderator
Hi Vijay,
Thanks for your reply.
Download the TFS 2010 SP1, if your TFS 2010 Server and TFS 2010 Build Service not on the same machine, both install it on your TFS 2010 Server machine and TFS 2010 Build Service machine.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
-
26 April 2012 13:52
Thanks John, but i was wondering that this build was working fine for the past one year and suddenly it stopped working.
Is there any possibility to check whether its the problem with MSBUILD or with other workflow etc?
-
27 April 2012 2:05Moderator
Hi Vijay,
Thanks for your reply.
To find the reason, we need to get more helpful information. You can try to restart your Build Service in TFS Admin Console, then check the Events in there.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
-
03 Mei 2012 9:22
Hi John,
I tried restarting the Build service and it restarted ok without any errors in the eventlog. However when we run any build it crashes with the below messge in Eventlog
An unhandled win32 exception occurred in MSBuild.exe [6044]. Just-In-Time debugging this exception failed with the following error: Debugger could not be started because no user is logged on.
Check the documentation index for 'Just-in-time debugging, errors' for more information.
When I tried to execute the from the commandline, the build package files gets created when i run the command in bold however it crashes popping up the Just in time debugger if I run the complete command
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo "C:\Builds\2\PPPShared\xxx.yyyi.Actisure\Sources\Development\PPPShared\xxx.yyyi.Actisure\xxx.yyyi.Actisure.sln" /m:1 /fl /flp:"logfile=C:\Builds\2\PPPShared\xxx.yyyi.Actisure\Sources\Development\PPPShared\xxx.yyyi.Actisure\xxx.yyyi.Actisure.log;encoding=Unicode;verbosity=normal" /p:SkipInvalidConfigurations=true /p:OutDir="C:\Builds\2\PPPShared\xxx.yyyi.Actisure\Binaries\\" /p:Configuration="Debug" /p:Platform="Any CPU" /p:VCBuildOverride="C:\Builds\2\PPPShared\xxx.yyyi.Actisure\Sources\Development\PPPShared\xxx.yyyi.Actisure\xxx.yyyi.Actisure.sln.Any CPU.Debug.vsprops" /dl:WorkflowCentralLogger,"D:\Program Files\Microsoft Team Foundation Server 2010\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Normal;BuildUri=vstfs:///Build/Build/5178;InformationNodeId=1766186;TargetsNotLogged=GetNativeManifest,GetCopyToOutputDirectoryItems,GetTargetPath;TFSUrl=http://localhost:8080/tfs/PPPDefaultCollection;"*WorkflowForwardingLogger,"D:\Program Files\Microsoft Team Foundation Server 2010\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Normal;"
-
14 Mei 2012 11:06
Hi John,
Did you get any chance to look into this?
Thanks
Vijay
-
15 Mei 2012 2:25Moderator
Hi Vijay,
Thanks for your reply.
Have you upgraded your TFS 2010 to TFS 2010 SP1?
To build a simplest project(like Console Application) using Team Build, the MSBuild(in Team Building) build the project correctly?
John Qiao [MSFT]
MSDN Community Support | Feedback to us