MiniMagick and Passenger

64 views
Skip to first unread message

graham....@gmail.com

unread,
Sep 19, 2008, 6:46:06 AM9/19/08
to Phusion Passenger Discussions
I have recently changed my server so that some sites no use Passenger
whereas previously they were using a mongrel cluster configuration.

However some of the sites use minimagick to resize images, this no
longer works the following line:

MiniMagick::Image.from_file

Causes this error.

ActionView::TemplateError (ImageMagick command (identify "/tmp/
minimagick5601-1.jpg") failed: Error Given 32512) on line #44 of front/
article.html.erb:

Many of the posts i have found regarding the 32152 error mention
recompiling imagemagick as dependencies may not be satisfied, however
the fact that the exact same configuration works when the site is run
through mongrel_cluster, only when run through passenger does this
occur.

It looks to me like minimagick is not writing the file to the tmp
directory as it should.

Also to compound the problem the same site and setup works on a
different server i also use. So the error only occurs when running on
a particular server through passenger.

Any ideas on the cause of this problem, the only i can think of is
that passenger runs as a different user which is causing problems with
permissions however permissions to the tmp directory are correct.

daeltar

unread,
Sep 21, 2008, 11:39:44 AM9/21/08
to Phusion Passenger Discussions
You need to set PATH in context of your websever. For apple launchctl
it can be achived by this - http://lists.apple.com/archives/web-dev/2008/Apr/msg00059.html.

On Sep 19, 12:46 pm, "graham.hadgr...@gmail.com"
Reply all
Reply to author
Forward
0 new messages