I am using a sprinkle script to setup a new ubuntu server. Mostly ok but failing with a capistrano process error
I have tried a few things and trawled google for an answer but no luck so far. -------- #deploy.rb set :user, 'root' set :password, 'passwd' set :use_sudo, false set :runner, nil role :app, 'server', :primary => true -------- #package/rails.rb package :rubygems do description 'Ruby Gems Package Management System' version '1.3.1' source "http://rubyforge.org/frs/download.php/45905/rubygems-# {version}.tgz" do custom_install 'ruby setup.rb' # post :install, 'ln -s /usr/bin/gem1.8 /usr/bin/gem' post :install, 'gem update' post :install, 'gem update --system' end verify 'binary' do has_file '/usr/bin/gem1.8' end requires :ruby end -------- I get this error -------- --> Checking if rubygems is already installed for roles: app rubygemsbinary verification sequence: test -f /usr/bin/gem1.8 for roles: app --> Verifying binary... rubygems install sequence: mkdir -p /usr/local; mkdir -p /usr/local/ build; mkdir -p /usr/local/sources; wget -cq --directory-prefix='/usr/ local/sources' http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz; bash -c 'cd /usr/local/build && tar xzf /usr/local/sources/ rubygems-1.3.1.tgz'; bash -c 'cd /usr/local/build/rubygems-1.3.1 && ruby setup.rb >> rubygems-install.log 2>&1'; bash -c 'cd /usr/local/ build/rubygems-1.3.1 && gem update >> rubygems-post.log 2>&1'; bash -c 'cd /usr/local/build/rubygems-1.3.1 && gem update --system >> rubygems- post.log 2>&1' for roles: app --> Installing rubygems for roles: app /opt/ruby-enterprise-1.8.6-20090113/lib/ruby/gems/1.8/gems/ capistrano-2.5.5/lib/capistrano/command.rb:173:in `process!': failed: "sh -c \"sudo -p 'sudo password: ' bash -c 'cd /usr/local/build/ rubygems-1.3.1 && ruby setup.rb >> rubygems-install.log 2>&1'\"" on server (Capistrano::CommandError) ------- If I take out the sudo section it works fine directly on the server. With set :use_sudo, false I figured that shouldn't have come up in the first place. Does anyone have an idea what's going on and how I can remedy this? Thanks. --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
