Skip to content

Instantly share code, notes, and snippets.

@Exellin
Created April 21, 2016 18:26
Show Gist options
  • Save Exellin/4d7973bd5888e34a5b9dc47d21e62045 to your computer and use it in GitHub Desktop.
Save Exellin/4d7973bd5888e34a5b9dc47d21e62045 to your computer and use it in GitHub Desktop.
[2016-04-21T18:08:54+00:00] INFO: AWS OpsWorks instance 2fead744-19ca-46c6-9802-d3e8b5d8e8e3, Agent version 3436-20160418214624
[2016-04-21T18:08:55+00:00] INFO: Starting chef-zero on port 8889 with repository at repository at /opt/aws/opsworks/current
One version per cookbook
data_bags at /var/lib/aws/opsworks/data/data_bags
nodes at /var/lib/aws/opsworks/data/nodes
[2016-04-21T18:08:55+00:00] INFO: Forking chef instance to converge...
[2016-04-21T18:08:55+00:00] INFO: *** Chef 11.10.4 ***
[2016-04-21T18:08:55+00:00] INFO: Chef-client pid: 3943
[2016-04-21T18:08:56+00:00] INFO: Setting the run_list to ["opsworks_custom_cookbooks::load", "opsworks_custom_cookbooks::execute"] from JSON
[2016-04-21T18:08:56+00:00] WARN: Run List override has been provided.
[2016-04-21T18:08:56+00:00] WARN: Original Run List: [recipe[opsworks_custom_cookbooks::load], recipe[opsworks_custom_cookbooks::execute]]
[2016-04-21T18:08:56+00:00] WARN: Overridden Run List: [recipe[opsworks_custom_cookbooks::load], recipe[opsworks_custom_cookbooks::execute]]
[2016-04-21T18:08:56+00:00] INFO: Run List is [recipe[opsworks_custom_cookbooks::load], recipe[opsworks_custom_cookbooks::execute]]
[2016-04-21T18:08:56+00:00] INFO: Run List expands to [opsworks_custom_cookbooks::load, opsworks_custom_cookbooks::execute]
[2016-04-21T18:08:56+00:00] INFO: Starting Chef Run for rails-app1.localdomain
[2016-04-21T18:08:56+00:00] INFO: Running start handlers
[2016-04-21T18:08:56+00:00] INFO: Start handlers complete.
[2016-04-21T18:08:56+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: /reports/nodes/rails-app1.localdomain/runs
[2016-04-21T18:09:03+00:00] INFO: Loading cookbooks [apache2, dependencies, deploy, gem_support, mod_php5_apache2, mysql, nginx, opsworks_agent_monit, opsworks_aws_flow_ruby, opsworks_berkshelf, opsworks_bundler, opsworks_commons, opsworks_custom_cookbooks, opsworks_initial_setup, opsworks_java, opsworks_nodejs, opsworks_postgresql, opsworks_rubygems, packages, passenger_apache2, php, rails, ruby, s3_file, scm_helper, ssh_users, unicorn]
[2016-04-21T18:09:03+00:00] INFO: Not needed with Chef 11.x (x >= 8) anymore.
[2016-04-21T18:09:03+00:00] INFO: Processing directory[/opt/aws/opsworks/current/site-cookbooks] action delete (opsworks_custom_cookbooks::load line 8)
[2016-04-21T18:09:03+00:00] INFO: Processing ruby_block[merge all cookbooks sources] action run (opsworks_custom_cookbooks::load line 16)
[2016-04-21T18:09:03+00:00] INFO: ruby_block[merge all cookbooks sources] called
[2016-04-21T18:09:03+00:00] WARN: Skipping final node save because override_runlist was given
[2016-04-21T18:09:03+00:00] INFO: Chef Run complete in 7.449873152 seconds
[2016-04-21T18:09:03+00:00] INFO: Running report handlers
[2016-04-21T18:09:03+00:00] INFO: Report handlers complete
---
[2016-04-21T18:09:04+00:00] INFO: Starting chef-zero on port 8889 with repository at repository at /opt/aws/opsworks/current
One version per cookbook
data_bags at /var/lib/aws/opsworks/data/data_bags
nodes at /var/lib/aws/opsworks/data/nodes
[2016-04-21T18:09:04+00:00] INFO: Forking chef instance to converge...
[2016-04-21T18:09:04+00:00] INFO: *** Chef 11.10.4 ***
[2016-04-21T18:09:04+00:00] INFO: Chef-client pid: 4082
[2016-04-21T18:09:04+00:00] INFO: Setting the run_list to ["opsworks_custom_cookbooks::load", "opsworks_custom_cookbooks::execute"] from JSON
[2016-04-21T18:09:04+00:00] WARN: Run List override has been provided.
[2016-04-21T18:09:04+00:00] WARN: Original Run List: [recipe[opsworks_custom_cookbooks::load], recipe[opsworks_custom_cookbooks::execute]]
[2016-04-21T18:09:04+00:00] WARN: Overridden Run List: [recipe[deploy::default], recipe[opsworks_stack_state_sync], recipe[deploy::rails], recipe[test_suite], recipe[opsworks_cleanup]]
[2016-04-21T18:09:04+00:00] INFO: Run List is [recipe[deploy::default], recipe[opsworks_stack_state_sync], recipe[deploy::rails], recipe[test_suite], recipe[opsworks_cleanup]]
[2016-04-21T18:09:04+00:00] INFO: Run List expands to [deploy::default, opsworks_stack_state_sync, deploy::rails, test_suite, opsworks_cleanup]
[2016-04-21T18:09:04+00:00] INFO: Starting Chef Run for rails-app1.localdomain
[2016-04-21T18:09:04+00:00] INFO: Running start handlers
[2016-04-21T18:09:04+00:00] INFO: Start handlers complete.
[2016-04-21T18:09:04+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: /reports/nodes/rails-app1.localdomain/runs
[2016-04-21T18:09:11+00:00] INFO: Loading cookbooks [apache2, dependencies, deploy, gem_support, mod_php5_apache2, mysql, nginx, opsworks_agent_monit, opsworks_aws_flow_ruby, opsworks_bundler, opsworks_cleanup, opsworks_commons, opsworks_initial_setup, opsworks_java, opsworks_nodejs, opsworks_postgresql, opsworks_rubygems, opsworks_stack_state_sync, packages, passenger_apache2, php, rails, ruby, s3_file, scm_helper, ssh_users, test_suite, unicorn]
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/agent_version/metadata.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/agent_version/recipes/default.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/agent_version/templates/default/TARGET_VERSION.erb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/agent_version/attributes/default.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/agent_version/attributes/customize.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/metadata.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/monitor-memcached.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/monitor-fd-and-sockets.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/service-gmetad.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/monitor-mysql.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/deploy.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/monitor-nginx.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/bind-mount-data.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/monitor-haproxy.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/configure-client.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/monitor-disk.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/client.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/monitor-apache.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/configure-server.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/monitor-passenger.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/views.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/service.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/recipes/server.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/attributes/default.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:11+00:00] INFO: Removing cookbooks/opsworks_ganglia/attributes/customize.rb from the cache; its cookbook is no longer needed on this client.
[2016-04-21T18:09:12+00:00] INFO: Userspace Ruby version is up-to-date (2.2 patch release 1)
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for bash[Check for bind mounts before creating the deploy directory] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for bash[Check for bind mounts before creating the deploy directory] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for bash[Check for bind mounts before creating the deploy directory] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for service[nginx] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous service[nginx]: /var/lib/aws/opsworks/cache.stage2/cookbooks/nginx/recipes/service.rb:1:in `from_file'
[2016-04-21T18:09:12+00:00] WARN: Current service[nginx]: /var/lib/aws/opsworks/cache.stage2/cookbooks/nginx/recipes/default.rb:72:in `from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for group[nginx] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous group[nginx]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_user.rb:4:in `block in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current group[nginx]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_user.rb:4:in `block in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for user[deploy] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous user[deploy]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_user.rb:6:in `block in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current user[deploy]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_user.rb:6:in `block in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for bash[Check for bind mounts before creating the deploy directory] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for bash[Check for bind mounts before creating the deploy directory] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for bash[Check for bind mounts before creating the deploy directory] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for bash[Check for bind mounts before creating the deploy directory] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current bash[Check for bind mounts before creating the deploy directory]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:9:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for directory[/srv/www/portfolio/shared] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous directory[/srv/www/portfolio/shared]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:27:in `block in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current directory[/srv/www/portfolio/shared]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:27:in `block in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for directory[/srv/www/portfolio/shared/log] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous directory[/srv/www/portfolio/shared/log]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:37:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current directory[/srv/www/portfolio/shared/log]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:37:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for directory[/srv/www/portfolio/shared/config] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous directory[/srv/www/portfolio/shared/config]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:37:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current directory[/srv/www/portfolio/shared/config]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:37:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for directory[/srv/www/portfolio/shared/system] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous directory[/srv/www/portfolio/shared/system]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:37:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current directory[/srv/www/portfolio/shared/system]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:37:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for directory[/srv/www/portfolio/shared/pids] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous directory[/srv/www/portfolio/shared/pids]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:37:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current directory[/srv/www/portfolio/shared/pids]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:37:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for directory[/srv/www/portfolio/shared/scripts] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous directory[/srv/www/portfolio/shared/scripts]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:37:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current directory[/srv/www/portfolio/shared/scripts]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:37:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for directory[/srv/www/portfolio/shared/sockets] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous directory[/srv/www/portfolio/shared/sockets]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:37:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current directory[/srv/www/portfolio/shared/sockets]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:37:in `block (2 levels) in from_file'
[2016-04-21T18:09:12+00:00] WARN: Cloning resource attributes for bash[Enable selinux httpd_var_run_t target for unicorn socket] from prior resource (CHEF-3694)
[2016-04-21T18:09:12+00:00] WARN: Previous bash[Enable selinux httpd_var_run_t target for unicorn socket]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:46:in `block in from_file'
[2016-04-21T18:09:12+00:00] WARN: Current bash[Enable selinux httpd_var_run_t target for unicorn socket]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:46:in `block in from_file'
[2016-04-21T18:09:12+00:00] INFO: Processing remote_file[/tmp/rubygems-2.2.2.tgz] action nothing (opsworks_rubygems::default line 1)
[2016-04-21T18:09:12+00:00] INFO: Processing ruby_block[Fallback for remote_file[/tmp/rubygems-2.2.2.tgz]] action run (opsworks_rubygems::default line 5)
[2016-04-21T18:09:12+00:00] INFO: Processing remote_file[/tmp/rubygems-2.2.2.tgz] action create (opsworks_rubygems::default line 1)
[2016-04-21T18:09:12+00:00] INFO: ruby_block[Fallback for remote_file[/tmp/rubygems-2.2.2.tgz]] called
[2016-04-21T18:09:12+00:00] INFO: Processing execute[tar xfz rubygems-2.2.2.tgz] action run (opsworks_rubygems::default line 15)
[2016-04-21T18:09:12+00:00] INFO: Processing execute[Updating Rubygems to 2.2.2] action run (opsworks_rubygems::default line 23)
[2016-04-21T18:09:12+00:00] INFO: Processing execute[Clean up] action run (opsworks_rubygems::default line 32)
[2016-04-21T18:09:12+00:00] INFO: execute[Clean up] ran successfully
[2016-04-21T18:09:12+00:00] INFO: Processing gem_package[Installing Bundler 1.5.3] action install (opsworks_bundler::default line 2)
[2016-04-21T18:09:12+00:00] INFO: Processing ruby_block[Fallback Bundler install of 1.5.3] action run (opsworks_bundler::default line 12)
true
[2016-04-21T18:09:12+00:00] INFO: Processing group[nginx] action create (deploy::default line 4)
[2016-04-21T18:09:12+00:00] INFO: Processing user[deploy] action create (deploy::default line 6)
[2016-04-21T18:09:12+00:00] INFO: Processing template[/etc/hosts] action create (opsworks_stack_state_sync::hosts line 3)
[2016-04-21T18:09:12+00:00] INFO: Processing template[/etc/motd.opsworks-static] action create (opsworks_stack_state_sync::motd line 8)
[2016-04-21T18:09:12+00:00] INFO: Processing package[mysql-devel] action install (mysql::client_install line 15)
[2016-04-21T18:09:14+00:00] INFO: Processing package[mysql-client] action install (mysql::client_install line 27)
[2016-04-21T18:09:14+00:00] INFO: Processing bash[Check for bind mounts before creating the deploy directory] action run (deploy::rails line 9)
[2016-04-21T18:09:14+00:00] INFO: bash[Check for bind mounts before creating the deploy directory] ran successfully
[2016-04-21T18:09:14+00:00] INFO: Processing bash[Check for bind mounts before creating the deploy directory] action run (deploy::rails line 9)
[2016-04-21T18:09:14+00:00] INFO: bash[Check for bind mounts before creating the deploy directory] ran successfully
[2016-04-21T18:09:14+00:00] INFO: Processing bash[Check for bind mounts before creating the deploy directory] action run (deploy::rails line 9)
[2016-04-21T18:09:14+00:00] INFO: bash[Check for bind mounts before creating the deploy directory] ran successfully
[2016-04-21T18:09:14+00:00] INFO: Processing bash[Check for bind mounts before creating the deploy directory] action run (deploy::rails line 9)
[2016-04-21T18:09:14+00:00] INFO: bash[Check for bind mounts before creating the deploy directory] ran successfully
[2016-04-21T18:09:14+00:00] INFO: Processing directory[/srv/www/portfolio/shared] action create (deploy::rails line 27)
[2016-04-21T18:09:14+00:00] INFO: Processing directory[/srv/www/portfolio/shared/log] action create (deploy::rails line 37)
[2016-04-21T18:09:14+00:00] INFO: Processing directory[/srv/www/portfolio/shared/config] action create (deploy::rails line 37)
[2016-04-21T18:09:14+00:00] INFO: Processing directory[/srv/www/portfolio/shared/system] action create (deploy::rails line 37)
[2016-04-21T18:09:14+00:00] INFO: Processing directory[/srv/www/portfolio/shared/pids] action create (deploy::rails line 37)
[2016-04-21T18:09:14+00:00] INFO: Processing directory[/srv/www/portfolio/shared/scripts] action create (deploy::rails line 37)
[2016-04-21T18:09:14+00:00] INFO: Processing directory[/srv/www/portfolio/shared/sockets] action create (deploy::rails line 37)
[2016-04-21T18:09:14+00:00] INFO: Processing bash[Enable selinux httpd_var_run_t target for unicorn socket] action run (deploy::rails line 46)
[2016-04-21T18:09:14+00:00] INFO: Processing package[nginx] action install (nginx::default line 21)
[2016-04-21T18:09:14+00:00] INFO: Processing directory[/etc/nginx] action create (nginx::default line 26)
[2016-04-21T18:09:14+00:00] INFO: Processing directory[/var/log/nginx] action create (nginx::default line 32)
[2016-04-21T18:09:14+00:00] INFO: Processing directory[/etc/nginx/sites-available] action create (nginx::default line 39)
[2016-04-21T18:09:14+00:00] INFO: Processing directory[/etc/nginx/sites-enabled] action create (nginx::default line 39)
[2016-04-21T18:09:14+00:00] INFO: Processing directory[/etc/nginx/conf.d] action create (nginx::default line 39)
[2016-04-21T18:09:14+00:00] INFO: Processing template[/usr/sbin/nxensite] action create (nginx::default line 47)
[2016-04-21T18:09:14+00:00] INFO: Processing template[/usr/sbin/nxdissite] action create (nginx::default line 47)
[2016-04-21T18:09:14+00:00] INFO: Processing template[nginx.conf] action create (nginx::default line 55)
[2016-04-21T18:09:14+00:00] INFO: Processing template[/etc/nginx/sites-available/default] action create (nginx::default line 63)
[2016-04-21T18:09:14+00:00] INFO: Processing service[nginx] action nothing (nginx::service line 1)
[2016-04-21T18:09:14+00:00] INFO: Processing service[nginx] action enable (nginx::default line 72)
[2016-04-21T18:09:14+00:00] INFO: Processing service[nginx] action start (nginx::default line 72)
[2016-04-21T18:09:14+00:00] INFO: Processing ruby_block[ensure only our unicorn version is installed by deinstalling any other version] action run (unicorn::default line 1)
[2016-04-21T18:09:15+00:00] INFO: Skipping installation of version 1.6.4 of Rubygem rack: already installed
[2016-04-21T18:09:15+00:00] INFO: Skipping installation of version 4.7.0 of Rubygem unicorn: already installed
[2016-04-21T18:09:15+00:00] INFO: ruby_block[ensure only our unicorn version is installed by deinstalling any other version] called
[2016-04-21T18:09:15+00:00] INFO: Processing group[nginx] action create (unicorn::rails line 4)
[2016-04-21T18:09:15+00:00] INFO: Processing user[deploy] action create (unicorn::rails line 6)
[2016-04-21T18:09:15+00:00] INFO: Processing bash[Check for bind mounts before creating the deploy directory] action run (unicorn::rails line 9)
[2016-04-21T18:09:15+00:00] INFO: bash[Check for bind mounts before creating the deploy directory] ran successfully
[2016-04-21T18:09:15+00:00] INFO: Processing bash[Check for bind mounts before creating the deploy directory] action run (unicorn::rails line 9)
[2016-04-21T18:09:15+00:00] INFO: bash[Check for bind mounts before creating the deploy directory] ran successfully
[2016-04-21T18:09:15+00:00] INFO: Processing bash[Check for bind mounts before creating the deploy directory] action run (unicorn::rails line 9)
[2016-04-21T18:09:15+00:00] INFO: bash[Check for bind mounts before creating the deploy directory] ran successfully
[2016-04-21T18:09:15+00:00] INFO: Processing bash[Check for bind mounts before creating the deploy directory] action run (unicorn::rails line 9)
[2016-04-21T18:09:15+00:00] INFO: bash[Check for bind mounts before creating the deploy directory] ran successfully
[2016-04-21T18:09:15+00:00] INFO: Processing directory[/srv/www/portfolio/shared] action create (unicorn::rails line 27)
[2016-04-21T18:09:15+00:00] INFO: Processing directory[/srv/www/portfolio/shared/log] action create (unicorn::rails line 37)
[2016-04-21T18:09:15+00:00] INFO: Processing directory[/srv/www/portfolio/shared/config] action create (unicorn::rails line 37)
[2016-04-21T18:09:15+00:00] INFO: Processing directory[/srv/www/portfolio/shared/system] action create (unicorn::rails line 37)
[2016-04-21T18:09:15+00:00] INFO: Processing directory[/srv/www/portfolio/shared/pids] action create (unicorn::rails line 37)
[2016-04-21T18:09:15+00:00] INFO: Processing directory[/srv/www/portfolio/shared/scripts] action create (unicorn::rails line 37)
[2016-04-21T18:09:15+00:00] INFO: Processing directory[/srv/www/portfolio/shared/sockets] action create (unicorn::rails line 37)
[2016-04-21T18:09:15+00:00] INFO: Processing bash[Enable selinux httpd_var_run_t target for unicorn socket] action run (unicorn::rails line 46)
[2016-04-21T18:09:15+00:00] INFO: Processing template[/srv/www/portfolio/shared/scripts/unicorn] action create (unicorn::rails line 25)
[2016-04-21T18:09:15+00:00] INFO: Processing service[unicorn_portfolio] action nothing (unicorn::rails line 33)
[2016-04-21T18:09:15+00:00] INFO: Processing template[/srv/www/portfolio/shared/config/unicorn.conf] action create (unicorn::rails line 41)
[2016-04-21T18:09:15+00:00] INFO: Processing template[/srv/www/portfolio/shared/config/memcached.yml] action create (deploy::rails line 8)
[2016-04-21T18:09:15+00:00] INFO: Processing execute[symlinking subdir mount if necessary] action run (deploy::rails line 21)
[2016-04-21T18:09:15+00:00] INFO: Processing directory[/srv/www/portfolio] action create (deploy::rails line 5)
[2016-04-21T18:09:15+00:00] INFO: Processing package[git] action install (deploy::rails line 11)
[2016-04-21T18:09:15+00:00] INFO: Processing directory[/home/deploy/.ssh] action create (deploy::rails line 8)
[2016-04-21T18:09:15+00:00] INFO: Processing file[/home/deploy/.ssh/config] action touch (deploy::rails line 16)
[2016-04-21T18:09:15+00:00] INFO: file[/home/deploy/.ssh/config] updated atime and mtime to 2016-04-21 18:09:15 +0000
[2016-04-21T18:09:15+00:00] INFO: Processing execute[echo 'StrictHostKeyChecking no' > /home/deploy/.ssh/config] action run (deploy::rails line 23)
[2016-04-21T18:09:15+00:00] INFO: Processing template[/home/deploy/.ssh/id_dsa] action create (deploy::rails line 27)
[2016-04-21T18:09:15+00:00] INFO: Processing directory[/srv/www/portfolio/shared/cached-copy] action delete (deploy::rails line 48)
[2016-04-21T18:09:15+00:00] INFO: directory[/srv/www/portfolio/shared/cached-copy] deleted /srv/www/portfolio/shared/cached-copy recursively
[2016-04-21T18:09:15+00:00] INFO: Processing ruby_block[change HOME to /home/deploy for source checkout] action run (deploy::rails line 56)
[2016-04-21T18:09:15+00:00] INFO: ruby_block[change HOME to /home/deploy for source checkout] called
[2016-04-21T18:09:15+00:00] INFO: Processing deploy[/srv/www/portfolio] action deploy (deploy::rails line 65)
[2016-04-21T18:09:15+00:00] INFO: deploy[/srv/www/portfolio] cloning repo https://github.com/Exellin/portfolio.git to /srv/www/portfolio/shared/cached-copy
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] checked out branch: HEAD onto: deploy reference: 2c1c18d48a2cef87d7da0d6ee07285e2896c43e1
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] synchronizing git submodules
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] enabling git submodules
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] set user to deploy
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] set group to nginx
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] copied the cached checkout to /srv/www/portfolio/releases/20160421180915
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] set user to deploy
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] set group to nginx
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] running callback before_migrate
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] created directories before symlinking: tmp,public,config
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] linked shared paths into current release: system => public/system, pids => tmp/pids, log => log
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] made pre-migration symlinks
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] set user to deploy
[2016-04-21T18:09:16+00:00] INFO: deploy[/srv/www/portfolio] set group to nginx
[2016-04-21T18:09:16+00:00] INFO: Gemfile detected. Running bundle install.
[2016-04-21T18:09:16+00:00] INFO: sudo su - deploy -c 'cd /srv/www/portfolio/releases/20160421180915 && /usr/local/bin/bundle install --path /home/deploy/.bundler/portfolio --without=test development'
[2016-04-21T18:09:17+00:00] INFO:
Using rake (11.1.2)
Using i18n (0.7.0)
Using json (1.8.3)
Using minitest (5.8.4)
Using thread_safe (0.3.5)
Using tzinfo (1.2.2)
Using activesupport (4.2.4)
Using builder (3.2.2)
Using erubis (2.7.0)
Using mini_portile2 (2.0.0)
Using nokogiri (1.6.7.2)
Using rails-deprecated_sanitizer (1.0.3)
Using rails-dom-testing (1.0.7)
Using loofah (2.0.3)
Using rails-html-sanitizer (1.0.3)
Using actionview (4.2.4)
Using rack (1.6.4)
Using rack-test (0.6.3)
Using actionpack (4.2.4)
Using globalid (0.3.6)
Using activejob (4.2.4)
Using mime-types-data (3.2016.0221)
Using mime-types (3.0)
Using mail (2.6.4)
Using actionmailer (4.2.4)
Using activemodel (4.2.4)
Using arel (6.0.3)
Using activerecord (4.2.4)
Using ast (2.2.0)
Using coffee-script-source (1.10.0)
Using execjs (2.6.0)
Using coffee-script (2.4.1)
Using thor (0.19.1)
Using railties (4.2.4)
Using coffee-rails (4.1.1)
Using concurrent-ruby (1.0.1)
Using multi_json (1.11.2)
Using jbuilder (2.4.1)
Using jquery-rails (4.1.1)
Using kgio (2.10.0)
Using libv8 (3.16.14.13)
Using mysql2 (0.4.3)
Using parser (2.3.0.7)
Using powerpack (0.1.1)
Using bundler (1.5.3)
Using sprockets (3.6.0)
Using sprockets-rails (3.0.4)
Using rails (4.2.4)
Using rainbow (2.1.0)
Using raindrops (0.16.0)
Using rdoc (4.2.2)
Using ref (2.0.0)
Using ruby-progressbar (1.7.5)
Using unicode-display_width (1.0.3)
Using rubocop (0.39.0)
Using sass (3.4.22)
Using tilt (2.0.2)
Using sass-rails (5.0.4)
Using sdoc (0.4.1)
Using therubyracer (0.12.2)
Using turbolinks (2.5.3)
Using uglifier (3.0.0)
Using unicorn (5.1.0)
Your bundle is complete!
Gems in the groups test and development were not installed.
It was installed into /home/deploy/.bundler/portfolio
[2016-04-21T18:09:17+00:00] INFO: No database adapter specified for portfolio, guessing
[2016-04-21T18:09:17+00:00] INFO: Looks like portfolio uses mysql2 in its Gemfile
[2016-04-21T18:09:17+00:00] INFO: Processing template[/srv/www/portfolio/shared/config/database.yml] action create (/var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy.rb line 115)
[2016-04-21T18:09:17+00:00] INFO: deploy[/srv/www/portfolio] queueing checkdeploy hook /srv/www/portfolio/releases/20160421180915/deploy/before_migrate.rb
[2016-04-21T18:09:17+00:00] INFO: Processing template[/srv/www/portfolio/shared/config/database.yml] action create (/var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy.rb line 115)
[2016-04-21T18:09:17+00:00] INFO: deploy[/srv/www/portfolio] made pre-migration symlinks
[2016-04-21T18:09:17+00:00] INFO: deploy[/srv/www/portfolio] set user to deploy
[2016-04-21T18:09:17+00:00] INFO: deploy[/srv/www/portfolio] set group to nginx
[2016-04-21T18:09:17+00:00] INFO: deploy[/srv/www/portfolio] migrating deploy
================================================================================
Error executing action `deploy` on resource 'deploy[/srv/www/portfolio]'
================================================================================
Chef::Exceptions::Exec
----------------------
if [ -f Gemfile ]; then echo 'OpsWorks: Gemfile found - running migration with bundle exec' && /usr/local/bin/bundle exec /usr/local/bin/rake db:migrate; else echo 'OpsWorks: no Gemfile - running plain migrations' && /usr/local/bin/rake db:migrate; fi returned 1, expected 0
Cookbook Trace:
---------------
/var/lib/aws/opsworks/cache.stage2/cookbooks/opsworks_commons/libraries/monkey_patch_deploy_provider.rb:45:in `block in migrate'
/var/lib/aws/opsworks/cache.stage2/cookbooks/opsworks_commons/libraries/monkey_patch_deploy_provider.rb:39:in `migrate'
Resource Declaration:
---------------------
# In /var/lib/aws/opsworks/cache.stage2/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: purge_before_symlink(deploy[:purge_before_symlink]) unless deploy[:purge_before_symlink].nil?
76: create_dirs_before_symlink(deploy[:create_dirs_before_symlink])
77: symlink_before_migrate(deploy[:symlink_before_migrate])
78: symlinks(deploy[:symlinks]) unless deploy[:symlinks].nil?
79: action deploy[:action]
80:
81: if deploy[:application_type] == 'rails' && node[:opsworks][:instance][:layers].include?('rails-app')
82: restart_command "sleep #{deploy[:sleep_before_restart]} && #{node[:opsworks][:rails_stack][:restart_command]}"
83: end
84:
Compiled Resource:
------------------
# Declared in /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy.rb:65:in `block in from_file'
deploy("/srv/www/portfolio") do
params {:deploy_data=>{"deploy_to"=>"/srv/www/portfolio", "chef_provider"=>"Timestamped", "keep_releases"=>5, "current_path"=>"/srv/www/portfolio/current", "document_root"=>"public", "ignore_bundler_groups"=>["test", "development"], "absolute_document_root"=>"/srv/www/portfolio/current/public/", "rake"=>"/usr/local/bin/rake", "migrate"=>true, "migrate_command"=>"if [ -f Gemfile ]; then echo 'OpsWorks: Gemfile found - running migration with bundle exec' && /usr/local/bin/bundle exec /usr/local/bin/rake db:migrate; else echo 'OpsWorks: no Gemfile - running plain migrations' && /usr/local/bin/rake db:migrate; fi", "rails_env"=>"production", "action"=>"deploy", "user"=>"deploy", "group"=>"nginx", "shell"=>"/bin/bash", "home"=>"/home/deploy", "sleep_before_restart"=>0, "stack"=>{"needs_reload"=>true}, "enable_submodules"=>true, "shallow_clone"=>false, "delete_cached_copy"=>true, "purge_before_symlink"=>["log", "tmp/pids", "public/system"], "create_dirs_before_symlink"=>["tmp", "public", "config"], "symlink_before_migrate"=>{"config/database.yml"=>"config/database.yml", "config/memcached.yml"=>"config/memcached.yml"}, "symlinks"=>{"system"=>"public/system", "pids"=>"tmp/pids", "log"=>"log"}, "environment"=>{"RAILS_ENV"=>"production", "RUBYOPT"=>"", "RACK_ENV"=>"production", "HOME"=>"/home/deploy", "SECRET_KEY_BASE"=>"my secret key"}, "environment_variables"=>{"SECRET_KEY_BASE"=>"my secret key"}, "ssl_support"=>false, "auto_npm_install_on_deploy"=>true, "nodejs"=>{"restart_command"=>"monit restart node_web_app_portfolio", "stop_command"=>"monit stop node_web_app_portfolio", "port"=>80}, "application"=>"portfolio", "application_type"=>"rails", "auto_bundle_on_deploy"=>true, "deploying_user"=>"arn:aws:iam::538535506132:root", "domains"=>["portfolio"], "mounted_at"=>nil, "restart_command"=>nil, "ssl_certificate"=>nil, "ssl_certificate_key"=>nil, "ssl_certificate_ca"=>nil, "scm"=>{"scm_type"=>"git", "repository"=>"https://github.com/Exellin/portfolio.git", "revision"=>nil, "ssh_key"=>nil, "user"=>nil, "password"=>nil}, "database"=>{"host"=>"172.31.38.39", "database"=>"portfolio", "port"=>3306, "username"=>"root", "password"=>"my password", "reconnect"=>true, "data_source_provider"=>"stack", "type"=>"mysql"}, "memcached"=>{"host"=>nil, "port"=>11211}}, :app=>"portfolio", :name=>nil}
provider Chef::Provider::Deploy::Timestamped
action [:deploy]
updated true
updated_by_last_action true
retries 0
retry_delay 2
deploy_to "/srv/www/portfolio"
environment {"RAILS_ENV"=>"production", "RUBYOPT"=>"", "RACK_ENV"=>"production", "HOME"=>"/home/deploy", "SECRET_KEY_BASE"=>"my secret key", "LC_ALL"=>"C"}
repository_cache "cached-copy"
purge_before_symlink ["log", "tmp/pids", "public/system"]
create_dirs_before_symlink ["tmp", "public", "config"]
symlink_before_migrate {"config/database.yml"=>"config/database.yml", "config/memcached.yml"=>"config/memcached.yml"}
symlinks {"system"=>"public/system", "pids"=>"tmp/pids", "log"=>"log"}
revision "HEAD"
migrate true
remote "origin"
enable_submodules true
scm_provider Chef::Provider::Git
keep_releases 5
enable_checkout true
checkout_branch "deploy"
cookbook_name "deploy"
recipe_name "rails"
repo "https://github.com/Exellin/portfolio.git"
user "deploy"
group "nginx"
migration_command "if [ -f Gemfile ]; then echo 'OpsWorks: Gemfile found - running migration with bundle exec' && /usr/local/bin/bundle exec /usr/local/bin/rake db:migrate; else echo 'OpsWorks: no Gemfile - running plain migrations' && /usr/local/bin/rake db:migrate; fi"
restart_command "sleep 0 && ../../shared/scripts/unicorn restart"
before_migrate #<Proc:0x0055d3ecf0fc38@/var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy.rb:100>
shared_path "/srv/www/portfolio/shared"
destination "/srv/www/portfolio/shared/cached-copy"
current_path "/srv/www/portfolio/current"
end
[2016-04-21T18:09:19+00:00] INFO: Running queued delayed notifications before re-raising exception
[2016-04-21T18:09:19+00:00] ERROR: Running exception handlers
[2016-04-21T18:09:19+00:00] ERROR: Exception handlers complete
[2016-04-21T18:09:19+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage2/chef-stacktrace.out
[2016-04-21T18:09:19+00:00] ERROR: deploy[/srv/www/portfolio] (deploy::rails line 65) had an error: Chef::Exceptions::Exec: if [ -f Gemfile ]; then echo 'OpsWorks: Gemfile found - running migration with bundle exec' && /usr/local/bin/bundle exec /usr/local/bin/rake db:migrate; else echo 'OpsWorks: no Gemfile - running plain migrations' && /usr/local/bin/rake db:migrate; fi returned 1, expected 0
[2016-04-21T18:09:19+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment