Cocaine::CommandNotFoundError

i have error, like this

Cocaine::CommandNotFoundError

Rails.root: /home/fajar/workspace/company/pushjawcompany
Application Trace http://localhost:3000/admin/video/new# | Framework
Tracehttp://localhost:3000/admin/video/new#
| Full Trace http://localhost:3000/admin/video/new#

cocaine (0.4.2) lib/cocaine/command_line.rb:83:in run' paperclip (3.3.1) lib/paperclip/helpers.rb:31:in run’
paperclip-ffmpeg (0.9.4) lib/paperclip_processors/ffmpeg.rb:143:in
make' paperclip (3.3.1) lib/paperclip/processor.rb:33:in make’
paperclip (3.3.1) lib/paperclip/attachment.rb:410:in block in post_process_style' paperclip (3.3.1) lib/paperclip/attachment.rb:409:in each’
paperclip (3.3.1) lib/paperclip/attachment.rb:409:in inject' paperclip (3.3.1) lib/paperclip/attachment.rb:409:in post_process_style’
paperclip (3.3.1) lib/paperclip/attachment.rb:402:in block in post_process_styles' paperclip (3.3.1) lib/paperclip/attachment.rb:401:in each’
paperclip (3.3.1) lib/paperclip/attachment.rb:401:in
post_process_styles' paperclip (3.3.1) lib/paperclip/attachment.rb:394:in block (2 levels)
in post_process’
activesupport (3.2.9) lib/active_support/callbacks.rb:403:in
_run__587858617__video_post_process__1029961974__callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:405:in __run_callback’
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in
_run_video_post_process_callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:81:in run_callbacks’
paperclip (3.3.1) lib/paperclip/callbacks.rb:26:in
run_paperclip_callbacks' paperclip (3.3.1) lib/paperclip/attachment.rb:393:in block in
post_process’
activesupport (3.2.9) lib/active_support/callbacks.rb:403:in
_run__587858617__post_process__1029961974__callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:405:in __run_callback’
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in
_run_post_process_callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:81:in run_callbacks’
paperclip (3.3.1) lib/paperclip/callbacks.rb:26:in
run_paperclip_callbacks' paperclip (3.3.1) lib/paperclip/attachment.rb:392:in post_process’
paperclip (3.3.1) lib/paperclip/attachment.rb:107:in assign' paperclip (3.3.1) lib/paperclip.rb:196:in block in has_attached_file’
activerecord (3.2.9) lib/active_record/attribute_assignment.rb:85:in
block in assign_attributes' activerecord (3.2.9) lib/active_record/attribute_assignment.rb:78:in each’
activerecord (3.2.9) lib/active_record/attribute_assignment.rb:78:in
assign_attributes' rails_admin (0.3.0) lib/rails_admin/adapters/active_record/abstract_object.rb:19:in set_attributes’
rails_admin (0.3.0) lib/rails_admin/config/actions/new.rb:40:in block (2 levels) in <class:New>' (eval):8:in instance_eval’
(eval):8:in new' actionpack (3.2.9) lib/action_controller/metal/implicit_render.rb:4:in send_action’
actionpack (3.2.9) lib/abstract_controller/base.rb:167:in
process_action' actionpack (3.2.9) lib/action_controller/metal/rendering.rb:10:in process_action’
actionpack (3.2.9) lib/abstract_controller/callbacks.rb:18:in block in process_action' activesupport (3.2.9) lib/active_support/callbacks.rb:480:in _run__635459833__process_action__59569537__callbacks’
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in
__run_callback' activesupport (3.2.9) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks’
activesupport (3.2.9) lib/active_support/callbacks.rb:81:in
run_callbacks' actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:in process_action’
actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in
process_action' actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:in block in process_action’
activesupport (3.2.9) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in instrument’
activesupport (3.2.9) lib/active_support/notifications.rb:123:in
instrument' actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:in process_action’
actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in
process_action' activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:in process_action’
actionpack (3.2.9) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:in process’
actionpack (3.2.9) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:in dispatch’
actionpack (3.2.9) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in call’
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in
dispatch' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:36:in call’
journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:in each’
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in call’
railties (3.2.9) lib/rails/engine.rb:479:in call' railties (3.2.9) lib/rails/railtie/configurable.rb:30:in method_missing’
journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:in each’
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in call’
actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in call' rack-pjax (0.6.0) lib/rack/pjax.rb:12:in call’
warden (1.2.1) lib/warden/manager.rb:35:in block in call' warden (1.2.1) lib/warden/manager.rb:34:in catch’
warden (1.2.1) lib/warden/manager.rb:34:in call' actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in call’
rack (1.4.1) lib/rack/etag.rb:23:in call' rack (1.4.1) lib/rack/conditionalget.rb:35:in call’
actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:in call' remotipart (1.0.2) lib/remotipart/middleware.rb:30:in call’
actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in
call' actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:in call’
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in context' rack (1.4.1) lib/rack/session/abstract/id.rb:200:in call’
actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in
call' activerecord (3.2.9) lib/active_record/query_cache.rb:64:in call’
activerecord (3.2.9)
lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in
call' actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:in block in call’
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in
_run__878479580__call__1029961974__callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:405:in __run_callback’
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in
_run_call_callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:81:in run_callbacks’
actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in
call' actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:in call’
actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in
call' actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call’
actionpack (3.2.9)
lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.9) lib/rails/rack/logger.rb:32:in call_app’
railties (3.2.9) lib/rails/rack/logger.rb:16:in block in call' activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in tagged’
railties (3.2.9) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in call’
rack (1.4.1) lib/rack/methodoverride.rb:21:in call' rack (1.4.1) lib/rack/runtime.rb:17:in call’
activesupport (3.2.9)
lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.1) lib/rack/lock.rb:15:in call’
actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in call' railties (3.2.9) lib/rails/engine.rb:479:in call’
railties (3.2.9) lib/rails/application.rb:223:in call' rack (1.4.1) lib/rack/content_length.rb:14:in call’
railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in call' rack (1.4.1) lib/rack/handler/webrick.rb:59:in service’
/home/fajar/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:138:in
service' /home/fajar/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:94:in run’
/home/fajar/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/server.rb:191:in
`block in start_thread’

cocaine (0.4.2) lib/cocaine/command_line.rb:83:in run' paperclip (3.3.1) lib/paperclip/helpers.rb:31:in run’
paperclip-ffmpeg (0.9.4) lib/paperclip_processors/ffmpeg.rb:143:in
make' paperclip (3.3.1) lib/paperclip/processor.rb:33:in make’
paperclip (3.3.1) lib/paperclip/attachment.rb:410:in block in post_process_style' paperclip (3.3.1) lib/paperclip/attachment.rb:409:in each’
paperclip (3.3.1) lib/paperclip/attachment.rb:409:in inject' paperclip (3.3.1) lib/paperclip/attachment.rb:409:in post_process_style’
paperclip (3.3.1) lib/paperclip/attachment.rb:402:in block in post_process_styles' paperclip (3.3.1) lib/paperclip/attachment.rb:401:in each’
paperclip (3.3.1) lib/paperclip/attachment.rb:401:in
post_process_styles' paperclip (3.3.1) lib/paperclip/attachment.rb:394:in block (2 levels)
in post_process’
activesupport (3.2.9) lib/active_support/callbacks.rb:403:in
_run__587858617__video_post_process__1029961974__callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:405:in __run_callback’
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in
_run_video_post_process_callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:81:in run_callbacks’
paperclip (3.3.1) lib/paperclip/callbacks.rb:26:in
run_paperclip_callbacks' paperclip (3.3.1) lib/paperclip/attachment.rb:393:in block in
post_process’
activesupport (3.2.9) lib/active_support/callbacks.rb:403:in
_run__587858617__post_process__1029961974__callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:405:in __run_callback’
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in
_run_post_process_callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:81:in run_callbacks’
paperclip (3.3.1) lib/paperclip/callbacks.rb:26:in
run_paperclip_callbacks' paperclip (3.3.1) lib/paperclip/attachment.rb:392:in post_process’
paperclip (3.3.1) lib/paperclip/attachment.rb:107:in assign' paperclip (3.3.1) lib/paperclip.rb:196:in block in has_attached_file’
activerecord (3.2.9) lib/active_record/attribute_assignment.rb:85:in
block in assign_attributes' activerecord (3.2.9) lib/active_record/attribute_assignment.rb:78:in each’
activerecord (3.2.9) lib/active_record/attribute_assignment.rb:78:in
assign_attributes' rails_admin (0.3.0) lib/rails_admin/adapters/active_record/abstract_object.rb:19:in set_attributes’
rails_admin (0.3.0) lib/rails_admin/config/actions/new.rb:40:in block (2 levels) in <class:New>' (eval):8:in instance_eval’
(eval):8:in new' actionpack (3.2.9) lib/action_controller/metal/implicit_render.rb:4:in send_action’
actionpack (3.2.9) lib/abstract_controller/base.rb:167:in
process_action' actionpack (3.2.9) lib/action_controller/metal/rendering.rb:10:in process_action’
actionpack (3.2.9) lib/abstract_controller/callbacks.rb:18:in block in process_action' activesupport (3.2.9) lib/active_support/callbacks.rb:480:in _run__635459833__process_action__59569537__callbacks’
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in
__run_callback' activesupport (3.2.9) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks’
activesupport (3.2.9) lib/active_support/callbacks.rb:81:in
run_callbacks' actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:in process_action’
actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in
process_action' actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:in block in process_action’
activesupport (3.2.9) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in instrument’
activesupport (3.2.9) lib/active_support/notifications.rb:123:in
instrument' actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:in process_action’
actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in
process_action' activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:in process_action’
actionpack (3.2.9) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:in process’
actionpack (3.2.9) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:in dispatch’
actionpack (3.2.9) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in call’
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in
dispatch' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:36:in call’
journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:in each’
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in call’
railties (3.2.9) lib/rails/engine.rb:479:in call' railties (3.2.9) lib/rails/railtie/configurable.rb:30:in method_missing’
journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:in each’
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in call’
actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in call' rack-pjax (0.6.0) lib/rack/pjax.rb:12:in call’
warden (1.2.1) lib/warden/manager.rb:35:in block in call' warden (1.2.1) lib/warden/manager.rb:34:in catch’
warden (1.2.1) lib/warden/manager.rb:34:in call' actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in call’
rack (1.4.1) lib/rack/etag.rb:23:in call' rack (1.4.1) lib/rack/conditionalget.rb:35:in call’
actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:in call' remotipart (1.0.2) lib/remotipart/middleware.rb:30:in call’
actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in
call' actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:in call’
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in context' rack (1.4.1) lib/rack/session/abstract/id.rb:200:in call’
actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in
call' activerecord (3.2.9) lib/active_record/query_cache.rb:64:in call’
activerecord (3.2.9)
lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in
call' actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:in block in call’
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in
_run__878479580__call__1029961974__callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:405:in __run_callback’
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in
_run_call_callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:81:in run_callbacks’
actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in
call' actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:in call’
actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in
call' actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call’
actionpack (3.2.9)
lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.9) lib/rails/rack/logger.rb:32:in call_app’
railties (3.2.9) lib/rails/rack/logger.rb:16:in block in call' activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in tagged’
railties (3.2.9) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in call’
rack (1.4.1) lib/rack/methodoverride.rb:21:in call' rack (1.4.1) lib/rack/runtime.rb:17:in call’
activesupport (3.2.9)
lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.1) lib/rack/lock.rb:15:in call’
actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in call' railties (3.2.9) lib/rails/engine.rb:479:in call’
railties (3.2.9) lib/rails/application.rb:223:in call' rack (1.4.1) lib/rack/content_length.rb:14:in call’
railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in call' rack (1.4.1) lib/rack/handler/webrick.rb:59:in service’
/home/fajar/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:138:in
service' /home/fajar/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:94:in run’
/home/fajar/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/server.rb:191:in
`block in start_thread’

Request

Parameters:

{“utf8”=>“✓”,
“authenticity_token”=>“YUx9GhL52o+BAVIyG8g6r78ddJbZb+Sx51/T97fGe2s=”,
“video”=>{“video”=>#<ActionDispatch::Http::UploadedFile:0xb0bc1dc
@original_filename=“168.mp4”,
@content_type=“video/mp4”,
@headers=“Content-Disposition: form-data; name="video[video]";
filename="168.mp4"\r\nContent-Type: video/mp4\r\n”,
@tempfile=#<File:/tmp/RackMultipart20121220-17538-ml8ezn>>},
“return_to”=>“http://localhost:3000/admin/video”,
“_save”=>“”,
“model_name”=>“video”}

i’ve been looking for this problem in 3 days, but not resolve this
problem,…

I ran into the same issue. Looks like you’re using paperclip-ffmpeg.
Make
sure you have ffmpeg installed locally.