ruby - Deploying a Padrino app using capistrano (bundler: failed to load command: padrino) -


i'm trying deploy padrino application using capistrano, when run command: cap deploy following output generated:

//... other tasks executed         * 2016-11-05 16:23:26 executing `assets:prepare'   * executing "cd /data/apps/myapp/current; rack_env=production bundle exec padrino rake assets:prepare"     servers: ["my_server_dns_name"]     [my_server_dns_name] executing command  ** [out :: my_server_dns_name] => executing rake assets:prepare ...  ** [out :: my_server_dns_name] rspec not part of bundle, skip specs.  ** [out :: my_server_dns_name] w, [2016-11-05t20:23:28.664995 #14317]  warn -- : error creating log directory log/, using standard out logging.  ** [out :: my_server_dns_name] [11/05/16 20:23:28 +0000 ip-172-31-16-177 (14317)] info : starting new relic agent in "production" environment.  ** [out :: my_server_dns_name] [11/05/16 20:23:28 +0000 ip-172-31-16-177 (14317)] info : prevent agent startup add newrelic_enable=false environment variable or modify "production" section of newrelic.yml.  ** [out :: my_server_dns_name] [11/05/16 20:23:28 +0000 ip-172-31-16-177 (14317)] info : reading configuration config/newrelic.yml  ** [out :: my_server_dns_name] [11/05/16 20:23:28 +0000 ip-172-31-16-177 (14317)] info : enabling request sampler.  ** [out :: my_server_dns_name] [11/05/16 20:23:28 +0000 ip-172-31-16-177 (14317)] info : environment: production  ** [out :: my_server_dns_name] [11/05/16 20:23:28 +0000 ip-172-31-16-177 (14317)] info : no known dispatcher detected.  ** [out :: my_server_dns_name] [11/05/16 20:23:28 +0000 ip-172-31-16-177 (14317)] info : application: myapp (production)  ** [out :: my_server_dns_name] [11/05/16 20:23:28 +0000 ip-172-31-16-177 (14317)] warn : audit log disabled, failed opening log @ '/data/apps/myapp/releases/20161105202309/log/newrelic_audit.log': file exists @ dir_s_mkdir - /data/apps/myapp/releases/20161105202309/log  ** [out :: my_server_dns_name] [11/05/16 20:23:28 +0000 ip-172-31-16-177 (14317)] info : installing net instrumentation  ** [out :: my_server_dns_name] [11/05/16 20:23:28 +0000 ip-172-31-16-177 (14317)] info : installing deferred rack instrumentation  ** [out :: my_server_dns_name] [11/05/16 20:23:28 +0000 ip-172-31-16-177 (14317)] info : finished instrumentation  ** [out :: my_server_dns_name] [11/05/16 20:23:29 +0000 ip-172-31-16-177 (14317)] info : reporting to: https://rpm.newrelic.com/accounts/626868/applications/2669966  ** [out :: my_server_dns_name] bundler: failed load command: padrino (/data/apps/myapp/shared/bundle/ruby/2.1.0/bin/padrino)  ** [out :: my_server_dns_name] [11/05/16 20:23:29 +0000 ip-172-31-16-177 (14317)] info : starting agent shutdown *** [err :: my_server_dns_name] errno::eexist: file exists @ dir_s_mkdir - /data/apps/myapp/releases/20161105202309/log *** [err :: my_server_dns_name] /home/deploy/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:250:in `mkdir' *** [err :: my_server_dns_name] /home/deploy/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:250:in `fu_mkdir' *** [err :: my_server_dns_name] /home/deploy/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:224:in `block (2 levels) in mkdir_p' *** [err :: my_server_dns_name] /home/deploy/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:222:in `reverse_each' *** [err :: my_server_dns_name] /home/deploy/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:222:in `block in mkdir_p' *** [err :: my_server_dns_name] /home/deploy/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:208:in `each' *** [err :: my_server_dns_name] /home/deploy/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:208:in `mkdir_p' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/padrino-core-0.12.0/lib/padrino-core/logger.rb:283:in `setup!' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/padrino-core-0.12.0/lib/padrino-core/loader.rb:56:in `load!' *** [err :: my_server_dns_name] /data/apps/myapp/releases/20161105202309/config/boot.rb:52:in `<top (required)>' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/padrino-core-0.12.0/lib/padrino-core/cli/rake_tasks.rb:12:in `require' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/padrino-core-0.12.0/lib/padrino-core/cli/rake_tasks.rb:12:in `block in <top (required)>' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/task.rb:236:in `call' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/task.rb:236:in `block in execute' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/task.rb:231:in `each' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/task.rb:231:in `execute' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/task.rb:175:in `block in invoke_with_call_chain' *** [err :: my_server_dns_name] /home/deploy/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/task.rb:197:in `block in invoke_prerequisites' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/task.rb:195:in `each' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/task.rb:195:in `invoke_prerequisites' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/task.rb:174:in `block in invoke_with_call_chain' *** [err :: my_server_dns_name] /home/deploy/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/task.rb:161:in `invoke' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/application.rb:149:in `invoke_task' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/application.rb:106:in `block (2 levels) in top_level' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/application.rb:106:in `each' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/application.rb:106:in `block in top_level' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/application.rb:115:in `run_with_threads' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/rake-10.1.1/lib/rake/application.rb:100:in `top_level' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/padrino-core-0.12.0/lib/padrino-core/cli/base.rb:62:in `rake' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/thor-0.17.0/lib/thor/task.rb:27:in `run' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/thor-0.17.0/lib/thor/invocation.rb:120:in `invoke_task' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/thor-0.17.0/lib/thor.rb:344:in `dispatch' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/thor-0.17.0/lib/thor/base.rb:434:in `start' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/gems/padrino-core-0.12.0/bin/padrino:9:in `<top (required)>' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/bin/padrino:23:in `load' *** [err :: my_server_dns_name] /data/apps/myapp/shared/bundle/ruby/2.1.0/bin/padrino:23:in `<top (required)>'     command finished in 3322ms failed: "env rack_env=production rvm_path=$home/.rvm /home/deploy/.rvm/bin/rvm-shell '2.1' -c 'cd /data/apps/myapp/current; rack_env=production bundle exec padrino rake assets:prepare'" on my_server_dns_name 

the main thing don't understand why padrino command couldn't loaded because able see file in path: /data/apps/myapp/shared/bundle/ruby/2.1.0/bin/padrino. how can debug problem?

could related warn -- : error creating log directory log/, using standard out logging. problem (i don't think related but...)

i've spent time googling without luck.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -