Skip to content

Instantly share code, notes, and snippets.

@tarky
Created June 23, 2015 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarky/ed97e3ded412a854c73d to your computer and use it in GitHub Desktop.
Save tarky/ed97e3ded412a854c73d to your computer and use it in GitHub Desktop.
Error when deploy on OpsWorks
[2015-06-23T08:08:36+00:00] INFO: Report handlers complete
---
[2015-06-23T08:08:38+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
[2015-06-23T08:08:38+00:00] INFO: Forking chef instance to converge...
[2015-06-23T08:08:38+00:00] INFO: *** Chef 11.10.4 ***
[2015-06-23T08:08:38+00:00] INFO: Chef-client pid: 24748
[2015-06-23T08:08:39+00:00] INFO: Setting the run_list to ["opsworks_custom_cookbooks::load", "opsworks_custom_cookbooks::execute"] from JSON
[2015-06-23T08:08:39+00:00] WARN: Run List override has been provided.
[2015-06-23T08:08:39+00:00] WARN: Original Run List: [recipe[opsworks_custom_cookbooks::load], recipe[opsworks_custom_cookbooks::execute]]
[2015-06-23T08:08:39+00:00] WARN: Overridden Run List: [recipe[deploy::default], recipe[opsworks_stack_state_sync], recipe[deploy::rails], recipe[deploy::mysql], recipe[test_suite], recipe[opsworks_cleanup]]
[2015-06-23T08:08:39+00:00] INFO: Run List is [recipe[deploy::default], recipe[opsworks_stack_state_sync], recipe[deploy::rails], recipe[deploy::mysql], recipe[test_suite], recipe[opsworks_cleanup]]
[2015-06-23T08:08:39+00:00] INFO: Run List expands to [deploy::default, opsworks_stack_state_sync, deploy::rails, deploy::mysql, test_suite, opsworks_cleanup]
[2015-06-23T08:08:39+00:00] INFO: Starting Chef Run for rails-app1.localdomain
[2015-06-23T08:08:39+00:00] INFO: Running start handlers
[2015-06-23T08:08:39+00:00] INFO: Start handlers complete.
[2015-06-23T08:08:39+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: /reports/nodes/rails-app1.localdomain/runs
[2015-06-23T08:08:45+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_rubygems, opsworks_stack_state_sync, packages, passenger_apache2, php, rails, ruby, scm_helper, ssh_users, test_suite, unicorn]
[2015-06-23T08:08:46+00:00] INFO: Userspace Ruby version is up-to-date (2.1 patch release 1)
[2015-06-23T08:08:46+00:00] WARN: Cloning resource attributes for service[nginx] from prior resource (CHEF-3694)
[2015-06-23T08:08:46+00:00] WARN: Previous service[nginx]: /var/lib/aws/opsworks/cache.stage2/cookbooks/nginx/recipes/service.rb:1:in `from_file'
[2015-06-23T08:08:46+00:00] WARN: Current service[nginx]: /var/lib/aws/opsworks/cache.stage2/cookbooks/nginx/recipes/default.rb:69:in `from_file'
[2015-06-23T08:08:46+00:00] WARN: Cloning resource attributes for group[www-data] from prior resource (CHEF-3694)
[2015-06-23T08:08:46+00:00] WARN: Previous group[www-data]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_user.rb:4:in `block in from_file'
[2015-06-23T08:08:46+00:00] WARN: Current group[www-data]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_user.rb:4:in `block in from_file'
[2015-06-23T08:08:46+00:00] WARN: Cloning resource attributes for user[deploy] from prior resource (CHEF-3694)
[2015-06-23T08:08:46+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'
[2015-06-23T08:08:46+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'
[2015-06-23T08:08:46+00:00] WARN: Cloning resource attributes for directory[/srv/www/inq/shared] from prior resource (CHEF-3694)
[2015-06-23T08:08:46+00:00] WARN: Previous directory[/srv/www/inq/shared]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:3:in `block in from_file'
[2015-06-23T08:08:46+00:00] WARN: Current directory[/srv/www/inq/shared]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:3:in `block in from_file'
[2015-06-23T08:08:46+00:00] WARN: Cloning resource attributes for directory[/srv/www/inq/shared/log] from prior resource (CHEF-3694)
[2015-06-23T08:08:46+00:00] WARN: Previous directory[/srv/www/inq/shared/log]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:13:in `block (2 levels) in from_file'
[2015-06-23T08:08:46+00:00] WARN: Current directory[/srv/www/inq/shared/log]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:13:in `block (2 levels) in from_file'
[2015-06-23T08:08:46+00:00] WARN: Cloning resource attributes for directory[/srv/www/inq/shared/config] from prior resource (CHEF-3694)
[2015-06-23T08:08:46+00:00] WARN: Previous directory[/srv/www/inq/shared/config]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:13:in `block (2 levels) in from_file'
[2015-06-23T08:08:46+00:00] WARN: Current directory[/srv/www/inq/shared/config]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:13:in `block (2 levels) in from_file'
[2015-06-23T08:08:46+00:00] WARN: Cloning resource attributes for directory[/srv/www/inq/shared/system] from prior resource (CHEF-3694)
[2015-06-23T08:08:46+00:00] WARN: Previous directory[/srv/www/inq/shared/system]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:13:in `block (2 levels) in from_file'
[2015-06-23T08:08:46+00:00] WARN: Current directory[/srv/www/inq/shared/system]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:13:in `block (2 levels) in from_file'
[2015-06-23T08:08:46+00:00] WARN: Cloning resource attributes for directory[/srv/www/inq/shared/pids] from prior resource (CHEF-3694)
[2015-06-23T08:08:46+00:00] WARN: Previous directory[/srv/www/inq/shared/pids]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:13:in `block (2 levels) in from_file'
[2015-06-23T08:08:46+00:00] WARN: Current directory[/srv/www/inq/shared/pids]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:13:in `block (2 levels) in from_file'
[2015-06-23T08:08:46+00:00] WARN: Cloning resource attributes for directory[/srv/www/inq/shared/scripts] from prior resource (CHEF-3694)
[2015-06-23T08:08:46+00:00] WARN: Previous directory[/srv/www/inq/shared/scripts]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:13:in `block (2 levels) in from_file'
[2015-06-23T08:08:46+00:00] WARN: Current directory[/srv/www/inq/shared/scripts]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:13:in `block (2 levels) in from_file'
[2015-06-23T08:08:46+00:00] WARN: Cloning resource attributes for directory[/srv/www/inq/shared/sockets] from prior resource (CHEF-3694)
[2015-06-23T08:08:46+00:00] WARN: Previous directory[/srv/www/inq/shared/sockets]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:13:in `block (2 levels) in from_file'
[2015-06-23T08:08:46+00:00] WARN: Current directory[/srv/www/inq/shared/sockets]: /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy_dir.rb:13:in `block (2 levels) in from_file'
[2015-06-23T08:08:46+00:00] INFO: Processing remote_file[/tmp/rubygems-2.2.2.tgz] action create (opsworks_rubygems::default line 1)
[2015-06-23T08:08:46+00:00] INFO: Processing execute[tar xfz rubygems-2.2.2.tgz] action run (opsworks_rubygems::default line 8)
[2015-06-23T08:08:46+00:00] INFO: Processing execute[Updating Rubygems to 2.2.2] action run (opsworks_rubygems::default line 16)
[2015-06-23T08:08:46+00:00] INFO: Processing execute[Clean up] action run (opsworks_rubygems::default line 25)
[2015-06-23T08:08:46+00:00] INFO: execute[Clean up] ran successfully
[2015-06-23T08:08:46+00:00] INFO: Processing gem_package[Installing Bundler 1.5.3] action install (opsworks_bundler::default line 2)
[2015-06-23T08:08:46+00:00] INFO: Processing ruby_block[Fallback Bundler install of 1.5.3] action run (opsworks_bundler::default line 12)
true
[2015-06-23T08:08:46+00:00] INFO: Processing group[www-data] action create (deploy::default line 4)
[2015-06-23T08:08:46+00:00] INFO: Processing user[deploy] action create (deploy::default line 6)
[2015-06-23T08:08:46+00:00] INFO: Processing template[/etc/hosts] action create (opsworks_stack_state_sync::hosts line 3)
[2015-06-23T08:08:46+00:00] INFO: Processing template[/etc/motd.opsworks-static] action create (opsworks_stack_state_sync::motd line 1)
[2015-06-23T08:08:46+00:00] INFO: Processing directory[/srv/www/inq/shared] action create (deploy::rails line 3)
[2015-06-23T08:08:46+00:00] INFO: Processing directory[/srv/www/inq/shared/log] action create (deploy::rails line 13)
[2015-06-23T08:08:46+00:00] INFO: Processing directory[/srv/www/inq/shared/config] action create (deploy::rails line 13)
[2015-06-23T08:08:46+00:00] INFO: Processing directory[/srv/www/inq/shared/system] action create (deploy::rails line 13)
[2015-06-23T08:08:46+00:00] INFO: Processing directory[/srv/www/inq/shared/pids] action create (deploy::rails line 13)
[2015-06-23T08:08:46+00:00] INFO: Processing directory[/srv/www/inq/shared/scripts] action create (deploy::rails line 13)
[2015-06-23T08:08:46+00:00] INFO: Processing directory[/srv/www/inq/shared/sockets] action create (deploy::rails line 13)
[2015-06-23T08:08:46+00:00] INFO: Processing package[nginx] action install (nginx::default line 21)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/etc/nginx] action create (nginx::default line 23)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/var/log/nginx] action create (nginx::default line 29)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/etc/nginx/sites-available] action create (nginx::default line 36)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/etc/nginx/sites-enabled] action create (nginx::default line 36)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/etc/nginx/conf.d] action create (nginx::default line 36)
[2015-06-23T08:08:48+00:00] INFO: Processing template[/usr/sbin/nxensite] action create (nginx::default line 44)
[2015-06-23T08:08:48+00:00] INFO: Processing template[/usr/sbin/nxdissite] action create (nginx::default line 44)
[2015-06-23T08:08:48+00:00] INFO: Processing template[nginx.conf] action create (nginx::default line 52)
[2015-06-23T08:08:48+00:00] INFO: Processing template[/etc/nginx/sites-available/default] action create (nginx::default line 60)
[2015-06-23T08:08:48+00:00] INFO: Processing service[nginx] action nothing (nginx::service line 1)
[2015-06-23T08:08:48+00:00] INFO: Processing service[nginx] action enable (nginx::default line 69)
[2015-06-23T08:08:48+00:00] INFO: Processing service[nginx] action start (nginx::default line 69)
[2015-06-23T08:08:48+00:00] INFO: Processing ruby_block[ensure only our unicorn version is installed by deinstalling any other version] action run (unicorn::default line 1)
[2015-06-23T08:08:48+00:00] INFO: Skipping installation of version 4.7.0 of Rubygem unicorn: already installed
[2015-06-23T08:08:48+00:00] INFO: ruby_block[ensure only our unicorn version is installed by deinstalling any other version] called
[2015-06-23T08:08:48+00:00] INFO: Processing group[www-data] action create (unicorn::rails line 4)
[2015-06-23T08:08:48+00:00] INFO: Processing user[deploy] action create (unicorn::rails line 6)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/srv/www/inq/shared] action create (unicorn::rails line 3)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/srv/www/inq/shared/log] action create (unicorn::rails line 13)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/srv/www/inq/shared/config] action create (unicorn::rails line 13)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/srv/www/inq/shared/system] action create (unicorn::rails line 13)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/srv/www/inq/shared/pids] action create (unicorn::rails line 13)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/srv/www/inq/shared/scripts] action create (unicorn::rails line 13)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/srv/www/inq/shared/sockets] action create (unicorn::rails line 13)
[2015-06-23T08:08:48+00:00] INFO: Processing template[/srv/www/inq/shared/scripts/unicorn] action create (unicorn::rails line 25)
[2015-06-23T08:08:48+00:00] INFO: Processing service[unicorn_inq] action nothing (unicorn::rails line 33)
[2015-06-23T08:08:48+00:00] INFO: Processing template[/srv/www/inq/shared/config/unicorn.conf] action create (unicorn::rails line 41)
[2015-06-23T08:08:48+00:00] INFO: Processing template[/srv/www/inq/shared/config/memcached.yml] action create (deploy::rails line 8)
[2015-06-23T08:08:48+00:00] INFO: Processing execute[symlinking subdir mount if necessary] action run (deploy::rails line 21)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/srv/www/inq] action create (deploy::rails line 5)
[2015-06-23T08:08:48+00:00] INFO: Processing package[git-core] action install (deploy::rails line 9)
[2015-06-23T08:08:48+00:00] INFO: Processing directory[/home/deploy/.ssh] action create (deploy::rails line 8)
[2015-06-23T08:08:48+00:00] INFO: Processing file[/home/deploy/.ssh/config] action touch (deploy::rails line 16)
[2015-06-23T08:08:48+00:00] INFO: file[/home/deploy/.ssh/config] updated atime and mtime to 2015-06-23 08:08:48 +0000
[2015-06-23T08:08:48+00:00] INFO: Processing execute[echo 'StrictHostKeyChecking no' > /home/deploy/.ssh/config] action run (deploy::rails line 23)
[2015-06-23T08:08:49+00:00] INFO: Processing template[/home/deploy/.ssh/id_dsa] action create (deploy::rails line 27)
[2015-06-23T08:08:49+00:00] INFO: Processing directory[/srv/www/inq/shared/cached-copy] action delete (deploy::rails line 48)
[2015-06-23T08:08:49+00:00] INFO: directory[/srv/www/inq/shared/cached-copy] deleted /srv/www/inq/shared/cached-copy recursively
[2015-06-23T08:08:49+00:00] INFO: Processing ruby_block[change HOME to /home/deploy for source checkout] action run (deploy::rails line 56)
[2015-06-23T08:08:49+00:00] INFO: ruby_block[change HOME to /home/deploy for source checkout] called
[2015-06-23T08:08:49+00:00] INFO: Processing deploy[/srv/www/inq] action deploy (deploy::rails line 65)
[2015-06-23T08:08:51+00:00] INFO: deploy[/srv/www/inq] cloning repo git@github.com:tarky/inq_rails to /srv/www/inq/shared/cached-copy
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] checked out branch: HEAD onto: deploy reference: 8c9338f2d155346dcce2c366bb71ef86f40c5239
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] synchronizing git submodules
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] enabling git submodules
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] set user to deploy
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] set group to www-data
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] copied the cached checkout to /srv/www/inq/releases/20150623080849
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] set user to deploy
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] set group to www-data
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] running callback before_migrate
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] created directories before symlinking: tmp,public,config
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] linked shared paths into current release: system => public/system, pids => tmp/pids, log => log
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] made pre-migration symlinks
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] set user to deploy
[2015-06-23T08:08:55+00:00] INFO: deploy[/srv/www/inq] set group to www-data
[2015-06-23T08:08:55+00:00] INFO: Gemfile detected. Running bundle install.
[2015-06-23T08:08:55+00:00] INFO: sudo su - deploy -c 'cd /srv/www/inq/releases/20150623080849 && /usr/local/bin/bundle install --path /home/deploy/.bundler/inq --without=test development'
[2015-06-23T08:08:57+00:00] INFO:
Using rake (10.4.2)
Using i18n (0.7.0)
Using json (1.8.2)
Using minitest (5.5.1)
Using thread_safe (0.3.4)
Using tzinfo (1.2.2)
Using activesupport (4.2.0)
Using builder (3.2.2)
Using erubis (2.7.0)
Using mini_portile (0.6.2)
Using nokogiri (1.6.6.2)
Using rails-deprecated_sanitizer (1.0.3)
Using rails-dom-testing (1.0.5)
Using loofah (2.0.1)
Using rails-html-sanitizer (1.0.1)
Using actionview (4.2.0)
Using rack (1.6.0)
Using rack-test (0.6.3)
Using actionpack (4.2.0)
Using globalid (0.3.0)
Using activejob (4.2.0)
Using mime-types (2.4.3)
Using mail (2.6.3)
Using actionmailer (4.2.0)
Using arbre (1.0.3)
Using sass (3.4.13)
Using thor (0.19.1)
Using bourbon (4.2.1)
Using coffee-script-source (1.9.0)
Using execjs (2.2.2)
Using coffee-script (2.3.0)
Using railties (4.2.0)
Using coffee-rails (4.0.1)
Using formtastic (3.1.3)
Using formtastic_i18n (0.4.1)
Using has_scope (0.6.0)
Using responders (2.1.0)
Using inherited_resources (1.6.0)
Using jquery-rails (4.0.3)
Using jquery-ui-rails (5.0.5)
Using kaminari (0.16.2) from git://github.com/amatsuda/kaminari.git (at 0-16-stable)
Using activemodel (4.2.0)
Using arel (6.0.0)
Using activerecord (4.2.0)
Using bundler (1.5.3)
Using hike (1.2.3)
Using multi_json (1.10.1)
Using tilt (1.4.1)
Using sprockets (2.12.3)
Using sprockets-rails (2.2.4)
Using rails (4.2.0)
Using polyamorous (1.2.0)
Using ransack (1.6.6)
Using sass-rails (5.0.1)
Using activeadmin (1.0.0.pre1)
Using active_admin_environment (1.0.0)
Using after_commit_action (0.1.4)
Using ruby-hmac (0.4.0)
Using amazon-ecs (2.3.0)
Using autoprefixer-rails (5.1.7)
Using bcrypt (3.1.10)
Using debug_inspector (0.0.2)
Using binding_of_caller (0.7.2)
Using bitters (1.0.0)
Using bootstrap-sass (3.3.3)
Using columnize (0.9.0)
Using debugger-linecache (1.2.0)
Using byebug (2.7.0)
Using coderay (1.1.0)
Using counter_culture (0.1.29)
Using orm_adapter (0.5.0)
Using warden (1.2.3)
Using devise (3.4.1)
Using multipart-post (2.0.0)
Using faraday (0.9.1)
Using font-awesome-sass (4.3.1)
Using hashie (3.3.2)
Using hirb (0.7.3)
Using unicode-display_width (0.1.1)
Using hirb-unicode (0.0.5)
Using jbuilder (2.2.6)
Using jwt (1.2.1)
Using kaminari-bootstrap (3.0.1)
Using kgio (2.9.3)
Using libv8 (3.16.14.7)
Using method_source (0.8.2)
Using multi_xml (0.5.5)
Using mysql2 (0.3.17)
Using neat (1.7.1)
Using nestive (0.6.0)
Using normalize-rails (3.0.1)
Using oauth (0.4.7)
Using oauth2 (1.0.0)
Using omniauth (1.2.2)
Using omniauth-oauth2 (1.2.0)
Using omniauth-facebook (2.0.0)
Using omniauth-oauth (1.0.1)
Using omniauth-twitter (1.1.0)
Using ordinalize_full (1.3.0)
Using slop (3.6.0)
Using pry (0.10.1)
Using pry-byebug (1.3.3)
Using yard (0.8.7.6)
Using pry-doc (0.6.0)
Using pry-rails (0.3.3)
Using pry-stack_explorer (0.4.9.1)
Using raindrops (0.13.0)
Using rdoc (4.2.0)
Using ref (1.0.5)
Using sdoc (0.4.1)
Using temple (0.7.5)
Using slim (3.0.1)
Using slim-rails (3.0.1)
Using therubyracer (0.12.1)
Using turbolinks (2.5.3)
Using uglifier (2.7.0)
Using unicorn (4.8.3)
Your bundle is complete!
Gems in the groups test and development were not installed.
It was installed into /home/deploy/.bundler/inq
[2015-06-23T08:08:57+00:00] INFO: No database adapter specified for inq, guessing
[2015-06-23T08:08:57+00:00] INFO: Looks like inq uses mysql2 in its Gemfile
[2015-06-23T08:08:57+00:00] INFO: Processing template[/srv/www/inq/shared/config/database.yml] action create (/var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy.rb line 115)
[2015-06-23T08:08:57+00:00] INFO: deploy[/srv/www/inq] queueing checkdeploy hook /srv/www/inq/releases/20150623080849/deploy/before_migrate.rb
[2015-06-23T08:08:57+00:00] INFO: Processing template[/srv/www/inq/shared/config/database.yml] action create (/var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy.rb line 115)
[2015-06-23T08:08:57+00:00] INFO: deploy[/srv/www/inq] made pre-migration symlinks
[2015-06-23T08:08:57+00:00] INFO: deploy[/srv/www/inq] queueing checkdeploy hook /srv/www/inq/releases/20150623080849/deploy/before_symlink.rb
[2015-06-23T08:08:57+00:00] INFO: Precompiling assets for RAILS_ENV=production...
[2015-06-23T08:08:57+00:00] INFO: Processing execute[rake assets:precompile] action run (/srv/www/inq/releases/20150623080849/deploy/before_symlink.rb line 4)
================================================================================
Error executing action `run` on resource 'execute[rake assets:precompile]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received ''
---- Begin output of bundle exec rake assets:precompile ----
STDOUT:
STDERR: DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <top (required)> at /srv/www/inq/releases/20150623080849/config/environments/production.rb:24)
DEPRECATION WARNING: You did not specify a `log_level` in `production.rb`. Currently, the default value for `log_level` is `:info` for the production environment and `:debug` in all other environments. In Rails 5 the default value will be unified to `:debug` across all environments. To preserve the current setting, add the following line to your `production.rb`:
config.log_level = :info
. (called from block in tsort_each at /usr/local/lib/ruby/2.1.0/tsort.rb:226)
I, [2015-06-23T08:09:11.481446 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/icomoon-0b2fc1c8fb628d719d9cb392ceab9a62.eot
I, [2015-06-23T08:09:11.519229 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/icomoon-7eac5b86dd61bfebcd8506c8b04e5b98.svg
I, [2015-06-23T08:09:11.521490 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/icomoon-1b528be8fceaa0479d489ecf3cd0e660.ttf
I, [2015-06-23T08:09:11.524248 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/icomoon-71445fbf77bab1e90138f1df0d4ea9c3.woff
I, [2015-06-23T08:09:11.526705 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/noimage-834ab99e436bdaad31340e9b4d76bade.gif
#
# Fatal error in Evacuation
# Allocation failed - process out of memory
#
---- End output of bundle exec rake assets:precompile ----
Ran bundle exec rake assets:precompile returned
Resource Declaration:
---------------------
# In /srv/www/inq/releases/20150623080849/deploy/before_symlink.rb
4: execute 'rake assets:precompile' do
5: cwd release_path
6: command 'bundle exec rake assets:precompile'
7: environment new_resource.environment
8: end
Compiled Resource:
------------------
# Declared in /srv/www/inq/releases/20150623080849/deploy/before_symlink.rb:4:in `from_file'
execute("rake assets:precompile") do
action "run"
retries 0
retry_delay 2
command "bundle exec rake assets:precompile"
backup 5
cwd "/srv/www/inq/releases/20150623080849"
environment {"RAILS_ENV"=>"production", "RUBYOPT"=>"", "RACK_ENV"=>"production", "HOME"=>"/home/deploy", "SECRET_KEY_BASE"=>"4854233ac8da9143eae2030ec87cd9be334de7139c325292586351bf25020d824540e8a1d27649492298e42595d197b8fe9bbf0a9f7ffac172109e07c0bf994d", "TWITTER_KEY"=>"q7MLTERyJiG5W6HUbmqCwQ", "TWITTER_SECRET"=>"vUSsDYFNIKjuiExYKBOUOme4PovOmN6odb6bGI9kck", "FACEBOOK_ID"=>"331103580366910", "FACEBOOK_SECRET"=>"a81674bc7bc43a6192b30839602581c9", "ASSOCIATE_TAG"=>"rakuzone-22", "AWS_ACCESS_KEY_ID"=>"AKIAIKNR6DMH5TKEVNZQ", "AWS_SECRET_KEY"=>"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", "TRACKING_ID"=>"UA-41000764-6"}
returns 0
cookbook_name "deploy"
end
[2015-06-23T08:12:46+00:00] INFO: Running queued delayed notifications before re-raising exception
================================================================================
Error executing action `deploy` on resource 'deploy[/srv/www/inq]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
execute[rake assets:precompile] (/srv/www/inq/releases/20150623080849/deploy/before_symlink.rb line 4) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ''
---- Begin output of bundle exec rake assets:precompile ----
STDOUT:
STDERR: DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <top (required)> at /srv/www/inq/releases/20150623080849/config/environments/production.rb:24)
DEPRECATION WARNING: You did not specify a `log_level` in `production.rb`. Currently, the default value for `log_level` is `:info` for the production environment and `:debug` in all other environments. In Rails 5 the default value will be unified to `:debug` across all environments. To preserve the current setting, add the following line to your `production.rb`:
config.log_level = :info
. (called from block in tsort_each at /usr/local/lib/ruby/2.1.0/tsort.rb:226)
I, [2015-06-23T08:09:11.481446 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/icomoon-0b2fc1c8fb628d719d9cb392ceab9a62.eot
I, [2015-06-23T08:09:11.519229 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/icomoon-7eac5b86dd61bfebcd8506c8b04e5b98.svg
I, [2015-06-23T08:09:11.521490 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/icomoon-1b528be8fceaa0479d489ecf3cd0e660.ttf
I, [2015-06-23T08:09:11.524248 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/icomoon-71445fbf77bab1e90138f1df0d4ea9c3.woff
I, [2015-06-23T08:09:11.526705 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/noimage-834ab99e436bdaad31340e9b4d76bade.gif
#
# Fatal error in Evacuation
# Allocation failed - process out of memory
#
---- End output of bundle exec rake assets:precompile ----
Ran bundle exec rake assets:precompile returned
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/inq") do
params {:deploy_data=>{"deploy_to"=>"/srv/www/inq", "chef_provider"=>"Timestamped", "keep_releases"=>5, "current_path"=>"/srv/www/inq/current", "document_root"=>"public", "ignore_bundler_groups"=>["test", "development"], "absolute_document_root"=>"/srv/www/inq/current/public/", "rake"=>"/usr/local/bin/rake", "migrate"=>false, "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"=>"www-data", "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"=>"4854233ac8da9143eae2030ec87cd9be334de7139c325292586351bf25020d824540e8a1d27649492298e42595d197b8fe9bbf0a9f7ffac172109e07c0bf994d", "TWITTER_KEY"=>"q7MLTERyJiG5W6HUbmqCwQ", "TWITTER_SECRET"=>"vUSsDYFNIKjuiExYKBOUOme4PovOmN6odb6bGI9kck", "FACEBOOK_ID"=>"331103580366910", "FACEBOOK_SECRET"=>"a81674bc7bc43a6192b30839602581c9", "ASSOCIATE_TAG"=>"rakuzone-22", "AWS_ACCESS_KEY_ID"=>"AKIAIKNR6DMH5TKEVNZQ", "AWS_SECRET_KEY"=>"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", "TRACKING_ID"=>"UA-41000764-6"}, "environment_variables"=>{"SECRET_KEY_BASE"=>"4854233ac8da9143eae2030ec87cd9be334de7139c325292586351bf25020d824540e8a1d27649492298e42595d197b8fe9bbf0a9f7ffac172109e07c0bf994d", "TWITTER_KEY"=>"q7MLTERyJiG5W6HUbmqCwQ", "TWITTER_SECRET"=>"vUSsDYFNIKjuiExYKBOUOme4PovOmN6odb6bGI9kck", "FACEBOOK_ID"=>"331103580366910", "FACEBOOK_SECRET"=>"a81674bc7bc43a6192b30839602581c9", "ASSOCIATE_TAG"=>"rakuzone-22", "AWS_ACCESS_KEY_ID"=>"AKIAIKNR6DMH5TKEVNZQ", "AWS_SECRET_KEY"=>"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", "TRACKING_ID"=>"UA-41000764-6"}, "ssl_support"=>false, "auto_npm_install_on_deploy"=>true, "nodejs"=>{"restart_command"=>"monit restart node_web_app_inq", "stop_command"=>"monit stop node_web_app_inq", "port"=>80}, "application"=>"inq", "application_type"=>"rails", "auto_bundle_on_deploy"=>true, "deploying_user"=>"arn:aws:iam::132080408241:root", "domains"=>["inq"], "mounted_at"=>nil, "restart_command"=>nil, "ssl_certificate"=>nil, "ssl_certificate_key"=>nil, "ssl_certificate_ca"=>nil, "scm"=>{"scm_type"=>"git", "repository"=>"git@github.com:tarky/inq_rails", "revision"=>nil, "ssh_key"=>"-----BEGIN RSA PRIVATE KEY-----\nMIICWwIBAAKBgQCRBgILcMowaTvVPtUZjr3eB7NEYZl5sV8L5nnEcQ5w1ZOP1JEi\nIh4EPxmiXdsggP9h51kQjGxDIUr3WvICWeQP008SlzA8sWK4TIL6y2RM4sO3FCgb\nOROpRm4HDhQBCWGF9jEU6qXggBiZ09/30A5B5szhKat99idX9uk4V+7BKQIDAQAB\nAoGAS14O8/ki6rPV54Xm44hePiRMUu5R/39hgOK/R4rl0Vf9fxMeddm7NcPBQ7N5\nLNQ9ZJkBnWsM3HpR5mj6OqSSs6p8wv5CcXpEbMTIo9z2yJfe+WlHBq7uyCdO9/cJ\nHpguxQfYFgXlF9AZVRtOB7YCUav4tJ6c2zacL7xH601/STECQQDAtKk66ZxgnUb1\nzETrQlu/ZiO070BKVc1B9Fkth9DelWtn7nLSiWsCQRlL2wzODhheR0I0kUanWaHF\n+WBxsFNdAkEAwKgQsI+oQUXzJwEWazIRYOH7XdX2b27zs2zmOjHYHFNWLa58jr27\ne4h++HxQvdeL0pm3Gunm8mMFkWl9zCw0PQJACwDFwOVh1mpkiNhW/w/U6ULNuyEG\nDLiFdcSb6uucU3k4nsCQsdDC2WgaJ6ikPIe1gHyVHSdGX3vQrtskVJl6yQJAH9en\naodT9/XnynqTigQseybetRO4N5LPFMjbBKNYZNYhWEuOqskRQ8m7srZZYgdORPDD\nIt+mHEnhkbct46EqwQJAGSqRxv5fEszsahsowMNiKM9wTAFmjprwlRaCfDq5GiE6\nVg2kD6I61zZgsbgVgSyJPQ8occ6lqMySrQu8ZO5XQA==\n-----END RSA PRIVATE KEY-----", "user"=>nil, "password"=>nil}, "database"=>{"host"=>"172.31.6.172", "database"=>"inq", "port"=>3306, "username"=>"root", "password"=>"mpul2nvcxr", "reconnect"=>true, "data_source_provider"=>"stack", "type"=>"mysql"}, "memcached"=>{"host"=>nil, "port"=>11211}}, :app=>"inq", :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/inq"
environment {"RAILS_ENV"=>"production", "RUBYOPT"=>"", "RACK_ENV"=>"production", "HOME"=>"/home/deploy", "SECRET_KEY_BASE"=>"4854233ac8da9143eae2030ec87cd9be334de7139c325292586351bf25020d824540e8a1d27649492298e42595d197b8fe9bbf0a9f7ffac172109e07c0bf994d", "TWITTER_KEY"=>"q7MLTERyJiG5W6HUbmqCwQ", "TWITTER_SECRET"=>"vUSsDYFNIKjuiExYKBOUOme4PovOmN6odb6bGI9kck", "FACEBOOK_ID"=>"331103580366910", "FACEBOOK_SECRET"=>"a81674bc7bc43a6192b30839602581c9", "ASSOCIATE_TAG"=>"rakuzone-22", "AWS_ACCESS_KEY_ID"=>"AKIAIKNR6DMH5TKEVNZQ", "AWS_SECRET_KEY"=>"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", "TRACKING_ID"=>"UA-41000764-6"}
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"
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 "git@github.com:tarky/inq_rails"
user "deploy"
group "www-data"
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 clean-restart"
before_migrate #<Proc:0x007f9da80e3268@/var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy.rb:100>
shared_path "/srv/www/inq/shared"
destination "/srv/www/inq/shared/cached-copy"
current_path "/srv/www/inq/current"
end
[2015-06-23T08:12:46+00:00] INFO: Running queued delayed notifications before re-raising exception
[2015-06-23T08:12:46+00:00] ERROR: Running exception handlers
[2015-06-23T08:12:46+00:00] ERROR: Exception handlers complete
[2015-06-23T08:12:46+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage2/chef-stacktrace.out
[2015-06-23T08:12:46+00:00] ERROR: deploy[/srv/www/inq] (deploy::rails line 65) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[rake assets:precompile] (/srv/www/inq/releases/20150623080849/deploy/before_symlink.rb line 4) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ''
---- Begin output of bundle exec rake assets:precompile ----
STDOUT:
STDERR: DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <top (required)> at /srv/www/inq/releases/20150623080849/config/environments/production.rb:24)
DEPRECATION WARNING: You did not specify a `log_level` in `production.rb`. Currently, the default value for `log_level` is `:info` for the production environment and `:debug` in all other environments. In Rails 5 the default value will be unified to `:debug` across all environments. To preserve the current setting, add the following line to your `production.rb`:
config.log_level = :info
. (called from block in tsort_each at /usr/local/lib/ruby/2.1.0/tsort.rb:226)
I, [2015-06-23T08:09:11.481446 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/icomoon-0b2fc1c8fb628d719d9cb392ceab9a62.eot
I, [2015-06-23T08:09:11.519229 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/icomoon-7eac5b86dd61bfebcd8506c8b04e5b98.svg
I, [2015-06-23T08:09:11.521490 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/icomoon-1b528be8fceaa0479d489ecf3cd0e660.ttf
I, [2015-06-23T08:09:11.524248 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/icomoon-71445fbf77bab1e90138f1df0d4ea9c3.woff
I, [2015-06-23T08:09:11.526705 #25013] INFO -- : Writing /srv/www/inq/releases/20150623080849/public/assets/noimage-834ab99e436bdaad31340e9b4d76bade.gif
#
# Fatal error in Evacuation
# Allocation failed - process out of memory
#
---- End output of bundle exec rake assets:precompile ----
Ran bundle exec rake assets:precompile returned
[2015-06-23T08:12:46+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
@stevenspiel
Copy link

I'm getting this exact error when compiling resources. How did you fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment