Skip to content

Instantly share code, notes, and snippets.

@lvnilesh
Created November 11, 2012 16:43
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 lvnilesh/4055469 to your computer and use it in GitHub Desktop.
Save lvnilesh/4055469 to your computer and use it in GitHub Desktop.
another run with different error.
vagrant@precise64:~$ sudo chef-solo -c /vagrant/solo.rb -j /vagrant/node.json
[2012-11-11T16:39:15+00:00] INFO: *** Chef 10.16.2 ***
[2012-11-11T16:39:15+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[build-essential]", "recipe[openssl]", "recipe[mysql::server]", "recipe[myapp]"] from JSON
[2012-11-11T16:39:15+00:00] INFO: Run List is [recipe[apt], recipe[build-essential], recipe[openssl], recipe[mysql::server], recipe[myapp]]
[2012-11-11T16:39:15+00:00] INFO: Run List expands to [apt, build-essential, openssl, mysql::server, myapp]
[2012-11-11T16:39:15+00:00] INFO: Starting Chef Run for precise64
[2012-11-11T16:39:15+00:00] INFO: Running start handlers
[2012-11-11T16:39:15+00:00] INFO: Start handlers complete.
[2012-11-11T16:39:15+00:00] INFO: Application light-weight resource already initialized -- overriding!
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/resource.rb:768: warning: already initialized constant Application
[2012-11-11T16:39:15+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will be
removed in Chef 11.0. To set attributes at normal precedence, change code like:
`node["key"] = "value"` # Not this
to:
`node.set["key"] = "value"` # This
Called from:
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node/attribute.rb:449:in `method_missing'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `send'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `method_missing'
[2012-11-11T16:39:15+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will be
removed in Chef 11.0. To set attributes at normal precedence, change code like:
`node["key"] = "value"` # Not this
to:
`node.set["key"] = "value"` # This
Called from:
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node/attribute.rb:449:in `method_missing'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `send'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `method_missing'
[2012-11-11T16:39:15+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will be
removed in Chef 11.0. To set attributes at normal precedence, change code like:
`node["key"] = "value"` # Not this
to:
`node.set["key"] = "value"` # This
Called from:
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node/attribute.rb:449:in `method_missing'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `send'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `method_missing'
[2012-11-11T16:39:15+00:00] INFO: Could not find previously defined grants.sql resource
[2012-11-11T16:39:16+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Hit http://us.archive.ubuntu.com precise Release.gpg
Get:1 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Ign http://security.ubuntu.com precise-security InRelease
Get:2 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise Release
Get:3 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:4 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:5 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:6 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main amd64 Packages
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:7 http://us.archive.ubuntu.com precise-updates/main Sources [187 kB]
Get:8 http://us.archive.ubuntu.com precise-updates/restricted Sources [4419 B]
Get:9 http://us.archive.ubuntu.com precise-updates/universe Sources [61.1 kB]
Get:10 http://security.ubuntu.com precise-security/main Sources [54.1 kB]
Get:11 http://us.archive.ubuntu.com precise-updates/multiverse Sources [4241 B]
Get:12 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [424 kB]
Get:13 http://security.ubuntu.com precise-security/restricted Sources [1950 B]
Get:14 http://security.ubuntu.com precise-security/universe Sources [15.8 kB]
Get:15 http://security.ubuntu.com precise-security/multiverse Sources [1392 B]
Get:16 http://security.ubuntu.com precise-security/main amd64 Packages [195 kB]
Get:17 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [8366 B]
Get:18 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [152 kB]
Get:19 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [8677 B]
Get:20 http://us.archive.ubuntu.com precise-updates/main i386 Packages [432 kB]
Get:21 http://security.ubuntu.com precise-security/restricted amd64 Packages [3969 B]
Get:22 http://security.ubuntu.com precise-security/universe amd64 Packages [54.3 kB]
Get:23 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2189 B]
Get:24 http://security.ubuntu.com precise-security/main i386 Packages [200 kB]
Get:25 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [8374 B]
Get:26 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [152 kB]
Get:27 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [9661 B]
Get:28 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3564 B]
Get:29 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2605 B]
Get:30 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2461 B]
Get:31 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2850 B]
Get:32 http://us.archive.ubuntu.com precise-backports/main Sources [2422 B]
Get:33 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:34 http://us.archive.ubuntu.com precise-backports/universe Sources [17.3 kB]
Get:35 http://us.archive.ubuntu.com precise-backports/multiverse Sources [2669 B]
Get:36 http://us.archive.ubuntu.com precise-backports/main amd64 Packages [1945 B]
Get:37 http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages [14 B]
Get:38 http://us.archive.ubuntu.com precise-backports/universe amd64 Packages [15.7 kB]
Get:39 http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages [2489 B]
Get:40 http://us.archive.ubuntu.com precise-backports/main i386 Packages [1941 B]
Get:41 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:42 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [15.7 kB]
Get:43 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [2504 B]
Get:44 http://security.ubuntu.com precise-security/restricted i386 Packages [3968 B]
Get:45 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:46 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:47 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:48 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Get:49 http://security.ubuntu.com precise-security/universe i386 Packages [54.4 kB]
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Get:50 http://us.archive.ubuntu.com precise-updates/main Translation-en [209 kB]
Get:51 http://security.ubuntu.com precise-security/multiverse i386 Packages [2388 B]
Get:52 http://security.ubuntu.com precise-security/main TranslationIndex [73 B]
Get:53 http://security.ubuntu.com precise-security/multiverse TranslationIndex [71 B]
Get:54 http://security.ubuntu.com precise-security/restricted TranslationIndex [71 B]
Get:55 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:56 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [5414 B]
Get:57 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [2082 B]
Get:58 http://us.archive.ubuntu.com precise-updates/universe Translation-en [91.2 kB]
Get:59 http://security.ubuntu.com precise-security/main Translation-en [96.3 kB]
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Get:60 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [1476 B]
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Get:61 http://us.archive.ubuntu.com precise-backports/universe Translation-en [11.3 kB]
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Get:62 http://security.ubuntu.com precise-security/universe Translation-en [33.0 kB]
Fetched 2715 kB in 3s (780 kB/s)
Reading package lists...
[2012-11-11T16:39:21+00:00] INFO: execute[apt-get-update] ran successfully
[2012-11-11T16:39:21+00:00] INFO: Processing execute[apt-get update] action nothing (apt::default line 29)
[2012-11-11T16:39:21+00:00] INFO: Processing execute[apt-get autoremove] action nothing (apt::default line 36)
[2012-11-11T16:39:21+00:00] INFO: Processing execute[apt-get autoclean] action nothing (apt::default line 42)
[2012-11-11T16:39:21+00:00] INFO: Processing package[update-notifier-common] action install (apt::default line 48)
[2012-11-11T16:39:23+00:00] INFO: package[update-notifier-common] sending run action to execute[apt-get-update] (immediate)
[2012-11-11T16:39:23+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Hit http://us.archive.ubuntu.com precise Release.gpg
Hit http://us.archive.ubuntu.com precise-updates Release.gpg
Ign http://security.ubuntu.com precise-security InRelease
Hit http://us.archive.ubuntu.com precise-backports Release.gpg
Hit http://us.archive.ubuntu.com precise Release
Hit http://us.archive.ubuntu.com precise-updates Release
Hit http://us.archive.ubuntu.com precise-backports Release
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main amd64 Packages
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security Release
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/main Sources
Hit http://us.archive.ubuntu.com precise-updates/restricted Sources
Hit http://us.archive.ubuntu.com precise-updates/universe Sources
Hit http://us.archive.ubuntu.com precise-updates/multiverse Sources
Hit http://security.ubuntu.com precise-security/main Sources
Hit http://us.archive.ubuntu.com precise-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/main i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/main Sources
Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
Hit http://security.ubuntu.com precise-security/restricted Sources
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://security.ubuntu.com precise-security/main amd64 Packages
Hit http://security.ubuntu.com precise-security/restricted amd64 Packages
Hit http://security.ubuntu.com precise-security/universe amd64 Packages
Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe Sources
Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://us.archive.ubuntu.com precise-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Reading package lists...
[2012-11-11T16:39:26+00:00] INFO: execute[apt-get-update] ran successfully
[2012-11-11T16:39:26+00:00] INFO: Processing execute[apt-get-update-periodic] action run (apt::default line 52)
[2012-11-11T16:39:26+00:00] INFO: Processing directory[/var/cache/local] action create (apt::default line 62)
[2012-11-11T16:39:26+00:00] INFO: directory[/var/cache/local] created directory /var/cache/local
[2012-11-11T16:39:26+00:00] INFO: directory[/var/cache/local] owner changed to 0
[2012-11-11T16:39:26+00:00] INFO: directory[/var/cache/local] group changed to 0
[2012-11-11T16:39:26+00:00] INFO: directory[/var/cache/local] mode changed to 755
[2012-11-11T16:39:26+00:00] INFO: Processing directory[/var/cache/local/preseeding] action create (apt::default line 62)
[2012-11-11T16:39:26+00:00] INFO: directory[/var/cache/local/preseeding] created directory /var/cache/local/preseeding
[2012-11-11T16:39:26+00:00] INFO: directory[/var/cache/local/preseeding] owner changed to 0
[2012-11-11T16:39:26+00:00] INFO: directory[/var/cache/local/preseeding] group changed to 0
[2012-11-11T16:39:26+00:00] INFO: directory[/var/cache/local/preseeding] mode changed to 755
[2012-11-11T16:39:26+00:00] INFO: Processing package[build-essential] action install (build-essential::default line 23)
[2012-11-11T16:39:50+00:00] INFO: Processing package[binutils-doc] action install (build-essential::default line 23)
[2012-11-11T16:39:55+00:00] INFO: Processing package[autoconf] action install (build-essential::default line 35)
[2012-11-11T16:39:58+00:00] INFO: Processing package[flex] action install (build-essential::default line 39)
[2012-11-11T16:40:01+00:00] INFO: Processing package[bison] action install (build-essential::default line 43)
[2012-11-11T16:40:03+00:00] INFO: Processing package[mysql-client] action install (mysql::client line 46)
[2012-11-11T16:40:18+00:00] INFO: Processing package[libmysqlclient-dev] action install (mysql::client line 46)
[2012-11-11T16:40:21+00:00] INFO: Processing directory[/var/cache/local/preseeding] action create (mysql::server line 46)
[2012-11-11T16:40:21+00:00] INFO: Processing execute[preseed mysql-server] action nothing (mysql::server line 53)
[2012-11-11T16:40:21+00:00] INFO: Processing template[/var/cache/local/preseeding/mysql-server.seed] action create (mysql::server line 58)
[2012-11-11T16:40:21+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] updated content
[2012-11-11T16:40:21+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] owner changed to 0
[2012-11-11T16:40:21+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] group changed to 0
[2012-11-11T16:40:21+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] mode changed to 600
[2012-11-11T16:40:21+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] sending run action to execute[preseed mysql-server] (immediate)
[2012-11-11T16:40:21+00:00] INFO: Processing execute[preseed mysql-server] action run (mysql::server line 53)
[2012-11-11T16:40:22+00:00] INFO: execute[preseed mysql-server] ran successfully
[2012-11-11T16:40:22+00:00] INFO: Processing template[/etc/mysql/debian.cnf] action create (mysql::server line 66)
[2012-11-11T16:40:22+00:00] INFO: template[/etc/mysql/debian.cnf] updated content
[2012-11-11T16:40:22+00:00] INFO: template[/etc/mysql/debian.cnf] owner changed to 0
[2012-11-11T16:40:22+00:00] INFO: template[/etc/mysql/debian.cnf] group changed to 0
[2012-11-11T16:40:22+00:00] INFO: template[/etc/mysql/debian.cnf] mode changed to 600
[2012-11-11T16:40:22+00:00] INFO: Processing package[mysql-server] action install (mysql::server line 93)
[2012-11-11T16:40:51+00:00] INFO: Processing directory[/etc/mysql/conf.d] action create (mysql::server line 100)
[2012-11-11T16:40:51+00:00] INFO: directory[/etc/mysql/conf.d] owner changed to 106
[2012-11-11T16:40:51+00:00] INFO: directory[/etc/mysql/conf.d] group changed to 111
[2012-11-11T16:40:51+00:00] INFO: Processing service[mysql] action enable (mysql::server line 120)
[2012-11-11T16:40:51+00:00] INFO: service[mysql] enabled
[2012-11-11T16:40:51+00:00] INFO: Processing template[/etc/mysql/my.cnf] action create (mysql::server line 140)
[2012-11-11T16:40:51+00:00] INFO: template[/etc/mysql/my.cnf] backed up to /var/chef/backup/etc/mysql/my.cnf.chef-20121111164051
[2012-11-11T16:40:51+00:00] INFO: template[/etc/mysql/my.cnf] updated content
[2012-11-11T16:40:51+00:00] INFO: template[/etc/mysql/my.cnf] owner changed to 0
[2012-11-11T16:40:51+00:00] INFO: template[/etc/mysql/my.cnf] group changed to 0
[2012-11-11T16:40:51+00:00] INFO: template[/etc/mysql/my.cnf] mode changed to 644
[2012-11-11T16:40:51+00:00] INFO: template[/etc/mysql/my.cnf] sending restart action to service[mysql] (immediate)
[2012-11-11T16:40:51+00:00] INFO: Processing service[mysql] action restart (mysql::server line 120)
[2012-11-11T16:40:54+00:00] INFO: service[mysql] restarted
[2012-11-11T16:40:54+00:00] INFO: Processing execute[assign-root-password] action run (mysql::server line 168)
[2012-11-11T16:40:54+00:00] INFO: Processing template[/etc/mysql/grants.sql] action create (mysql::server line 190)
[2012-11-11T16:40:54+00:00] INFO: template[/etc/mysql/grants.sql] updated content
[2012-11-11T16:40:54+00:00] INFO: template[/etc/mysql/grants.sql] owner changed to 0
[2012-11-11T16:40:54+00:00] INFO: template[/etc/mysql/grants.sql] group changed to 0
[2012-11-11T16:40:54+00:00] INFO: template[/etc/mysql/grants.sql] mode changed to 600
[2012-11-11T16:40:54+00:00] INFO: template[/etc/mysql/grants.sql] sending run action to execute[mysql-install-privileges] (immediate)
[2012-11-11T16:40:54+00:00] INFO: Processing execute[mysql-install-privileges] action run (mysql::server line 206)
[2012-11-11T16:40:54+00:00] INFO: execute[mysql-install-privileges] ran successfully
[2012-11-11T16:40:54+00:00] INFO: Processing execute[mysql-install-privileges] action nothing (mysql::server line 206)
[2012-11-11T16:40:54+00:00] INFO: Processing service[mysql] action start (mysql::server line 213)
[2012-11-11T16:40:54+00:00] INFO: Processing application_ruby_rails[myapp] action nothing (myapp::default line 110)
[2012-11-11T16:40:54+00:00] INFO: Processing application_ruby_unicorn[myapp] action nothing (myapp::default line 110)
[2012-11-11T16:40:54+00:00] INFO: Processing application[myapp] action deploy (myapp::default line 1)
[2012-11-11T16:40:54+00:00] INFO: Processing application_ruby_rails[myapp] action before_compile (myapp::default line 110)
[2012-11-11T16:40:54+00:00] INFO: Processing application_ruby_unicorn[myapp] action before_compile (myapp::default line 110)
[2012-11-11T16:40:54+00:00] INFO: Processing package[make] action install (/vagrant/cookbooks/application/providers/default.rb line 69)
[2012-11-11T16:40:54+00:00] INFO: Processing package[libxslt-dev] action install (/vagrant/cookbooks/application/providers/default.rb line 69)
[2012-11-11T16:40:54+00:00] INFO: package[libxslt-dev] is a virtual package, actually acting on package[libxslt1-dev]
[2012-11-11T16:40:59+00:00] INFO: Processing package[libxml2-dev] action install (/vagrant/cookbooks/application/providers/default.rb line 69)
[2012-11-11T16:40:59+00:00] INFO: Processing package[git] action install (/vagrant/cookbooks/application/providers/default.rb line 69)
[2012-11-11T16:41:11+00:00] INFO: Processing directory[/var/www] action create (/vagrant/cookbooks/application/providers/default.rb line 75)
[2012-11-11T16:41:11+00:00] INFO: directory[/var/www] created directory /var/www
[2012-11-11T16:41:11+00:00] INFO: directory[/var/www] owner changed to 1000
[2012-11-11T16:41:11+00:00] INFO: directory[/var/www] group changed to 1000
[2012-11-11T16:41:11+00:00] INFO: directory[/var/www] mode changed to 755
[2012-11-11T16:41:11+00:00] INFO: Processing directory[/var/www/shared] action create (/vagrant/cookbooks/application/providers/default.rb line 82)
[2012-11-11T16:41:11+00:00] INFO: directory[/var/www/shared] created directory /var/www/shared
[2012-11-11T16:41:11+00:00] INFO: directory[/var/www/shared] owner changed to 1000
[2012-11-11T16:41:11+00:00] INFO: directory[/var/www/shared] group changed to 1000
[2012-11-11T16:41:11+00:00] INFO: directory[/var/www/shared] mode changed to 755
[2012-11-11T16:41:11+00:00] INFO: Processing file[/var/www/id_deploy] action create (/vagrant/cookbooks/application/providers/default.rb line 90)
[2012-11-11T16:41:11+00:00] INFO: entered create
[2012-11-11T16:41:11+00:00] INFO: file[/var/www/id_deploy] owner changed to 1000
[2012-11-11T16:41:11+00:00] INFO: file[/var/www/id_deploy] group changed to 1000
[2012-11-11T16:41:11+00:00] INFO: file[/var/www/id_deploy] mode changed to 600
[2012-11-11T16:41:11+00:00] INFO: file[/var/www/id_deploy] created file /var/www/id_deploy
[2012-11-11T16:41:11+00:00] INFO: Processing template[/var/www/deploy-ssh-wrapper] action create (/vagrant/cookbooks/application/providers/default.rb line 97)
[2012-11-11T16:41:11+00:00] INFO: template[/var/www/deploy-ssh-wrapper] updated content
[2012-11-11T16:41:11+00:00] INFO: template[/var/www/deploy-ssh-wrapper] owner changed to 1000
[2012-11-11T16:41:11+00:00] INFO: template[/var/www/deploy-ssh-wrapper] group changed to 1000
[2012-11-11T16:41:11+00:00] INFO: template[/var/www/deploy-ssh-wrapper] mode changed to 755
[2012-11-11T16:41:11+00:00] INFO: Processing ruby_block[myapp before_deploy] action create (/vagrant/cookbooks/application/providers/default.rb line 107)
[2012-11-11T16:41:11+00:00] INFO: Processing application_ruby_rails[myapp] action before_deploy (myapp::default line 110)
[2012-11-11T16:41:11+00:00] INFO: Processing application_ruby_unicorn[myapp] action before_deploy (myapp::default line 110)
[2012-11-11T16:41:11+00:00] INFO: ruby_block[myapp before_deploy] called
[2012-11-11T16:41:11+00:00] INFO: Processing gem_package[bundler] action install (/vagrant/cookbooks/application_ruby/providers/rails.rb line 156)
[2012-11-11T16:41:16+00:00] INFO: Processing template[/var/www/shared/database.yml] action create (/vagrant/cookbooks/application_ruby/providers/rails.rb line 167)
[2012-11-11T16:41:16+00:00] INFO: template[/var/www/shared/database.yml] updated content
[2012-11-11T16:41:16+00:00] INFO: template[/var/www/shared/database.yml] owner changed to 1000
[2012-11-11T16:41:16+00:00] INFO: template[/var/www/shared/database.yml] group changed to 1000
[2012-11-11T16:41:16+00:00] INFO: template[/var/www/shared/database.yml] mode changed to 644
[2012-11-11T16:41:16+00:00] INFO: Processing deploy_revision[myapp] action deploy (/vagrant/cookbooks/application/providers/default.rb line 122)
[2012-11-11T16:41:16+00:00] INFO: deploy_revision[myapp] rolling back to previous release /var/www/releases/0465c9e08a9f73ba248bf814e9c816599e75dd95
[2012-11-11T16:41:16+00:00] INFO: deploy_revision[myapp] created directories before symlinking:
[2012-11-11T16:41:16+00:00] INFO: deploy_revision[myapp] updated symlinks
[2012-11-11T16:41:16+00:00] INFO: deploy_revision[myapp] restarting with previous release
[2012-11-11T16:41:16+00:00] INFO: deploy_revision[myapp] restarting app with embedded recipe
[2012-11-11T16:41:16+00:00] INFO: deploy_revision[myapp] purged directories in checkout
[2012-11-11T16:41:16+00:00] INFO: deploy_revision[myapp] linked shared paths into current release:
================================================================================
Error executing action `deploy` on resource 'deploy_revision[myapp]'
================================================================================
Chef::Exceptions::FileNotFound
------------------------------
Cannot symlink /var/www/shared/database.yml to /var/www/releases/0465c9e08a9f73ba248bf814e9c816599e75dd95/config/database.yml before migrate: No such file or directory - /var/www/shared/database.yml or /var/www/releases/0465c9e08a9f73ba248bf814e9c816599e75dd95/config/database.yml
Resource Declaration:
---------------------
# In /vagrant/cookbooks/application/providers/default.rb
122: @deploy_resource = send(new_resource.strategy.to_sym, new_resource.name) do
123: action force ? :force_deploy : :deploy
124: scm_provider new_resource.scm_provider
125: revision new_resource.revision
126: repository new_resource.repository
127: enable_submodules new_resource.enable_submodules
128: user new_resource.owner
129: group new_resource.group
130: deploy_to new_resource.path
131: ssh_wrapper "#{new_resource.path}/deploy-ssh-wrapper" if new_resource.deploy_key
132: shallow_clone true
133: rollback_on_error new_resource.rollback_on_error
134: all_environments = ([new_resource.environment]+new_resource.sub_resources.map{|res| res.environment}).inject({}){|acc, val| acc.merge(val)}
135: environment all_environments
136: migrate new_resource.migrate
137: all_migration_commands = ([new_resource.migration_command]+new_resource.sub_resources.map{|res| res.migration_command}).select{|cmd| cmd && !cmd.empty?}
138: migration_command all_migration_commands.join(' && ')
139: restart_command do
140: ([new_resource]+new_resource.sub_resources).each do |res|
141: cmd = res.restart_command
142: if cmd.is_a? Proc
143: provider = Chef::Platform.provider_for_resource(res)
144: provider.load_current_resource
145: provider.instance_eval(&cmd)
146: elsif cmd && !cmd.empty?
147: execute cmd do
148: user new_resource.owner
149: group new_resource.group
150: environment all_environments
151: end
152: end
153: end
154: end
155: purge_before_symlink new_resource.purge_before_symlink
Compiled Resource:
------------------
# Declared in /vagrant/cookbooks/application/providers/default.rb:122:in `send'
deploy_revision("myapp") do
shared_path "/var/www/shared"
after_restart #<Proc:0x00007f44b6398f30@/vagrant/cookbooks/application/providers/default.rb:169>
git_ssh_wrapper "/var/www/deploy-ssh-wrapper"
group "vagrant"
rollback_on_error true
provider Chef::Provider::Deploy::Revision
destination "/var/www/shared/cached-copy"
before_restart #<Proc:0x00007f44b63991d8@/vagrant/cookbooks/application/providers/default.rb:166>
symlink_before_migrate {"database.yml"=>"config/database.yml"}
action [:deploy]
repo "http://github.com/lvnilesh/myapp.git"
scm_provider Chef::Provider::Git
shallow_clone true
repository_cache "cached-copy"
before_symlink #<Proc:0x00007f44b6399480@/vagrant/cookbooks/application/providers/default.rb:163>
cookbook_name :myapp
keep_releases 5
environment {"PATH"=>"/opt/vagrant_ruby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/vagrant_ruby/bin", "RAILS_ENV"=>"production"}
retry_delay 2
deploy_to "/var/www"
current_path "/var/www/current"
migration_command "bundle exec rake db:migrate"
user "vagrant"
revision "master"
before_migrate #<Proc:0x00007f44b6399728@/vagrant/cookbooks/application/providers/default.rb:160>
restart_command #<Proc:0x00007f44b639a3d0@/vagrant/cookbooks/application/providers/default.rb:139>
retries 0
remote "origin"
end
[2012-11-11T16:41:16+00:00] ERROR: Running exception handlers
[2012-11-11T16:41:16+00:00] ERROR: Exception handlers complete
[2012-11-11T16:41:16+00:00] FATAL: Stacktrace dumped to /vagrant/chef-solo/chef-stacktrace.out
[2012-11-11T16:41:16+00:00] FATAL: Chef::Exceptions::FileNotFound: deploy_revision[myapp] (/vagrant/cookbooks/application/providers/default.rb line 122) had an error: Chef::Exceptions::FileNotFound: Cannot symlink /var/www/shared/database.yml to /var/www/releases/0465c9e08a9f73ba248bf814e9c816599e75dd95/config/database.yml before migrate: No such file or directory - /var/www/shared/database.yml or /var/www/releases/0465c9e08a9f73ba248bf814e9c816599e75dd95/config/database.yml
vagrant@precise64:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment