Build hanging when run from TeamCity, but not from elsewhere

Hi,

As part of a build, we use PsExec to run subinacl on a remote server.  I can run this build (it's Nant) from my machine, and I can log into the agent machine and run it from the build agent work directory (as the correct user, of course).  But when I try to run it as a TeamCity build, it hangs when trying to run PsExec.  When using TeamCity 6.0, it would actually fail saying that the file could not be copied over, but now that we've upgraded to 6.5 it hangs, seemingly waiting forever.  Does anyone know what might be causing this difference in behaviour between the TeamCity interface and running it directly on the agent?  The agents all run as the same user, and this user has the correct permissions on the target server.

4 comments
Comment actions Permalink

Probably should have looked around a bit more, I see this is somewhat common.  Has anyone found a solution yet?

0
Comment actions Permalink

PsExec shows license screen on first run. Try to run PsExec from TeamCity account manualy.

0
Comment actions Permalink

Thanks for the reply, but that isn't the problem.

It looks like we've solved it by hacking around it and adding a timeout.  Ugly, but it'll do.

0
Comment actions Permalink

A timeout? Could you show us an example please.

0

Please sign in to leave a comment.