Photo Paperclip::CommandNotFoundError

91 views
Skip to first unread message

keerthi priya

unread,
Oct 27, 2012, 6:00:50 AM10/27/12
to rubyonra...@googlegroups.com
Hi all,

       I am using paperclip plugin. when i am trying to upload photo i am getting this error " Photo Paperclip::CommandNotFoundError "
and i am getting this error on my server production mode. if i run on development mode on my server  i can able to upload the pic. why this is happening i have no idea.
can any help me out.

Cheers,
Kp

Colin Law

unread,
Oct 27, 2012, 6:17:53 AM10/27/12
to rubyonra...@googlegroups.com
Have you remembered to install everything that paperclip needs on the
server? If you think you have then post the full message here.

Colin

>
> Cheers,
> Kp
>
> --
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/-rYRd8Yv0AEJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Norbert Melzer

unread,
Oct 27, 2012, 11:46:21 AM10/27/12
to rubyonra...@googlegroups.com

Since it works on the server if he switches the environment, I think he has installed everything. Are you running both as the second user? Probably the user running the prod environment hasn't set his paths correctly.

Colin Law

unread,
Oct 27, 2012, 11:55:49 AM10/27/12
to rubyonra...@googlegroups.com
On 27 October 2012 16:46, Norbert Melzer <timm...@gmail.com> wrote:
> Since it works on the server if he switches the environment, I think he has
> installed everything. Are you running both as the second user? Probably the
> user running the prod environment hasn't set his paths correctly.

You are likely correct. I mis-read the question.

Colin

keerthi priya

unread,
Oct 30, 2012, 2:42:30 AM10/30/12
to rubyonra...@googlegroups.com
i have changed the file permissions and it worked for me . i dont know whether it is the way to solve it . as i it is a plugin no other gems need i hope i am right. what is the best way to solve such issues. i worked for me by changing the file permissions of the folder but it is not the write way hope .

Colin Law

unread,
Oct 30, 2012, 4:34:39 AM10/30/12
to rubyonra...@googlegroups.com
On 30 October 2012 06:42, keerthi priya <emailtoke...@gmail.com> wrote:
> i have changed the file permissions and it worked for me . i dont know
> whether it is the way to solve it . as i it is a plugin no other gems need i
> hope i am right. what is the best way to solve such issues. i worked for me
> by changing the file permissions of the folder but it is not the write way
> hope .

Since you have not told us which folder and what changes you have made
to the permissions it is not easy for us to determine whether that is
the best solution.

Colin

keerthi priya

unread,
Oct 30, 2012, 5:54:11 AM10/30/12
to rubyonra...@googlegroups.com
well i have gave permission to public/system/students all those folder to 777 permissions and i have restart my server and it worked .
Reply all
Reply to author
Forward
0 new messages