Hang on web app start / stop when running rebuild agent

We are having random failures with our rebuilds but it always fails in the same place in the script.  I'll paste some examples below and if someone could give me some input that would be great.

[14:30:37]: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe v4.0 x64 NUnit-2.5.3
[14:30:37]: StopSite:
[14:30:37]: C:\Scripts\Psexec.exe \\DEVEMRWEB06 C:\Windows\System32\inetsrv\appcmd stop apppool /apppool.name:EMR.UIServices >nul
[14:30:37]:
[14:30:37]: PsExec v1.98 - Execute processes remotely
[14:30:37]: Copyright (C) 2001-2010 Mark Russinovich
[14:30:37]: Sysinternals - www.sysinternals.com
[14:30:37]:
[14:30:37]: Build cancelled

[14:20:34]: (StopSite target) ->
[14:20:34]: C:\TeamCity\buildAgent\work\f31a67f7ac812793\Scripts\MSBuild.proj(56,5): error MSB3073: The command "C:\Scripts\Psexec.exe \\DEVEMRWEB05 C:\Windows\System32\inetsrv\appcmd stop apppool /apppool.name:EMR.Services >nul" exited with code 1062. [C:\TeamCity\buildAgent\work\f31a67f7ac812793\Scripts\MSBuild.proj.teamcity.patch.tcprojx]
[14:20:34]: 67 Warning(s)
[14:20:34]: 1 Error(s)
[14:20:34]: Time Elapsed 00:01:17.78
[14:20:34]: Build finished


Build errors

[14:19:16]: Project "MSBuild.proj.teamcity.patch.tcprojx" (Build;Test;StopSite;Deploy;StartSite target(s)): (1m:17s)
[14:20:34]: [Project "MSBuild.proj.teamcity.patch.tcprojx" (Build;Test;StopSite;Deploy;StartSite target(s)):] C:\TeamCity\buildAgent\work\f31a67f7ac812793\Scripts\MSBuild.proj(56, 5): error MSB3073: The command "C:\Scripts\Psexec.exe \\DEVEMRWEB05 C:\Windows\System32\inetsrv\appcmd stop apppool /apppool.name:EMR.Services >nul" exited with code 1062.


Please sign in to leave a comment.