resolve/refinerycms — Issue #1196: Error adding a new image
Author: abraharl
Created: 2011-12-27 22:58:04+00:00
State: open

I a Refinery CMS demo set up on an Ubuntu server. From a windows computer I ssh'ed into the Ubuntu machine and ran the Refinery CMS on port 3300. My issue is that after going into refinery from my web browser on the Windows machine (Chrome if that's somehow relevant) everything works fine until I try to add a new image. The upload image and file browser appears but when I click the save button I get an error saying "Dragonfly::Shell::CommandFailed in Admin::ImagesController#create" followed by "Command failed (identify '/tmp/RackMultipart20111227-18870-1vx9mt4') with exit status 127"

The full trace is:

dragonfly (0.9.8) lib/dragonfly/shell.rb:29:in `raise_shell_command_failed'
dragonfly (0.9.8) lib/dragonfly/shell.rb:23:in `run'
dragonfly (0.9.8) lib/dragonfly/image_magick/utils.rb:35:in `raw_identify'
dragonfly (0.9.8) lib/dragonfly/image_magick/utils.rb:24:in `identify'
dragonfly (0.9.8) lib/dragonfly/image_magick/analyser.rb:9:in `width'
dragonfly (0.9.8) lib/dragonfly/function_manager.rb:39:in `call'
dragonfly (0.9.8) lib/dragonfly/function_manager.rb:39:in `block (2 levels) in call_last'
dragonfly (0.9.8) lib/dragonfly/function_manager.rb:38:in `catch'
dragonfly (0.9.8) lib/dragonfly/function_manager.rb:38:in `block in call_last'
dragonfly (0.9.8) lib/dragonfly/function_manager.rb:37:in `each'
dragonfly (0.9.8) lib/dragonfly/function_manager.rb:37:in `call_last'
dragonfly (0.9.8) lib/dragonfly/analyser.rb:25:in `analyse'
dragonfly (0.9.8) lib/dragonfly/job.rb:243:in `analyse'
(eval):3:in `width'
dragonfly (0.9.8) lib/dragonfly/active_model_extensions/attachment.rb:242:in `block in set_magic_attributes'
dragonfly (0.9.8) lib/dragonfly/active_model_extensions/attachment.rb:242:in `each'
dragonfly (0.9.8) lib/dragonfly/active_model_extensions/attachment.rb:242:in `set_magic_attributes'
dragonfly (0.9.8) lib/dragonfly/active_model_extensions/attachment.rb:52:in `assign'
dragonfly (0.9.8) lib/dragonfly/active_model_extensions/class_methods.rb:22:in `block (3 levels) in register_dragonfly_app'
activerecord (3.0.11) lib/active_record/base.rb:1565:in `block in attributes='
activerecord (3.0.11) lib/active_record/base.rb:1561:in `each'
activerecord (3.0.11) lib/active_record/base.rb:1561:in `attributes='
activerecord (3.0.11) lib/active_record/base.rb:1412:in `initialize'
activerecord (3.0.11) lib/active_record/base.rb:502:in `new'
activerecord (3.0.11) lib/active_record/base.rb:502:in `create'
refinerycms-images (1.0.9) app/controllers/admin/images_controller.rb:48:in `block in create'
refinerycms-images (1.0.9) app/controllers/admin/images_controller.rb:47:in `each'
refinerycms-images (1.0.9) app/controllers/admin/images_controller.rb:47:in `create'
actionpack (3.0.11) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.11) lib/abstract_controller/base.rb:150:in `process_action'
actionpack (3.0.11) lib/action_controller/metal/rendering.rb:11:in `process_action'
actionpack (3.0.11) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.0.11) lib/active_support/callbacks.rb:481:in `_run__4325176731935388287__process_action__18956588529467988__callbacks'
activesupport (3.0.11) lib/active_support/callbacks.rb:410:in `_run_process_action_callbacks'
activesupport (3.0.11) lib/active_support/callbacks.rb:94:in `run_callbacks'
actionpack (3.0.11) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.0.11) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.0.11) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.0.11) lib/active_support/notifications.rb:52:in `block in instrument'
activesupport (3.0.11) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.0.11) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.11) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.0.11) lib/abstract_controller/base.rb:119:in `process'
actionpack (3.0.11) lib/abstract_controller/rendering.rb:41:in `process'
actionpack (3.0.11) lib/action_controller/metal.rb:138:in `dispatch'
actionpack (3.0.11) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.0.11) lib/action_controller/metal.rb:178:in `block in action'
actionpack (3.0.11) lib/action_dispatch/routing/route_set.rb:62:in `call'
actionpack (3.0.11) lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
actionpack (3.0.11) lib/action_dispatch/routing/route_set.rb:27:in `call'
rack-mount (0.6.14) lib/rack/mount/route_set.rb:148:in `block in call'
routing-filter (0.2.4) lib/routing_filter/adapters/rails_3.rb:74:in `call'
routing-filter (0.2.4) lib/routing_filter/adapters/rails_3.rb:74:in `recognize_with_filtering'
rack-mount (0.6.14) lib/rack/mount/route_set.rb:139:in `call'
actionpack (3.0.11) lib/action_dispatch/routing/route_set.rb:493:in `call'
warden (1.0.6) lib/warden/manager.rb:35:in `block in call'
warden (1.0.6) lib/warden/manager.rb:34:in `catch'
warden (1.0.6) lib/warden/manager.rb:34:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/head.rb:14:in `call'
rack (1.2.4) lib/rack/methodoverride.rb:24:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/flash.rb:182:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/cookies.rb:302:in `call'
activerecord (3.0.11) lib/active_record/query_cache.rb:32:in `block in call'
activerecord (3.0.11) lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
activerecord (3.0.11) lib/active_record/query_cache.rb:12:in `cache'
activerecord (3.0.11) lib/active_record/query_cache.rb:31:in `call'
activerecord (3.0.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'
activesupport (3.0.11) lib/active_support/callbacks.rb:416:in `_run_call_callbacks'
actionpack (3.0.11) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.2.4) lib/rack/sendfile.rb:106:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.0.11) lib/rails/rack/logger.rb:13:in `call'
rack (1.2.4) lib/rack/runtime.rb:17:in `call'
dragonfly (0.9.8) lib/dragonfly/middleware.rb:13:in `call'
rack-cache (1.1) lib/rack/cache/context.rb:132:in `forward'
rack-cache (1.1) lib/rack/cache/context.rb:139:in `pass'
rack-cache (1.1) lib/rack/cache/context.rb:151:in `invalidate'
rack-cache (1.1) lib/rack/cache/context.rb:70:in `call!'
rack-cache (1.1) lib/rack/cache/context.rb:50:in `call'
dragonfly (0.9.8) lib/dragonfly/middleware.rb:13:in `call'
rack-cache (1.1) lib/rack/cache/context.rb:132:in `forward'
rack-cache (1.1) lib/rack/cache/context.rb:139:in `pass'
rack-cache (1.1) lib/rack/cache/context.rb:151:in `invalidate'
rack-cache (1.1) lib/rack/cache/context.rb:70:in `call!'
rack-cache (1.1) lib/rack/cache/context.rb:50:in `call'
rack (1.2.4) lib/rack/lock.rb:11:in `block in call'
:10:in `synchronize'
rack (1.2.4) lib/rack/lock.rb:11:in `call'
dragonfly (0.9.8) lib/dragonfly/cookie_monster.rb:9:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/static.rb:30:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/static.rb:30:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/static.rb:30:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/static.rb:30:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/static.rb:30:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/static.rb:30:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/static.rb:30:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/static.rb:30:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/static.rb:30:in `call'
actionpack (3.0.11) lib/action_dispatch/middleware/static.rb:30:in `call'
railties (3.0.11) lib/rails/application.rb:168:in `call'
railties (3.0.11) lib/rails/application.rb:77:in `method_missing'
railties (3.0.11) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.2.4) lib/rack/content_length.rb:13:in `call'
rack (1.2.4) lib/rack/handler/webrick.rb:52:in `service'
/home/sureweb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/home/sureweb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/home/sureweb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'

Under Request: Parameters it says:

"utf8"=>"✓",
"authenticity_token"=>"LuZ/US7JkREcIfSUwbnXoLXmmF0GEJ08w5Gt2O5obUE=",
"image"=>{"image"=>[#>]},
"wymeditor"=>"",
"modal"=>"true",
"dialog"=>"true",
"app_dialog"=>"true",
"field"=>"",
"update_image"=>"",
"thumbnail"=>"",
"callback"=>"",
"conditions"=>"",
"locale"=>:en}