Prod Deploy fail. Delayed Job possibly?

6 views
Skip to first unread message

Cube2

unread,
Apr 26, 2014, 1:33:08 AM4/26/14
to railsmachin...@googlegroups.com
Im running into this error when trying to deploy for the first time

This is after i ran cap production deploy:setup. 

running cap production deploy

Password:
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] Uncaught exception: NoMethodError: undefined method `+' for nil:NilClass
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /var/www/apps/msmapp/releases/20140426052038/vendor/plugins/moonshine_dj/lib/moonshine/../../templates/dj.god.erb:11:in `dj'
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /usr/lib/ruby/1.9.1/erb.rb:838:in `eval'
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /usr/lib/ruby/1.9.1/erb.rb:838:in `result'
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /var/www/apps/msmapp/releases/20140426052038/vendor/plugins/moonshine/lib/moonshine/manifest.rb:166:in `template'
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /var/www/apps/msmapp/releases/20140426052038/vendor/plugins/moonshine/lib/moonshine/manifest.rb:170:in `template'
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /var/www/apps/msmapp/releases/20140426052038/vendor/plugins/moonshine_dj/lib/moonshine/dj.rb:11:in `dj'
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /usr/lib/ruby/gems/1.9.1/gems/shadow_puppet-0.7.1/lib/shadow_puppet/manifest.rb:298:in `block in evaluate_recipes'
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /usr/lib/ruby/gems/1.9.1/gems/shadow_puppet-0.7.1/lib/shadow_puppet/manifest.rb:295:in `each'
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /usr/lib/ruby/gems/1.9.1/gems/shadow_puppet-0.7.1/lib/shadow_puppet/manifest.rb:295:in `evaluate_recipes'
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /usr/lib/ruby/gems/1.9.1/gems/shadow_puppet-0.7.1/lib/shadow_puppet/manifest.rb:255:in `execute!'
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /usr/lib/ruby/gems/1.9.1/gems/shadow_puppet-0.7.1/bin/shadow_puppet:140:in `<top (required)>'
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /usr/bin/shadow_puppet:19:in `load'
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod]
 ** [out :: msmapp-prod] /usr/bin/shadow_puppet:19:in `<main>'
 ** [out :: msmapp-prod]
    command finished in 6109ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /var/www/apps/msmapp/releases/20140426052038; true"
    servers: ["msmapp-prod"]
    [msmapp-prod] executing command
    command finished in 178ms
failed: "sh -c 'sudo -p '\\''sudo password: '\\'' RAILS_ROOT=/var/www/apps/msmapp/releases/20140426052038 DEPLOY_STAGE=production RAILS_ENV=production shadow_puppet   /var/www/apps/msmapp/releases/20140426052038/app/manifests/application_manifest.rb'" on msmapp-prod


Line 11 of the dj file mentioned

w.start    = "<%= 'bundle exec' if File.exist?(configuration[:deploy_to] + '/current/Gemfile') %> rake jobs:work --trace"

After running :setup I do not have a current folder, but even if I create one and put the Gemfile in it, it still craps on deploy. I used moonshine for a long time and havent had this issue before.

Any help would be greatly appreciated

Thanks

Kevin Lawver

unread,
Apr 28, 2014, 8:00:28 AM4/28/14
to railsmachin...@googlegroups.com
It looks like configuration[:deploy_to] isn't set.  You should have something in config/moonshine.yml that looks like this:

:deploy_to: /var/www/apps/msmapp

--
You received this message because you are subscribed to the Google Groups "Moonshine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to railsmachine-moon...@googlegroups.com.
To post to this group, send email to railsmachin...@googlegroups.com.
Visit this group at http://groups.google.com/group/railsmachine-moonshine.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages