Skip to content

Instantly share code, notes, and snippets.

@justizin
Created July 3, 2015 07:17
Show Gist options
  • Save justizin/c40729ba454aa94c44b7 to your computer and use it in GitHub Desktop.
Save justizin/c40729ba454aa94c44b7 to your computer and use it in GitHub Desktop.
bitmonk runit wtf kitchen output
-----> Starting Kitchen (v1.4.0)
-----> Cleaning up any prior instances of <default-ubuntu-1404>
-----> Destroying <default-ubuntu-1404>...
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
Vagrant instance <default-ubuntu-1404> destroyed.
Finished destroying <default-ubuntu-1404> (0m3.36s).
-----> Testing <default-ubuntu-1404>
-----> Creating <default-ubuntu-1404>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'opscode-ubuntu-14.04'...
Progress: 30%
Progress: 40%
Progress: 60%
Progress: 70%
Progress: 80%
Progress: 90%
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: kitchen-bitmonk_runit_wtf-default-ubuntu-1404_default_1435907546555_31694
==> default: Fixed port collision for 22 => 2222. Now on port 2203.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2203 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2203
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if its present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Machine not provisioning because `--no-provision` is specified.
[SSH] Established
Vagrant instance <default-ubuntu-1404> created.
Finished creating <default-ubuntu-1404> (0m32.00s).
-----> Converging <default-ubuntu-1404>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 3.2.4...
Removing non-cookbook files before transfer
Preparing solo.rb
-----> Installing Chef Omnibus (install only if missing)
Downloading https://www.chef.io/chef/install.sh to file /tmp/install.sh
Trying wget...
Download complete.
Downloading Chef for ubuntu...
downloading https://www.chef.io/chef/metadata?v=&prerelease=false&nightlies=false&p=ubuntu&pv=14.04&m=x86_64
to file /tmp/install.sh.1344/metadata.txt
trying wget...
url https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/10.04/x86_64/chef_12.4.0-1_amd64.deb
md5 630a8752be2cb45c69b7880adb2340f1
sha256 2d66c27884658f851d43cec850b4951b4d540492be521ae16f6941be80e8b1e6
downloaded metadata file looks valid...
downloading https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/10.04/x86_64/chef_12.4.0-1_amd64.deb
to file /tmp/install.sh.1344/chef_12.4.0-1_amd64.deb
trying wget...
Comparing checksum with sha256sum...
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
You are installing an omnibus package without a version pin. If you are installing
on production servers via an automated process this is DANGEROUS and you will
be upgraded without warning on new releases, even to new major releases.
Letting the version float is only appropriate in desktop, test, development or
CI/CD environments.
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Installing Chef
installing with dpkg...
Selecting previously unselected package chef.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 32400 files and directories currently installed.)
Preparing to unpack .../chef_12.4.0-1_amd64.deb ...
Unpacking chef (12.4.0-1) ...
Setting up chef (12.4.0-1) ...
Thank you for installing Chef!
Transferring files to <default-ubuntu-1404>
Starting Chef Client, version 12.4.0
Compiling Cookbooks...
Recipe: apt::default
* bash[apt-get-update at compile time] action run
- execute "bash" "/tmp/chef-script20150703-1438-4jr15v"
Converging 19 resources
* file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing)
* bash[apt-get-update at compile time] action nothing (skipped due to action :nothing)
* directory[/etc/apt/apt.conf.d] action create (up to date)
* cookbook_file[/etc/apt/apt.conf.d/15update-stamp] action create
- create new file /etc/apt/apt.conf.d/15update-stamp
- update content in file /etc/apt/apt.conf.d/15update-stamp from none to 174cdb
--- /etc/apt/apt.conf.d/15update-stamp 2015-07-03 07:13:15.457950347 +0000
+++ /etc/apt/apt.conf.d/.15update-stamp20150703-1438-5enumc 2015-07-03 07:13:15.457950347 +0000
@@ -1 +1,2 @@
+APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";};
* execute[apt-get-update] action run
- execute apt-get update
- update utime on file /var/lib/apt/periodic/update-success-stamp
* execute[apt-get update] action nothing (skipped due to action :nothing)
* execute[apt-get autoremove] action nothing (skipped due to action :nothing)
* execute[apt-get autoclean] action nothing (skipped due to action :nothing)
* execute[apt-get-update-periodic] action run (skipped due to only_if)
* directory[/var/cache/local] action create
- create new directory /var/cache/local
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/var/cache/local/preseeding] action create
- create new directory /var/cache/local/preseeding
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
Recipe: runit::default
* service[runit] action nothing (skipped due to action :nothing)
* execute[start-runsvdir] action nothing (skipped due to action :nothing)
* execute[runit-hup-init] action nothing (skipped due to action :nothing)
* apt_package[runit] action install
Recipe: <Dynamically Defined Resource>
* cookbook_file[/tmp/kitchen/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed] action create
- create new file /tmp/kitchen/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed
- update content in file /tmp/kitchen/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed from none to 9c6758
--- /tmp/kitchen/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed 2015-07-03 07:13:23.505949923 +0000
+++ /tmp/kitchen/cache/preseed/runit/.runit-2.1.1-6.2ubuntu3.seed20150703-1438-1olhvle 2015-07-03 07:13:23.505949923 +0000
@@ -1 +1,2 @@
+runit runit/signalinit boolean true
- preseed package runit
- install version 2.1.1-6.2ubuntu3 of package runit
Recipe: runit::default
* execute[start-runsvdir] action nothing (skipped due to action :nothing)
* execute[runit-hup-init] action nothing (skipped due to action :nothing)
Recipe: bitmonk_runit_wtf::default
- create user wtf
Recipe: <Dynamically Defined Resource>
* service[wtf] action nothing (skipped due to action :nothing)
Recipe: bitmonk_runit_wtf::default
* directory[/etc/sv/wtf] action create
- create new directory /etc/sv/wtf
- change mode from '' to '0755'
* template[/etc/sv/wtf/run] action create
- create new file /etc/sv/wtf/run
- update content in file /etc/sv/wtf/run from none to 8fa2cd
--- /etc/sv/wtf/run 2015-07-03 07:13:26.305371647 +0000
+++ /tmp/chef-rendered-template20150703-1438-1wkjxvs 2015-07-03 07:13:26.305371647 +0000
@@ -1 +1,4 @@
+#!/bin/bash
+exec tail -f /var/log/syslog
+
- change mode from '' to '0755'
* directory[/etc/sv/wtf/log] action create
- create new directory /etc/sv/wtf/log
* directory[/etc/sv/wtf/log/main] action create
- create new directory /etc/sv/wtf/log/main
- change mode from '' to '0755'
* directory[/var/log/wtf] action create
- create new directory /var/log/wtf
- change mode from '' to '0755'
* link[/var/log/wtf/config] action create
- create symlink at /var/log/wtf/config to /etc/sv/wtf/log/config
* file[/etc/sv/wtf/log/run] action create
- create new file /etc/sv/wtf/log/run
- update content in file /etc/sv/wtf/log/run from none to 9cc0d8
--- /etc/sv/wtf/log/run 2015-07-03 07:13:26.329365478 +0000
+++ /etc/sv/wtf/log/.run20150703-1438-1cbbthz 2015-07-03 07:13:26.325366506 +0000
@@ -1 +1,3 @@
+#!/bin/sh
+exec svlogd -tt /var/log/wtf
- change mode from '' to '0755'
* template[/etc/sv/wtf/log/config] action create
- create new file /etc/sv/wtf/log/config
- update content in file /etc/sv/wtf/log/config from none to e3b0c4
(no diff)
- change mode from '' to '0644'
* directory[/etc/sv/wtf/env] action create
- create new directory /etc/sv/wtf/env
- change mode from '' to '0755'
* ruby_block[zap extra env files] action run (skipped due to only_if)
* directory[/etc/sv/wtf/control] action create
- create new directory /etc/sv/wtf/control
- change mode from '' to '0755'
* link[/etc/init.d/wtf] action create
- create symlink at /etc/init.d/wtf to /usr/bin/sv
* file[/etc/sv/wtf/down] action nothing (skipped due to action :nothing)
* link[/etc/service/wtf] action create
- create symlink at /etc/service/wtf to /etc/sv/wtf
* runit_service[wtf] action start
================================================================================
Error executing action `start` on resource 'runit_service[wtf]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /usr/bin/sv start /etc/service/wtf ----
STDOUT: warning: /etc/service/wtf: unable to open supervise/ok: file does not exist
STDERR:
---- End output of /usr/bin/sv start /etc/service/wtf ----
Ran /usr/bin/sv start /etc/service/wtf returned 1
---------------
/tmp/kitchen/cookbooks/runit/libraries/helpers.rb:166:in `start_service'
/tmp/kitchen/cookbooks/runit/libraries/provider_runit_service.rb:281:in `block in <class:RunitService>'
Resource Declaration:
---------------------
25: runit_service 'wtf' do
26: default_logger true
27: action [:enable, :start]
28: end
29:
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cookbooks/bitmonk_runit_wtf/recipes/default.rb:25:in `from_file'
runit_service("wtf") do
provider Chef::Provider::RunitService
action [:enable, :start]
updated true
supports {:restart=>true, :reload=>true, :status=>true}
retries 0
retry_delay 2
default_guard_interpreter :default
service_name "wtf"
pattern "wtf"
status_command "/usr/bin/sv status /etc/service"
sv_bin "/usr/bin/sv"
sv_dir "/etc/sv"
service_dir "/etc/service"
lsb_init_dir "/etc/init.d"
log true
default_logger true
restart_on_update true
run_template_name "wtf"
log_template_name "wtf"
check_script_template_name "wtf"
finish_script_template_name "wtf"
service_mirror # Declared in
service("wtf") do
provider Chef::Provider::Service::Simple
action :nothing
supports {:restart=>true, :reload=>true, :status=>true}
retries 0
retry_delay 2
default_guard_interpreter :default
service_name "wtf"
pattern "wtf"
start_command "/usr/bin/sv start /etc/service/wtf"
stop_command "/usr/bin/sv stop /etc/service/wtf"
status_command "/usr/bin/sv status /etc/service/wtf"
restart_command "/usr/bin/sv restart /etc/service/wtf"
end
declared_type :runit_service
cookbook_name :bitmonk_runit_wtf
recipe_name "default"
end
Running handlers:
[2015-07-03T07:13:26+00:00] ERROR: Running exception handlers
Running handlers complete
[2015-07-03T07:13:26+00:00] ERROR: Exception handlers complete
Chef Client failed. 22 resources updated in 21.995021864 seconds
[2015-07-03T07:13:26+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2015-07-03T07:13:26+00:00] ERROR: runit_service[wtf] (bitmonk_runit_wtf::default line 25) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /usr/bin/sv start /etc/service/wtf ----
STDOUT: warning: /etc/service/wtf: unable to open supervise/ok: file does not exist
STDERR:
---- End output of /usr/bin/sv start /etc/service/wtf ----
Ran /usr/bin/sv start /etc/service/wtf returned 1
[2015-07-03T07:13:26+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> Converge failed on instance <default-ubuntu-1404>.
>>>>>> Please see .kitchen/logs/default-ubuntu-1404.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sh -c '
sudo -E /opt/chef/bin/chef-solo --config /tmp/kitchen/solo.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json
']
>>>>>> ----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment