# Get from Team Foundation - tf.exe getting stuck

**URL:** https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120
**Category:** Discussion
**Created:** [June 29, 2006, 8:40am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120 "2006-06-29T08:40:34Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [June 29, 2006, 8:40am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/1 "2006-06-29T08:40:34Z")

</div>

I’m experimenting with setting up an FB project to build my product. Overall, things are going fine, but I’m having occasional problems with the Team Foundation Get action getting stuck - tf.exe is running, but using no CPU time and doing no I/O. It’s as if tf.exe is trying to read from the console or something like that.  
  
Has anyone seen this sort of behavior? Any ideas how to eliminate it?

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [June 30, 2006, 2:02am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/2 "2006-06-30T02:02:17Z")

</div>

Hi Carl,  
  
Sorry to hear you’re having problems. It’s quite possible that tf.exe is pausing for input, although I don’t know what it could be asking. I have some ideas, though:  
  
- Is it possible TF is sometimes asking for credentials? If you specify explicit credentials as part of the action, does the problem go away (I don’t know why a problem like this would be intermittent, but it could be…)?  
  
- If you press the red Terminate button, do you get any further output from the action? Sometimes a prompt for information does not get flushed to the FB log until the action is terminated.  
  
- The action logs the command line (sans password) that it uses to run tf.exe. If you run the same command line from a command prompt (in the correct working directory), do you see a prompt for input?  
  
… if all that fails, could you please post the log output from the stalled action?  
  
Thanks.

---

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [June 30, 2006, 2:12am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/3 "2006-06-30T02:12:34Z")

</div>

I have a theory that this is related to the “Live Log View” option on the build summary page. I’d had it both checked and unchecked for various runs, but when I unchecked it, closed FB4 and then re-opened it, I haven’t seen the “stuck” problem again.  
  
To answer your question though -  
  
No, tf is using the credentials of the logged in user and doesn’t prompt.  
  
If I press the Terminate button, I get one line of additional output - Action Failed!  
  
I can run the same command line from a command prompt without indicdent. tf.exe doesn’t prompt for input or otherwise pause.  
  
I’ll keep an eye on it over the next few days - if I notice anything that looks relevant, I’ll let you know.

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [June 30, 2006, 2:25am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/4 "2006-06-30T02:25:24Z")

</div>

Hi Carl,  
  
Thanks for the quick response. Sorry that none of those suggestions helped out.  
  
The action itself doesn’t know anything about the setting of the “Live Log View” option, so it’s extremely unlikely that it would change runtime behaviour.  
  
Please let us know if you come up with any steps to reproduce it. Is it possible that something on either the TF server, or the connection to the TF server, is disrupting the connection?

---

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [June 30, 2006, 4:03am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/5 "2006-06-30T04:03:49Z")

</div>

I don't think there's anything related to the server or the connection. While tf.exe is stuck, I'm still able to interact with TFS through Visual Studio on the same client machine.  
  
I've aksed over on the TFS forums if anyone's seen anything like this before as well. If I haven't done anything that should have fixed it - most likely it'll come back. They always do!  
  
If I learn more, I'll be back :)

---

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [June 30, 2006, 4:08am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/6 "2006-06-30T04:08:03Z")

</div>

By the way - does the TFS Get action include /noprompt in the command-line options? I’m not at the machine where FB4 is installed at the moment, so I can’t readily check.

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [June 30, 2006, 4:50am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/7 "2006-06-30T04:50:26Z")

</div>

It definitely should be. That’s not to say thay tf.exe always honours that flag, though.

---

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [June 30, 2006, 7:12am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/8 "2006-06-30T07:12:51Z")

</div>

Another idea from the MSFT guys:

 are you redirecting any of the standard  
streams? In particular, tf.exe will block trying to read from stdin if  
the stream isn’t closed
  
  
That would seem to fit the symptoms, but it’s not clear why it would work sometimes and not others.

---

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [July 1, 2006, 4:58am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/9 "2006-07-01T04:58:26Z")

</div>

Based on additional feedback from the team system folks, it sounds like this might well have to do with running tf.exe with stdin redirected. Does the FB action redirect stdin? If so, when does it close the stream?

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [July 3, 2006, 8:16am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/10 "2006-07-03T08:16:47Z")

</div>

Hi Carl,  
  
It is possible that tf.exe is blocking on stdin if it is attempting to read data (although it should not be, given the /noprompt option.) I’ve made some changes to ensure the stdin handle is always closed (I’ll post a test build URL when it’s available.)

---

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [July 3, 2006, 3:29am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/11 "2006-07-03T03:29:19Z")

</div>

OK, Thanks!

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [July 4, 2006, 1:51am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/12 "2006-07-04T01:51:22Z")

</div>

Test build now available:  
  
[https://www.finalbuilder.com/downloads/finalbuilder/410/FB410\_251.exe](https://www.finalbuilder.com/downloads/finalbuilder/410/FB410_251.exe)  
  
(Please note that there have been some changes to FTP in this build to allow large file (\>2Gb) upload support. The changes have been thoroughly tested, but the test build still comes with a warning to take care for FTP actions, at least for now.)

---

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [July 6, 2006, 7:00am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/13 "2006-07-06T07:00:45Z")

</div>

Thanks! I’ll give that version a try if my current investigation doesn’t pan out. Since I last posted, we’ve encountered other issues that suggest that this is really a network issue and doesn’t have anything per-se to do with FB or TFS. I’ve made some network changes and want to let those cook for a few days to see what (if anything) develops.

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [July 7, 2006, 1:25am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/14 "2006-07-07T01:25:47Z")

</div>

Hi Carl,  
  
Glad to hear that you might have it sorted.

---

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [November 8, 2007, 6:44am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/15 "2007-11-08T06:44:59Z")

</div>

By the way - we recently moved to a new office, and I've haven't seen this problem again since the move (but it did continue to appear sporadically at the old location).&nbsp; I'd concluded a while back that it was actually a network issue - intermittent packet loss with unknown cause - that was really causing tf.exe to hang.

It's good to finally "close the loop" on this though!

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [November 9, 2007, 9:34am UTC](https://www.finalbuilder.com/forums/t/get-from-team-foundation-tf-exe-getting-stuck/120/16 "2007-11-09T09:34:13Z")

</div>

Hi Carl,   
  
 Thanks for the feedback. Always good to hear of a solution to an outstanding issue.   
  
 Regards,   
  
 Angus
