代码之家  ›  专栏  ›  技术社区  ›  Trip

回形针未运行任务但未显示错误

  •  0
  • Trip  · 技术社区  · 14 年前

    这很奇怪。我刚刚对集群服务器进行了部署,从那时起,图片就没有被处理过。阅读日志时,我通常不会得到任何错误,但它们永远不会结束。然而,在一个特定的图像上,我发现了这一点,但这可能不能解释所有的事情。有什么想法吗?

    处理photoscontroller编辑(用于2010-05-27 04:25:12的69.248.152.173)[获取] 参数:“gallery”=>“2102”,“action”=>“edit”,“type”=>“photo”,“id”=>“15453”,“crop”=>“true”,“controller”=>“photos”,“organization”=>“470”,“&u”=>“127459512393” 渲染介质/裁剪照片

    actionview::templateError(/data/hq_channel/releases/20100524111501/public/system/photos/15453/original/dsc05193.jpg不被'identify'命令识别。)在app/views/media/crop_photo.js.haml的第4行: 1:==$(“media_header”).html('escape_javascript(render:partial=>'media/crop_photo')').slidedown(“slow”); 2: 3:平原 4:函数更新窗体(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][env:production] **[hoptoad]来自hoptoad的响应: 不存在具有给定API密钥的项目。 渲染/data/hq_channel/releases/20100524111501/public/500.html(500内部服务器错误)

    稍后,我得到了:

    actionview::templateError(/data/hq_channel/releases/20100524111501/public/system/photos/15453/original/dsc05193.jpg不被'identify'命令识别。)在app/views/media/crop_photo.js.haml的第4行: 1:==$(“media_header”).html(“escape_javascript(render:partial=>'media/crop_photo')').slidedown(“slow”); 2: 3:平原 4:函数更新窗体(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“从文件”
    app/models/photo.rb:68:在“photo_geometry”中
    app/views/media/crop-photo.js.haml:4:在“运行”中
    haml(2.2.2)[v]lib/haml/helpers/action_view_mods.rb:13:在“render”中
    app/controllers/photos_controller.rb:81:在“裁剪”中
    app/controllers/photos_controller.rb:24:在“编辑”中
    haml(2.2.2)[v]rails//lib/sass/plugin/rails.rb:19:在“进程”中
    lib/flash_session_cookie_middleware.rb:14:在“call”中
    供应商/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][env:production] **[hoptoad]hoptoad回复: 不存在具有给定API密钥的项目。 渲染/data/hq_channel/releases/20100524111501/public/500.html(500内部服务器错误)

    1 回复  |  直到 14 年前
        1
  •  1
  •   Tadas T    14 年前

    我有个小问题。看起来剪纸找不到执行图像处理命令的路径 将此添加到产品环境文件:

    Paperclip.options[:command_path] = "/path/to/image/processor(ImageMagick)/bin"
    

    就我而言

    Paperclip.options[:command_path] = "/usr/local/bin" 
    

    或在主机系统中设置ImageMagick的全局路径