Skip to content

Instantly share code, notes, and snippets.

@tarky
Created November 12, 2014 16:58
Show Gist options
  • Save tarky/bdde0edd4276d110d7b1 to your computer and use it in GitHub Desktop.
Save tarky/bdde0edd4276d110d7b1 to your computer and use it in GitHub Desktop.
Error when "auto_bundle_on_deploy": false
================================================================================
Error executing action `deploy` on resource 'deploy[/srv/www/railspostgres]'
================================================================================
Chef::Exceptions::Exec
----------------------
rake db:migrate returned 1, expected 0
Resource Declaration:
---------------------
# In /var/lib/aws/opsworks/cache/cookbooks/deploy/definitions/opsworks_deploy.rb
65: deploy deploy[:deploy_to] do
66: provider Chef::Provider::Deploy.const_get(deploy[:chef_provider])
67: keep_releases deploy[:keep_releases]
68: repository deploy[:scm][:repository]
69: user deploy[:user]
70: group deploy[:group]
71: revision deploy[:scm][:revision]
72: migrate deploy[:migrate]
73: migration_command deploy[:migrate_command]
74: environment deploy[:environment].to_hash
75: create_dirs_before_symlink( deploy[:create_dirs_before_symlink] )
76: symlink_before_migrate( deploy[:symlink_before_migrate] )
77: action deploy[:action]
78:
79: if deploy[:application_type] == 'rails'
80: restart_command "sleep #{deploy[:sleep_before_restart]} && #{node[:opsworks][:rails_stack][:restart_command]}"
81: end
82:
Compiled Resource:
------------------
# Declared in /var/lib/aws/opsworks/cache/cookbooks/deploy/definitions/opsworks_deploy.rb:65:in `block in from_file'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment