Forum: Ruby on Rails Switchtower setup hangs

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C618e1d9ffa1bd1a6b6edc8ad4edec63?d=identicon&s=25 mannl (Guest)
on 2005-11-24 21:49
(Received via mailing list)
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
C618e1d9ffa1bd1a6b6edc8ad4edec63?d=identicon&s=25 mannl (Guest)
on 2005-11-25 07:33
(Received via mailing list)
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
82476266af9d460415d8f1fc16bb54ed?d=identicon&s=25 Jarkko Laine (jarkko)
on 2005-11-25 10:10
(Received via mailing list)
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
C618e1d9ffa1bd1a6b6edc8ad4edec63?d=identicon&s=25 mannl (Guest)
on 2005-11-25 13:41
(Received via mailing list)
> 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/swi....

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




Thanks,
Rob
This topic is locked and can not be replied to.