Skip to content

Instantly share code, notes, and snippets.

@nathansamson
Last active August 29, 2015 13:56
Show Gist options
  • Save nathansamson/8813205 to your computer and use it in GitHub Desktop.
Save nathansamson/8813205 to your computer and use it in GitHub Desktop.
[nathan@omega deis-dev]$ vagrant provision
[default] Running provisioner: shell...
[default] Running: inline script
stdin: is not a tty
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Successfully installed etcd-0.0.6
1 gem installed
Reading package lists...
Building dependency tree...
Reading state information...
avahi-daemon is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
[default] Running provisioner: chef_client...
Creating folder to hold client key...
Uploading chef client validation key...
Generating chef JSON and uploading...
Running chef-client...
stdin: is not a tty
[2014-02-04T21:52:32+00:00] INFO: Forking chef instance to converge...
[2014-02-04T21:52:32+00:00] INFO: *** Chef 11.8.0 ***
[2014-02-04T21:52:32+00:00] INFO: Chef-client pid: 3087
[2014-02-04T21:52:33+00:00] INFO: Setting the run_list to ["recipe[deis::controller]"] from JSON
[2014-02-04T21:52:33+00:00] INFO: Run List is [recipe[deis::controller]]
[2014-02-04T21:52:33+00:00] INFO: Run List expands to [deis::controller]
[2014-02-04T21:52:33+00:00] INFO: Starting Chef Run for deis-controller
[2014-02-04T21:52:33+00:00] INFO: Running start handlers
[2014-02-04T21:52:33+00:00] INFO: Start handlers complete.
[2014-02-04T21:52:36+00:00] INFO: Loading cookbooks [apt, build-essential, chef_handler, deis, dmg, docker, dpkg_autostart, git, golang, lxc, modules, rsyslog, runit, sudo, sysctl, windows, yum, yum-epel]
[2014-02-04T21:52:38+00:00] INFO: ruby_block[wait-for-etcd] called
================================================================================
Error executing action `run` on resource 'ruby_block[wait-for-database]'
================================================================================
Timeout::Error
--------------
execution expired
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/deis/libraries/etcd.rb:17:in `sleep'
/var/chef/cache/cookbooks/deis/libraries/etcd.rb:17:in `rescue in block in wait_for_key'
/var/chef/cache/cookbooks/deis/libraries/etcd.rb:13:in `block in wait_for_key'
/var/chef/cache/cookbooks/deis/libraries/etcd.rb:11:in `wait_for_key'
/var/chef/cache/cookbooks/deis/recipes/database.rb:20:in `block (2 levels) in from_file'
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/deis/recipes/database.rb
18: ruby_block 'wait-for-database' do
19: block do
20: EtcdHelper.wait_for_key(node.deis.public_ip, node.deis.etcd.port,
21: '/deis/database/host')
22: end
23: end
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/deis/recipes/database.rb:18:in `from_file'
ruby_block("wait-for-database") do
action "run"
retries 0
retry_delay 2
block_name "wait-for-database"
cookbook_name "deis"
recipe_name "database"
block #<Proc:0x00000003b42488@/var/chef/cache/cookbooks/deis/recipes/database.rb:19>
end
[2014-02-04T21:53:09+00:00] INFO: Running queued delayed notifications before re-raising exception
[2014-02-04T21:53:09+00:00] ERROR: Running exception handlers
[2014-02-04T21:53:09+00:00] ERROR: Exception handlers complete
[2014-02-04T21:53:09+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-02-04T21:53:09+00:00] INFO: Sending resource update report (run-id: 040ca745-c544-4821-93df-4a7ddb65c162)
[2014-02-04T21:53:12+00:00] ERROR: ruby_block[wait-for-database] (deis::database line 18) had an error: Timeout::Error: execution expired
[2014-02-04T21:53:12+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
vagrant@deis-controller:~$ sudo docker logs deis-database
2014-02-04T20:38:53Z 95bdc977a53b confd[51]: ERROR exit status 2
2014-02-04 20:38:53 UTC LOG: database system was shut down at 2014-01-26 22:59:57 UTC
2014-02-04 20:38:53 UTC LOG: database system is ready to accept connections
2014-02-04 20:38:53 UTC LOG: autovacuum launcher started
ALTER ROLE
CREATE ROLE
ALTER ROLE
CREATE DATABASE
vagrant@deis-controller:~$
vagrant@deis-controller:~$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a50b454f5049 deis/redis:latest /app/bin/boot About an hour ago Exit -127 0.0.0.0:6379->6379/tcp deis-cache
95bdc977a53b deis/postgres:latest /app/bin/boot About an hour ago Exit -127 deis-database
1a251954a35d deis/etcd:latest /app/bin/boot About an hour ago Up 23 minutes 0.0.0.0:4001->4001/tcp, 0.0.0.0:7001->7001/tcp deis-etcd
vagrant@deis-controller:~$ h
vagrant@deis-controller:~$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2e769ae9e138 deis/server:latest /app/bin/boot 10 minutes ago Up 10 minutes 8000/tcp deis-server
0d30b3a2ce10 deis/redis:latest /app/bin/boot 13 minutes ago Up 10 minutes 6379/tcp deis-cache
c4e35ec14cb8 deis/postgres:latest /app/bin/boot 16 minutes ago Up 13 minutes 5432/tcp deis-database
1a251954a35d deis/etcd:latest /app/bin/boot 2 hours ago Up 47 minutes 0.0.0.0:4001->4001/tcp, 0.0.0.0:7001->7001/tcp deis-etcd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment