0xdevalias / huginn-chef

Huginn Chef Deployment [WIP]
MIT License
0 stars 1 forks source link

[ubuntu-12.04] Error executing action `run` on resource 'execute[rake-db-create]' #3

Open 0xdevalias opened 10 years ago

0xdevalias commented 10 years ago
    Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>true, "database"=>"huginn", "pool"=>5, "username"=>"root", "password"=>"CHANGEME", "host"=>nil, "port"=>nil, "socket"=>"/var/run/mysqld/mysqld.sock"}
    undefined method `strip' for nil:NilClass

http://guides.rubyonrails.org/configuring.html#configuring-a-database

 * execute[rake-db-create] action run

    ================================================================================
    Error executing action `run` on resource 'execute[rake-db-create]'
    ================================================================================

    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '1'
    ---- Begin output of       bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created
     ----
    STDOUT: Your Gemfile lists the gem unicorn (>= 0) more than once.
    You should probably keep only one of them.
    While it's not a problem now, it could cause errors if you change the version of just one of them later.
    Access denied for user 'root'@'localhost' (using password: YES)Please provide the root password for your mysql installation
    >Access denied for user 'root'@'localhost' (using password: YES)Please provide the root password for your mysql installation
    >
    STDERR: undefined method `strip' for nil:NilClass
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:128:in `root_password'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:122:in `root_configuration_without_database'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:27:in `rescue in create'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:15:in `create'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:88:in `create'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:102:in `block in create_current'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:209:in `block in each_current_configuration'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each_current_configuration'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:101:in `create_current'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:17:in `block (2 levels) in <top (required)>'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>'
    Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>true, "database"=>"huginn", "pool"=>5, "username"=>"root", "password"=>"CHANGEME", "host"=>nil, "port"=>nil, "socket"=>"/var/run/mysqld/mysqld.sock"}
    undefined method `strip' for nil:NilClass
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:128:in `root_password'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:122:in `root_configuration_without_database'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:27:in `rescue in create'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:15:in `create'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:88:in `create'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:102:in `block in create_current'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:209:in `block in each_current_configuration'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each_current_configuration'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:101:in `create_current'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:17:in `block (2 levels) in <top (required)>'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>'
    Couldn't create database for {"adapter"=>"mysql2", "database"=>"huginn_test", "username"=>"root", "password"=>"CHANGEME", "socket"=>"/var/run/mysqld/mysqld.sock", "encoding"=>"utf8", "reconnect"=>true, "port"=>nil, "pool"=>5}
    rake aborted!
    Mysql2::Error: Access denied for user 'root'@'localhost' (using password: YES)
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `connect'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `initialize'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `new'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `mysql2_connection'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_handling.rb:87:in `connection'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:910:in `initialize'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `new'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
    /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
    Tasks: TOP => db:migrate
    (See full trace by running task with --trace)
    ---- End output of       bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created
     ----
    Ran       bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created
     returned 1

    Resource Declaration:
    ---------------------
    # In /home/vagrant/chef-solo/cookbooks-2/rbenv/providers/execute.rb

     25:   execute new_resource.name do
     26:     command     new_resource.command
     27:     creates     new_resource.creates
     28:     cwd         new_resource.cwd
     29:     environment new_resource.environment
     30:     group       new_resource.group
     31:     returns     new_resource.returns
     32:     timeout     new_resource.timeout
     33:     user        new_resource.user
     34:     umask       new_resource.umask
     35:   end
     36: 

    Compiled Resource:
    ------------------
    # Declared in /home/vagrant/chef-solo/cookbooks-2/rbenv/providers/execute.rb:25:in `block in class_from_file'

    execute("rake-db-create") do
      action "run"
      retries 0
      retry_delay 2
      guard_interpreter :default
      command "      bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created\n"
      backup 5
      creates "/home/huginn/shared/rake-db-created"
      cwd "/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27"
      environment {"PATH"=>"/opt/rbenv/shims:/opt/rbenv/bin:/opt/rbenv/bin:/opt/rbenv/shims:/opt/rbenv/plugins/ruby_build/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chef/embedded/bin:/opt/chef/embedded/bin", "RBENV_ROOT"=>"/opt/rbenv", "RBENV_VERSION"=>"2.0.0-p481"}
      returns 0
      user "huginn"
      cookbook_name :huginn
    end

[2014-09-28T09:44:26+00:00] WARN: Error on deploying /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27: execute[rake-db-create] (/home/vagrant/chef-solo/cookbooks-2/rbenv/providers/execute.rb line 25) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of       bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created
 ----
STDOUT: Your Gemfile lists the gem unicorn (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Access denied for user 'root'@'localhost' (using password: YES)Please provide the root password for your mysql installation
>Access denied for user 'root'@'localhost' (using password: YES)Please provide the root password for your mysql installation
>
STDERR: undefined method `strip' for nil:NilClass
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:128:in `root_password'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:122:in `root_configuration_without_database'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:27:in `rescue in create'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:15:in `create'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:88:in `create'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:102:in `block in create_current'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:209:in `block in each_current_configuration'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each_current_configuration'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:101:in `create_current'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:17:in `block (2 levels) in <top (required)>'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/opt/rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>'
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>true, "database"=>"huginn", "pool"=>5, "username"=>"root", "password"=>"CHANGEME", "host"=>nil, "port"=>nil, "socket"=>"/var/run/mysqld/mysqld.sock"}
undefined method `strip' for nil:NilClass
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:128:in `root_password'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:122:in `root_configuration_without_database'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:27:in `rescue in create'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:15:in `create'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:88:in `create'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:102:in `block in create_current'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:209:in `block in each_current_configuration'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each_current_configuration'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:101:in `create_current'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:17:in `block (2 levels) in <top (required)>'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/opt/rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>'
Couldn't create database for {"adapter"=>"mysql2", "database"=>"huginn_test", "username"=>"root", "password"=>"CHANGEME", "socket"=>"/var/run/mysqld/mysqld.sock", "encoding"=>"utf8", "reconnect"=>true, "port"=>nil, "pool"=>5}
rake aborted!
Mysql2::Error: Access denied for user 'root'@'localhost' (using password: YES)
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `connect'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `initialize'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `new'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `mysql2_connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_handling.rb:87:in `connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:910:in `initialize'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `new'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
---- End output of       bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created
 ----
Ran       bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created
 returned 1
  - remove failed deploy /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27
  ================================================================================
  Error executing action `deploy` on resource 'deploy_revision[/home/huginn]'
  ================================================================================

  Mixlib::ShellOut::ShellCommandFailed
  ------------------------------------
  execute[rake-db-create] (/home/vagrant/chef-solo/cookbooks-2/rbenv/providers/execute.rb line 25) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
  ---- Begin output of       bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created
   ----
  STDOUT: Your Gemfile lists the gem unicorn (>= 0) more than once.
  You should probably keep only one of them.
  While it's not a problem now, it could cause errors if you change the version of just one of them later.
  Access denied for user 'root'@'localhost' (using password: YES)Please provide the root password for your mysql installation
  >Access denied for user 'root'@'localhost' (using password: YES)Please provide the root password for your mysql installation
  >
  STDERR: undefined method `strip' for nil:NilClass
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:128:in `root_password'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:122:in `root_configuration_without_database'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:27:in `rescue in create'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:15:in `create'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:88:in `create'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:102:in `block in create_current'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:209:in `block in each_current_configuration'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each_current_configuration'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:101:in `create_current'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:17:in `block (2 levels) in <top (required)>'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
  /opt/rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>'
  Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>true, "database"=>"huginn", "pool"=>5, "username"=>"root", "password"=>"CHANGEME", "host"=>nil, "port"=>nil, "socket"=>"/var/run/mysqld/mysqld.sock"}
  undefined method `strip' for nil:NilClass
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:128:in `root_password'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:122:in `root_configuration_without_database'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:27:in `rescue in create'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:15:in `create'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:88:in `create'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:102:in `block in create_current'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:209:in `block in each_current_configuration'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each_current_configuration'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:101:in `create_current'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:17:in `block (2 levels) in <top (required)>'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
  /opt/rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>'
  Couldn't create database for {"adapter"=>"mysql2", "database"=>"huginn_test", "username"=>"root", "password"=>"CHANGEME", "socket"=>"/var/run/mysqld/mysqld.sock", "encoding"=>"utf8", "reconnect"=>true, "port"=>nil, "pool"=>5}
  rake aborted!
  Mysql2::Error: Access denied for user 'root'@'localhost' (using password: YES)
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `connect'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `initialize'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `new'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `mysql2_connection'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_handling.rb:87:in `connection'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:910:in `initialize'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `new'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
  /home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
  Tasks: TOP => db:migrate
  (See full trace by running task with --trace)
  ---- End output of       bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created
   ----
  Ran       bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created
   returned 1

  Resource Declaration:
  ---------------------
  # In /home/vagrant/chef-solo/cookbooks-3/huginn/recipes/setup_huginn.rb

    1: deploy_revision node['huginn']['deploy_user']['home'] do
    2:   repository node['huginn']['repository']
    3:   revision node['huginn']['revision']
    4:   keep_releases node['huginn']['keep_releases']
    5:   rollback_on_error node['huginn']['rollback_on_error']
    6:   # enable_submodules true
    7:   # shallow_clone true
    8: 
    9:   user node['huginn']['deploy_user']['name']
   10:   group node['huginn']['deploy_user']['group']
   11: 
   12:   environment "RAILS_ENV" => node['huginn']['rails_env'], "RBENV_VERSION" => node['huginn']['ruby_version']
   13: 
   14:   migrate false # We handle this manually below since it doesn't work well with rbenv
   15: 
   16:   action node['huginn']['deploy_action']
   17: 
   18:   symlink_before_migrate Hash.new # Disable default
   19: 
   20:   before_migrate do
   21:     Chef::Log.info "Rewriting Gemfile/Procfile to use unicorn"
   22:     rbenv_execute "Rewrite Gemfile/Procfile to use unicorn" do
   23:       cwd release_path
   24:       user new_resource.user
   25: 
   26:       ruby_version node['huginn']['ruby_version']
   27: 
   28:       command %{
   29:         echo >> Gemfile
   30:         echo "gem 'unicorn'" >> Gemfile
   31: 
   32:         sed -i 's#rails server#unicorn -c config/unicorn/production.rb#' Procfile
   33:       }
   34:     end
   35: 
   36:     # From https://github.com/poise/application_ruby/blob/master/providers/rails.rb
   37:     Chef::Log.info "Running bundle install"
   38:     directory "#{new_resource.deploy_to}/shared/vendor_bundle" do
   39:       owner new_resource.user
   40:       group new_resource.group
   41:       mode '0755'
   42:     end
   43:     directory "#{release_path}/vendor" do
   44:       owner new_resource.user
   45:       group new_resource.group
   46:       mode '0755'
   47:     end
   48:     link "#{release_path}/vendor/bundle" do
   49:       to "#{new_resource.deploy_to}/shared/vendor_bundle"
   50:     end
   51: 
   52:     common_groups = %w{development test cucumber staging}
   53:     bundle_command = "bundle install --path=vendor/bundle --without #{common_groups}"

  Compiled Resource:
  ------------------
  # Declared in /home/vagrant/chef-solo/cookbooks-3/huginn/recipes/setup_huginn.rb:1:in `from_file'

  deploy_revision("/home/huginn") do
    provider Chef::Provider::Deploy::Revision
    action [:deploy]
    updated true
    updated_by_last_action true
    retries 0
    retry_delay 2
    guard_interpreter :default
    deploy_to "/home/huginn"
    environment {"RAILS_ENV"=>"production", "RBENV_VERSION"=>"2.0.0-p481"}
    repository_cache "cached-copy"
    purge_before_symlink ["log", "tmp/pids", "public/system"]
    create_dirs_before_symlink ["tmp", "public", "config"]
    symlinks {"system"=>"public/system", "pids"=>"tmp/pids", "log"=>"log", "config/unicorn"=>"config/unicorn"}
    revision "HEAD"
    rollback_on_error true
    remote "origin"
    scm_provider Chef::Provider::Git
    keep_releases 5
    enable_checkout true
    checkout_branch "deploy"
    cookbook_name :huginn
    recipe_name "setup_huginn"
    repo "https://github.com/cantino/huginn.git"
    user "huginn"
    group "huginn"
    before_migrate #<Proc:0x0000000262d278@/home/vagrant/chef-solo/cookbooks-3/huginn/recipes/setup_huginn.rb:20>
    before_symlink #<Proc:0x00000002634ca8@/home/vagrant/chef-solo/cookbooks-3/huginn/recipes/setup_huginn.rb:171>
    before_restart #<Proc:0x00000002633ba0@/home/vagrant/chef-solo/cookbooks-3/huginn/recipes/setup_huginn.rb:221>
    shared_path "/home/huginn/shared"
    destination "/home/huginn/shared/cached-copy"
    current_path "/home/huginn/current"
  end

Recipe: nginx::default
  * service[nginx] action reload
    - reload service service[nginx]

Running handlers:
[2014-09-28T09:44:26+00:00] ERROR: Running exception handlers
Running handlers complete
[2014-09-28T09:44:26+00:00] ERROR: Exception handlers complete
[2014-09-28T09:44:26+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 81 resources updated in 942.899794232 seconds
[2014-09-28T09:44:26+00:00] ERROR: deploy_revision[/home/huginn] (huginn::setup_huginn line 1) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[rake-db-create] (/home/vagrant/chef-solo/cookbooks-2/rbenv/providers/execute.rb line 25) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of       bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created
 ----
STDOUT: Your Gemfile lists the gem unicorn (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Access denied for user 'root'@'localhost' (using password: YES)Please provide the root password for your mysql installation
>Access denied for user 'root'@'localhost' (using password: YES)Please provide the root password for your mysql installation
>
STDERR: undefined method `strip' for nil:NilClass
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:128:in `root_password'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:122:in `root_configuration_without_database'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:27:in `rescue in create'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:15:in `create'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:88:in `create'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:102:in `block in create_current'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:209:in `block in each_current_configuration'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each_current_configuration'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:101:in `create_current'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:17:in `block (2 levels) in <top (required)>'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/opt/rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>'
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>true, "database"=>"huginn", "pool"=>5, "username"=>"root", "password"=>"CHANGEME", "host"=>nil, "port"=>nil, "socket"=>"/var/run/mysqld/mysqld.sock"}
undefined method `strip' for nil:NilClass
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:128:in `root_password'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:122:in `root_configuration_without_database'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:27:in `rescue in create'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/mysql_database_tasks.rb:15:in `create'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:88:in `create'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:102:in `block in create_current'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:209:in `block in each_current_configuration'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:208:in `each_current_configuration'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/tasks/database_tasks.rb:101:in `create_current'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:17:in `block (2 levels) in <top (required)>'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/opt/rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>'
Couldn't create database for {"adapter"=>"mysql2", "database"=>"huginn_test", "username"=>"root", "password"=>"CHANGEME", "socket"=>"/var/run/mysqld/mysqld.sock", "encoding"=>"utf8", "reconnect"=>true, "port"=>nil, "pool"=>5}
rake aborted!
Mysql2::Error: Access denied for user 'root'@'localhost' (using password: YES)
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `connect'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `initialize'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `new'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `mysql2_connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/connection_handling.rb:87:in `connection'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:910:in `initialize'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `new'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/home/huginn/releases/66615897433c383ba928694203c8b0039d2e6f27/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
---- End output of       bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created
 ----
Ran       bundle exec rake db:create db:migrate && touch /home/huginn/shared/rake-db-created
 returned 1
[2014-09-28T09:44:26+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR: RuntimeError: chef-solo failed. See output above.
nogweii commented 10 years ago

I don't know if you're using my code for this, but I noticed something else in the work for #2. We allow the user to specify the database via the attribute node['huginn']['database'], but I'm not referencing that at all in the dotenv configuration. Should the file be updated using those attributes? Or perhaps should we delete those attributes and rely on those specified in node['huginn']['env']?

0xdevalias commented 10 years ago

I'd say we should probably use the env ones, but we'll need to manually set the defaults as we create the database before we have Huginn pulled down.

Technically I believe the huginn ones I am using are mostly just referenced by the mysql ones as well. So probably replace them with the env ones (with sensible defaults), and then pass them into the mysql vars.— Sent from Mailbox

On Tue, Sep 30, 2014 at 3:26 AM, No GUI notifications@github.com wrote:

I don't know if you're using my code for this, but I noticed something else in the work for #2. We allow the user to specify the database via the attribute node['huginn']['database'], but I'm not referencing that at all in the dotenv configuration. Should the file be updated using those attributes? Or perhaps should we delete those attributes and rely on those specified in node['huginn']['env']?

Reply to this email directly or view it on GitHub: https://github.com/alias1/huginn-chef/issues/3#issuecomment-57196449

0xdevalias commented 10 years ago

And no, not your code yet.— Sent from Mailbox

On Tue, Sep 30, 2014 at 3:26 AM, No GUI notifications@github.com wrote:

I don't know if you're using my code for this, but I noticed something else in the work for #2. We allow the user to specify the database via the attribute node['huginn']['database'], but I'm not referencing that at all in the dotenv configuration. Should the file be updated using those attributes? Or perhaps should we delete those attributes and rely on those specified in node['huginn']['env']?

Reply to this email directly or view it on GitHub: https://github.com/alias1/huginn-chef/issues/3#issuecomment-57196449