# Switchtower setup hangs

**URL:** <https://www.ruby-forum.com/t/switchtower-setup-hangs/48795>\
**Category:** Rails\
**Created:** [November 24, 2005, 9:49pm UTC](https://www.ruby-forum.com/t/switchtower-setup-hangs/48795 "2005-11-24T21:49:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mannl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mannl](https://www.ruby-forum.com/u/mannl)\
**Post date:** [November 24, 2005, 9:49pm UTC](https://www.ruby-forum.com/t/switchtower-setup-hangs/48795/1 "2005-11-24T21:49:28Z")

</div>

Hi!

I’ve been having a problem with switchtower. It hangs for several  
minutes and then spits out errors when I try to execute the setup  
recipe. Any ideas?

Robs-iBook:~/Sites/mysite rob$ rake remote\_exec ACTION=setup  
(in /Users/rob/Sites/mysite)  
loading configuration /usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/  
lib/switchtower/recipes/standard.rb  
loading configuration ./config/deploy.rb  
executing task setup  
executing “mkdir -p -m 775 /var/www/mysite/releases /var/www/mysite/  
shared/system &&\n mkdir -p -m 777 /var/www/mysite/shared/log”  
servers: [“[mysite.com](http://mysite.com)”]  
/usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.2/lib/net/ssh/transport/  
packet-stream.rb:203:in `sysread': End of file reached (EOFError) from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.2/lib/net/ssh/ transport/packet-stream.rb:203:in `read’  
from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.2/lib/net/ssh/  
transport/packet-stream.rb:167:in `get' from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.2/lib/net/ssh/ transport/packet-stream.rb:147:in `synchronize’  
from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.2/lib/net/ssh/  
transport/packet-stream.rb:147:in `get' from /usr/lib/ruby/gems/1.8/gems/needle-1.2.1/lib/needle/ lifecycle/proxy.rb:60:in ` **send** ’  
from /usr/lib/ruby/gems/1.8/gems/needle-1.2.1/lib/needle/  
lifecycle/proxy.rb:60:in `method_missing' from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.2/lib/net/ssh/ transport/session.rb:245:in `wait\_for\_message’  
from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.2/lib/net/ssh/  
transport/session.rb:240:in `loop' ... 53 levels... from /usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/ switchtower/cli.rb:7:in `execute!’  
from /usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/bin/  
switchtower:11  
from /usr/bin/switchtower:18:in `load’  
from /usr/bin/switchtower:18

Thanks,  
Rob

---

<div class="post-metadata">

**Author:** ![mannl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mannl](https://www.ruby-forum.com/u/mannl)\
**Post date:** [November 25, 2005, 7:33am UTC](https://www.ruby-forum.com/t/switchtower-setup-hangs/48795/2 "2005-11-25T07:33:27Z")

</div>

Does anyone know if this is my servers fault, or something with  
Switchtower?

I can connect to my server using SSH just fine.

Any hints?

What does Switchtower usually do? Ask for the password after the  
“servers: []” line?

Thanks!  
Rob

---

<div class="post-metadata">

**Author:** ![mannl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mannl](https://www.ruby-forum.com/u/mannl)\
**Post date:** [November 25, 2005, 10:10am UTC](https://www.ruby-forum.com/t/switchtower-setup-hangs/48795/3 "2005-11-25T10:10:35Z")

</div>

On 25.11.2005, at 8.32, Robert wrote:

> Does anyone know if this is my servers fault, or something with  
> Switchtower?
> 
> I can connect to my server using SSH just fine.
> 
> Any hints?
> 
> What does Switchtower usually do? Ask for the password after the  
> “servers: []” line?

Yes.

Sorry for the obvious question, but your real url is not [mysite.com](http://mysite.com),  
right?

I can’t say anything else but I installed switchtower on my powerbook  
yesterday and everything worked pretty well.

//jarkko

---

<div class="post-metadata">

**Author:** ![mannl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mannl](https://www.ruby-forum.com/u/mannl)\
**Post date:** [November 25, 2005, 1:41pm UTC](https://www.ruby-forum.com/t/switchtower-setup-hangs/48795/4 "2005-11-25T13:41:15Z")

</div>

> Sorry for the obvious question, but your real url is not  
> [mysite.com](http://mysite.com), right?  
> No, just put that there for anonymity

I just changed my servers to their respective IP address but that  
doesn’t help either, same problem.

This helped though:  
[http://jamis.jamisbuck.org/articles/2005/09/24/switchtower-on-osx](http://jamis.jamisbuck.org/articles/2005/09/24/switchtower-on-osx).

I compiled Ruby 1.8.3 from source, and now it works 🙂

Thanks,  
Rob
