setting up on ubuntu with deprec

0 views
Skip to first unread message

Josh

unread,
Nov 7, 2007, 11:05:20 AM11/7/07
to Capistrano
i am trying to set up a rails app on a fresh install of ubuntu for the
first time with the deprec gem. i was following the steps in the
peepcode video and everything seemed to be going fine until about 10
minutes into "cap install_rails_stack" it says:

[192.168.1.63] executing command
** [out :: 192.168.1.63] [sudo] password for deploy:

an then it just hangs. when i press ctrl-c to stop it, this is what i
get:

/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/capistrano/
command.rb:41:in `sleep': Interrupt
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/command.rb:41:in `process!'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/command.rb:28:in `process!'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/actor.rb:210:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/actor.rb:554:in `execute_on_servers'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/actor.rb:207:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/actor.rb:324:in `sudo'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/extensions.rb:11:in `method_missing'
from /usr/local/lib/ruby/gems/1.8/gems/deprec-1.9.0/lib/deprec/
capistrano_extensions/deprec_extensions.rb:68:in `groupadd'
... 6 levels...
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/cli.rb:239:in `execute!'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/cli.rb:12:in `execute!'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/bin/
cap:11
from /usr/local/bin/cap:18


i tried starting over, but i never get very far on anything now.
anytime it needs a sudo password it just stops and i have to escape
out of the process.

any ideas?

Sean Cribbs

unread,
Nov 7, 2007, 11:13:21 AM11/7/07
to capis...@googlegroups.com
Add this to your deploy.rb:

set :sudo, "sudo -p Password:"

Sean

Josh

unread,
Nov 7, 2007, 11:17:52 AM11/7/07
to Capistrano
awesome. that worked!

can you tell me what that did?

Reply all
Reply to author
Forward
0 new messages