这很奇怪。我刚刚部署到集群服务器,从那时起,图片尚未处理。阅读日志,我通常不会得到任何错误,但他们永远不会完成。然而,在一个特定的图像上,我至少发现了这一点,但这可能无法解释一切......任何想法?
处理PhotosController#edit(适用于2010-05-27 04:25:12的69.248.152.173)[GET] 参数:{“gallery_id”=>“2102”,“action”=>“edit”,“type”=>“photo”,“id”=>“15453”,“crop”=>“ true“,”“controller”=>“photos”,“organization_id”=>“470”,“_”=>“1274959512393”} 渲染媒体/ crop_photo
app / views /的第4行上的ActionView :: TemplateError(/data/HQ_Channel/releases/20100524111501/public/system/photos/15453/original/DSC05193.JPG无法通过'identify'命令识别。)媒体/ crop_photo.js.haml: 1:== $(“#media_header”)。html('#{escape_javascript(render:partial =>'media / crop_photo')}')。slideDown(“slow”); 2: 3 ::平原 4:函数updateForm(coords) 5:{ 6:var rx =#{PHOTO_IMAGE_WIDTH} / coords.w; 7:var ry =#{PHOTO_IMAGE_HEIGHT} / coords.h;
vendor/gems/thoughtbot-paperclip-2.3.1/lib/paperclip/geometry.rb:24:in `from_file'
app/models/photo.rb:68:in `photo_geometry'
app/views/media/crop_photo.js.haml:4:in `_run_haml_app47views47media47crop_photo46js46haml'
haml (2.2.2) [v] lib/haml/helpers/action_view_mods.rb:13:in `render'
app/controllers/photos_controller.rb:81:in `crop'
app/controllers/photos_controller.rb:24:in `edit'
haml (2.2.2) [v] rails/./lib/sass/plugin/rails.rb:19:in `process'
lib/flash_session_cookie_middleware.rb:14:in `call'
vendor/gems/hoptoad_notifier-2.2.2/lib/hoptoad_notifier/rack.rb:27:in `call'
** [Hoptoad]失败:Net :: HTTPClientError ** [Hoptoad]环境信息:[Ruby:1.8.6] [Rails:2.3.3] [环境:生产] ** [Hoptoad]来自Hoptoad的回复: 给定的API密钥不存在任何项目。 渲染/data/HQ_Channel/releases/20100524111501/public/500.html(500内部服务器错误)
过了一会儿,我得到了这个:
app / views /的第4行上的ActionView :: TemplateError(/data/HQ_Channel/releases/20100524111501/public/system/photos/15453/original/DSC05193.JPG无法通过'identify'命令识别。)媒体/ crop_photo.js.haml: 1:== $(“#media_header”)。html('#{escape_javascript(render:partial =>'media / crop_photo')}')。slideDown(“slow”); 2: 3 ::平原 4:函数updateForm(coords) 5:{ 6:var rx =#{PHOTO_IMAGE_WIDTH} / coords.w; 7:var ry =#{PHOTO_IMAGE_HEIGHT} / coords.h;
vendor/gems/thoughtbot-paperclip-2.3.1/lib/paperclip/geometry.rb:24:in `from_file'
app/models/photo.rb:68:in `photo_geometry'
app/views/media/crop_photo.js.haml:4:in `_run_haml_app47views47media47crop_photo46js46haml'
haml (2.2.2) [v] lib/haml/helpers/action_view_mods.rb:13:in `render'
app/controllers/photos_controller.rb:81:in `crop'
app/controllers/photos_controller.rb:24:in `edit'
haml (2.2.2) [v] rails/./lib/sass/plugin/rails.rb:19:in `process'
lib/flash_session_cookie_middleware.rb:14:in `call'
vendor/gems/hoptoad_notifier-2.2.2/lib/hoptoad_notifier/rack.rb:27:in `call'
** [Hoptoad]失败:Net :: HTTPClientError ** [Hoptoad]环境信息:[Ruby:1.8.6] [Rails:2.3.3] [环境:生产] ** [Hoptoad]来自Hoptoad的回复: 给定的API密钥不存在任何项目。 渲染/data/HQ_Channel/releases/20100524111501/public/500.html(500内部服务器错误)
答案 0 :(得分:1)
我有一个类似的问题。看起来像paperclip找不到执行图像处理命令的路径 将其添加到产品环境文件:
Paperclip.options[:command_path] = "/path/to/image/processor(ImageMagick)/bin"
在我的情况下是
Paperclip.options[:command_path] = "/usr/local/bin"
或在主机系统中设置ImageMagick的全局路径