Switchtower setup hangs

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”]
/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

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

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,
right?

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

//jarkko

Sorry for the obvious question, but your real url is not
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.

I compiled Ruby 1.8.3 from source, and now it works :slight_smile:

Thanks,
Rob