Google Groups Home
Help | Sign in
Thin & Cap Dont Play Nice :*(
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
pimpmaster  
View profile
 More options Jul 15, 7:16 am
From: pimpmaster <stevendgar...@gmail.com>
Date: Tue, 15 Jul 2008 04:16:12 -0700 (PDT)
Local: Tues, Jul 15 2008 7:16 am
Subject: Thin & Cap Dont Play Nice :*(
Everything works fine when I SSH into my server and run

/etc/init.d/thin restart

But when I do this via cap like so:

namespace :thin do
  task :restart, :roles => [:app, :web] do
    run "ruby /etc/init.d/thin restart"
  end
end

It bombs out on me with:

cap thin:restart
  * executing `thin:restart'
  * executing "ruby /etc/init.d/thin restart"
    servers: ["mysite.com"]
    [mysite.com] executing command
 ** [out :: mysite.com] /usr/lib/ruby/site_ruby/1.8/rubygems.rb:578:in
`report_activate_error': Could not find RubyGem thin (>= 0)
(Gem::LoadError)
 ** [out :: mysite.com] from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:
134:in `activate'
 ** [out :: mysite.com] from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:
49:in `gem'
 ** [out :: mysite.com] from /usr/local/rubygems/gems/bin/thin:18

WTF??

For a sanity check I ran gem list and:

actionmailer (2.1.0)
actionpack (2.1.0)
activerecord (2.1.0)
activeresource (2.1.0)
activesupport (2.1.0)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
eventmachine (0.12.0)
fastthread (1.0.1)
fcgi (0.8.7)
gem_plugin (0.2.3)
haml (2.0.1)
mysql (2.7)
rack (0.3.0)
rails (2.1.0)
rake (0.8.1)
termios (0.9.4)
thin (0.8.2)

Any ideas?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
macournoyer  
View profile
 More options Jul 15, 9:57 am
From: macournoyer <macourno...@gmail.com>
Date: Tue, 15 Jul 2008 06:57:54 -0700 (PDT)
Local: Tues, Jul 15 2008 9:57 am
Subject: Re: Thin & Cap Dont Play Nice :*(
Maybe you have several version of ruby/rubygem installed on your
machine. Check the path that the script point to in the file /etc/
init.d/thin or run: which ruby, from cap and ssh.

Or maybe it's a permission issue, check that your using the same user
for both cap and ssh login.

On Jul 15, 7:16 am, pimpmaster <stevendgar...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google