Fernando Perez
2010-Aug-06 18:26 UTC
Paperclip not finding imagemagick on prod, works on dev
Hi, I am using paperclip to attach documents to my models. it works perfectly on my dev machine, but on the server I get a CommandNotFoundError. On my server if I ./script/console I can run imagemagick through system("convert") and it works, so why can''t paperclip find it? Thanks for your ideas PS: the paperclip google group isn''t getting much answers so I am posting here. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder
2010-Aug-06 20:00 UTC
Re: Paperclip not finding imagemagick on prod, works on dev
On Fri, Aug 6, 2010 at 11:26 AM, Fernando Perez <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am using paperclip to attach documents to my models. it works > perfectly on my dev machine, but on the server I get a > CommandNotFoundError. > > On my server if I ./script/console I can run imagemagick through > system("convert") and it works, so why can''t paperclip find it?Chances are the *web server* is running under a user id other than yours, and so has a different $PATH. HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Fernando Perez
2010-Aug-06 20:58 UTC
Re: Paperclip not finding imagemagick on prod, works on dev
Hassan Schroeder wrote:> Chances are the *web server* is running under a user id other than > yours, and so has a different $PATH. >Interesting, and I think you are right. However the problem might be similar to these: * http://stackoverflow.com/questions/1996102/rails-paperclip-and-passenger-is-not-recognized-by-the-identify-command * http://arglebargle.posterous.com/path-environment-variable-for-rails-using-pas * http://www.fuzzylizard.com/archives/2008/07/05/954/ -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Fernando Perez
2010-Aug-06 21:01 UTC
Re: Paperclip not finding imagemagick on prod, works on dev
I''ll also add this: http://www.ruby-forum.com/topic/214031 I''m running Nginx+Passenger, and it seems there are issues with ImageMagick. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Fernando Perez
2010-Aug-07 10:16 UTC
Re: Paperclip not finding imagemagick on prod, works on dev
Simply adding Paperclip.options[:command_path] fixed the issue, but I swear I tried it yesterday! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.