Skip to content

Instantly share code, notes, and snippets.

@ahill00
Created March 31, 2013 16:39
Show Gist options
  • Save ahill00/5281213 to your computer and use it in GitHub Desktop.
Save ahill00/5281213 to your computer and use it in GitHub Desktop.
vagrant up razor fails
[razor] Importing base box 'opscode-ubuntu-12.04'...
[razor] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
Guest Additions Version: 4.1.22
VirtualBox Version: 4.2.10
[razor] Matching MAC address for NAT networking...
[razor] Clearing any previously set forwarded ports...
[razor] Forwarding ports...
[razor] -- 22 => 2222 (adapter 1)
[Berkshelf] installing cookbooks...
[Berkshelf] Using apt (1.9.0)
[Berkshelf] Using razor (0.4.0)
[Berkshelf] Installing dhcp (0.3.0) from git: 'git://github.com/fnichol/dhcp-cookbook.git' with branch: 'craigtracey-with-upstart'
[Berkshelf] Using router (0.1.0) at path: '/home/ahill/code/razor-vagrant-lab/cookbooks-internal/router'
[Berkshelf] Using puppet (0.2.0)
[Berkshelf] Installing chef-server (2.0.0) from git: 'git://github.com/opscode-cookbooks/chef-server.git' with branch: 'a8fb304a7cba7fd3c710a2c175bc08a48007179c'
[Berkshelf] Using djbdns (1.0.2)
[Berkshelf] Using apache2 (1.6.0)
[Berkshelf] Using chef-client (2.2.2)
[Berkshelf] Using build-essential (1.3.4)
[Berkshelf] Using git (2.3.0)
[Berkshelf] Using dmg (1.1.0)
[Berkshelf] Using yum (2.2.0)
[Berkshelf] Using windows (1.8.4)
[Berkshelf] Using chef_handler (1.1.4)
[Berkshelf] Using runit (1.1.0)
[Berkshelf] Using tftp (1.1.0)
[Berkshelf] Using mongodb (0.11.0)
[Berkshelf] Using postgresql (2.2.2)
[Berkshelf] Using openssl (1.0.2)
[Berkshelf] Using database (1.3.12)
[Berkshelf] Using mysql (2.1.2)
[Berkshelf] Using aws (0.100.6)
[Berkshelf] Using xfs (1.1.0)
[Berkshelf] Using nodejs (1.1.1)
[Berkshelf] Using daemontools (1.0.0)
[Berkshelf] Using ucspi-tcp (1.0.0)
[Berkshelf] Using bluepill (2.2.2)
[Berkshelf] Using rsyslog (1.5.0)
[Berkshelf] Using cron (1.2.2)
[razor] Creating shared folders metadata...
[razor] Clearing any previously set network interfaces...
[razor] Preparing network interfaces based on configuration...
[razor] Booting VM...
[razor] Waiting for VM to boot. This can take a few minutes.
[razor] VM booted and ready for use!
[razor] Configuring and enabling network interfaces...
[razor] Setting host name...
[razor] Mounting shared folders...
[razor] -- v-root: /vagrant
[razor] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[razor] -- v-csdb-2: /tmp/vagrant-chef-1/chef-solo-2/data_bags
[razor] Running provisioner: Vagrant::Provisioners::ChefSolo...
[razor] Generating chef JSON and uploading...
[razor] Running chef-solo...
stdin: is not a tty
[2013-03-31T16:37:27+00:00] INFO: *** Chef 10.14.4 ***
[2013-03-31T16:37:28+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[router]", "recipe[dhcp]", "recipe[djbdns::internal_server]", "recipe[djbdns::cache]", "recipe[razor]"] from JSON
[2013-03-31T16:37:28+00:00] INFO: Run List is [recipe[apt], recipe[router], recipe[dhcp], recipe[djbdns::internal_server], recipe[djbdns::cache], recipe[razor]]
[2013-03-31T16:37:28+00:00] INFO: Run List expands to [apt, router, dhcp, djbdns::internal_server, djbdns::cache, razor]
[2013-03-31T16:37:28+00:00] INFO: Starting Chef Run for razor.razornet.local
[2013-03-31T16:37:28+00:00] INFO: Running start handlers
[2013-03-31T16:37:28+00:00] INFO: Start handlers complete.
[2013-03-31T16:37:28+00:00] WARN: Missing gem 'right_aws'
[2013-03-31T16:37:29+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
[2013-03-31T16:37:59+00:00] INFO: execute[apt-get-update] ran successfully
[2013-03-31T16:37:59+00:00] INFO: Processing execute[apt-get update] action nothing (apt::default line 29)
[2013-03-31T16:37:59+00:00] INFO: Processing execute[apt-get autoremove] action nothing (apt::default line 36)
[2013-03-31T16:37:59+00:00] INFO: Processing execute[apt-get autoclean] action nothing (apt::default line 42)
[2013-03-31T16:37:59+00:00] INFO: Processing package[update-notifier-common] action install (apt::default line 48)
[2013-03-31T16:38:02+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
[2013-03-31T16:38:08+00:00] INFO: execute[apt-get-update] ran successfully
[2013-03-31T16:38:08+00:00] INFO: Processing execute[apt-get-update-periodic] action run (apt::default line 52)
[2013-03-31T16:38:08+00:00] INFO: Processing directory[/var/cache/local] action create (apt::default line 62)
[2013-03-31T16:38:08+00:00] INFO: directory[/var/cache/local] created directory /var/cache/local
[2013-03-31T16:38:08+00:00] INFO: directory[/var/cache/local] owner changed to 0
[2013-03-31T16:38:08+00:00] INFO: directory[/var/cache/local] group changed to 0
[2013-03-31T16:38:08+00:00] INFO: directory[/var/cache/local] mode changed to 755
[2013-03-31T16:38:08+00:00] INFO: Processing directory[/var/cache/local/preseeding] action create (apt::default line 62)
[2013-03-31T16:38:08+00:00] INFO: directory[/var/cache/local/preseeding] created directory /var/cache/local/preseeding
[2013-03-31T16:38:08+00:00] INFO: directory[/var/cache/local/preseeding] owner changed to 0
[2013-03-31T16:38:08+00:00] INFO: directory[/var/cache/local/preseeding] group changed to 0
[2013-03-31T16:38:08+00:00] INFO: directory[/var/cache/local/preseeding] mode changed to 755
[2013-03-31T16:38:08+00:00] INFO: Processing execute[Enable IPv4 forwarding in /etc/sysctl.conf] action run (router::default line 4)
[2013-03-31T16:38:08+00:00] INFO: execute[Enable IPv4 forwarding in /etc/sysctl.conf] ran successfully
[2013-03-31T16:38:08+00:00] INFO: Processing execute[Enable IPv4 forwarding on running node] action run (router::default line 9)
[2013-03-31T16:38:08+00:00] INFO: execute[Enable IPv4 forwarding on running node] ran successfully
[2013-03-31T16:38:08+00:00] INFO: Processing execute[Add iptables masquerading to /etc/rc.local] action run (router::default line 14)
[2013-03-31T16:38:08+00:00] INFO: execute[Add iptables masquerading to /etc/rc.local] ran successfully
[2013-03-31T16:38:08+00:00] INFO: Processing execute[Enable iptables masquerading on running node] action run (router::default line 19)
[2013-03-31T16:38:08+00:00] INFO: execute[Enable iptables masquerading on running node] ran successfully
[2013-03-31T16:38:08+00:00] INFO: Processing package[isc-dhcp-server] action install (dhcp::server line 21)
[2013-03-31T16:38:16+00:00] INFO: Processing service[isc-dhcp-server] action enable (dhcp::server line 23)
[2013-03-31T16:38:16+00:00] INFO: Processing template[/etc/default/isc-dhcp-server] action create (dhcp::server line 32)
[2013-03-31T16:38:16+00:00] INFO: template[/etc/default/isc-dhcp-server] backed up to /var/chef/backup/etc/default/isc-dhcp-server.chef-20130331163816
[2013-03-31T16:38:16+00:00] INFO: template[/etc/default/isc-dhcp-server] updated content
[2013-03-31T16:38:16+00:00] INFO: template[/etc/default/isc-dhcp-server] owner changed to 0
[2013-03-31T16:38:16+00:00] INFO: template[/etc/default/isc-dhcp-server] group changed to 0
[2013-03-31T16:38:16+00:00] INFO: template[/etc/default/isc-dhcp-server] mode changed to 644
[2013-03-31T16:38:16+00:00] INFO: Processing template[/etc/dhcp/dhcpd.conf] action create (dhcp::server line 53)
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/dhcpd.conf] backed up to /var/chef/backup/etc/dhcp/dhcpd.conf.chef-20130331163816
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/dhcpd.conf] updated content
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/dhcpd.conf] owner changed to 0
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/dhcpd.conf] group changed to 0
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/dhcpd.conf] mode changed to 644
[2013-03-31T16:38:16+00:00] INFO: Processing directory[/etc/dhcp/groups.d] action create (dhcp::server line 70)
[2013-03-31T16:38:16+00:00] INFO: directory[/etc/dhcp/groups.d] created directory /etc/dhcp/groups.d
[2013-03-31T16:38:16+00:00] INFO: Processing directory[/etc/dhcp/subnets.d] action create (dhcp::server line 84)
[2013-03-31T16:38:16+00:00] INFO: directory[/etc/dhcp/subnets.d] created directory /etc/dhcp/subnets.d
[2013-03-31T16:38:16+00:00] INFO: Processing template[/etc/dhcp/subnets.d/subnet_list.conf] action create (dhcp::server line 86)
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/subnets.d/subnet_list.conf] updated content
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/subnets.d/subnet_list.conf] owner changed to 0
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/subnets.d/subnet_list.conf] group changed to 0
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/subnets.d/subnet_list.conf] mode changed to 644
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/subnets.d/subnet_list.conf] not queuing delayed action restart on service[isc-dhcp-server] (delayed), as it's already been queued
[2013-03-31T16:38:16+00:00] INFO: Processing dhcp_subnet[172.16.33.0] action add (dhcp::server line 100)
[2013-03-31T16:38:16+00:00] INFO: Processing template[/etc/dhcp/subnets.d/172.16.33.0.conf] action create (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/dhcp/providers/subnet.rb line 4)
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/subnets.d/172.16.33.0.conf] updated content
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/subnets.d/172.16.33.0.conf] owner changed to 0
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/subnets.d/172.16.33.0.conf] group changed to 0
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/subnets.d/172.16.33.0.conf] mode changed to 644
[2013-03-31T16:38:16+00:00] INFO: template[/etc/dhcp/subnets.d/172.16.33.0.conf] not queuing delayed action restart on service[isc-dhcp-server] (delayed), as it's already been queued
[2013-03-31T16:38:16+00:00] INFO: Processing directory[/etc/dhcp/hosts.d] action create (dhcp::server line 113)
[2013-03-31T16:38:16+00:00] INFO: directory[/etc/dhcp/hosts.d] created directory /etc/dhcp/hosts.d
[2013-03-31T16:38:16+00:00] INFO: Processing service[runit] action nothing (runit::default line 20)
[2013-03-31T16:38:16+00:00] INFO: Processing execute[start-runsvdir] action nothing (runit::default line 24)
[2013-03-31T16:38:16+00:00] INFO: Processing execute[runit-hup-init] action nothing (runit::default line 33)
[2013-03-31T16:38:16+00:00] INFO: Processing package[runit] action install (runit::default line 87)
[2013-03-31T16:38:16+00:00] INFO: Processing cookbook_file[/tmp/vagrant-chef-1/preseed/runit/runit-2.1.1-6.2ubuntu2.seed] action create (dynamically defined)
[2013-03-31T16:38:16+00:00] INFO: cookbook_file[/tmp/vagrant-chef-1/preseed/runit/runit-2.1.1-6.2ubuntu2.seed] created file /tmp/vagrant-chef-1/preseed/runit/runit-2.1.1-6.2ubuntu2.seed
[2013-03-31T16:38:16+00:00] INFO: package[runit] pre-seeding package installation instructions
[2013-03-31T16:38:19+00:00] INFO: package[runit] sending nothing action to execute[start-runsvdir] (immediate)
[2013-03-31T16:38:19+00:00] INFO: Processing execute[start-runsvdir] action nothing (runit::default line 24)
[2013-03-31T16:38:19+00:00] INFO: package[runit] sending nothing action to execute[runit-hup-init] (immediate)
[2013-03-31T16:38:19+00:00] INFO: Processing execute[runit-hup-init] action nothing (runit::default line 33)
[2013-03-31T16:38:19+00:00] INFO: Processing package[djbdns] action install (djbdns::default line 46)
[2013-03-31T16:38:24+00:00] INFO: Processing user[dnscache] action create (djbdns::default line 79)
[2013-03-31T16:38:24+00:00] INFO: user[dnscache] created
[2013-03-31T16:38:24+00:00] INFO: Processing user[dnslog] action create (djbdns::default line 95)
[2013-03-31T16:38:24+00:00] INFO: user[dnslog] created
[2013-03-31T16:38:24+00:00] INFO: Processing user[tinydns] action create (djbdns::default line 111)
[2013-03-31T16:38:25+00:00] INFO: user[tinydns] created
[2013-03-31T16:38:25+00:00] INFO: Processing directory[/etc/djbdns] action create (djbdns::default line 127)
[2013-03-31T16:38:25+00:00] INFO: directory[/etc/djbdns] created directory /etc/djbdns
[2013-03-31T16:38:25+00:00] INFO: Processing execute[/usr/bin/tinydns-conf tinydns dnslog /etc/djbdns/tinydns-internal 127.0.0.1] action run (djbdns::internal_server line 23)
[2013-03-31T16:38:25+00:00] INFO: execute[/usr/bin/tinydns-conf tinydns dnslog /etc/djbdns/tinydns-internal 127.0.0.1] ran successfully
[2013-03-31T16:38:25+00:00] INFO: Processing execute[build-tinydns-internal-data] action nothing (djbdns::internal_server line 27)
[2013-03-31T16:38:25+00:00] INFO: Processing file[/etc/djbdns/tinydns-internal/root/data] action create (djbdns::internal_server line 37)
[2013-03-31T16:38:25+00:00] INFO: Processing djbdns_rr[razornet.local] action add (djbdns::internal_server line 45)
[2013-03-31T16:38:25+00:00] INFO: Processing execute[./add-ns razornet.local 172.16.33.11] action run (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/djbdns/providers/rr.rb line 27)
[2013-03-31T16:38:25+00:00] INFO: execute[./add-ns razornet.local 172.16.33.11] ran successfully
[2013-03-31T16:38:25+00:00] INFO: Processing djbdns_rr[razor.razornet.local] action add (djbdns::internal_server line 45)
[2013-03-31T16:38:25+00:00] INFO: djbdns_rr[razor.razornet.local] not queuing delayed action run on execute[build-tinydns-internal-data] (delayed), as it's already been queued
[2013-03-31T16:38:25+00:00] INFO: Processing execute[./add-host razor.razornet.local 172.16.33.11] action run (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/djbdns/providers/rr.rb line 27)
[2013-03-31T16:38:25+00:00] INFO: execute[./add-host razor.razornet.local 172.16.33.11] ran successfully
[2013-03-31T16:38:25+00:00] INFO: Processing djbdns_rr[chef.razornet.local] action add (djbdns::internal_server line 45)
[2013-03-31T16:38:25+00:00] INFO: djbdns_rr[chef.razornet.local] not queuing delayed action run on execute[build-tinydns-internal-data] (delayed), as it's already been queued
[2013-03-31T16:38:25+00:00] INFO: Processing execute[./add-host chef.razornet.local 172.16.33.21] action run (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/djbdns/providers/rr.rb line 27)
[2013-03-31T16:38:25+00:00] INFO: execute[./add-host chef.razornet.local 172.16.33.21] ran successfully
[2013-03-31T16:38:25+00:00] INFO: Processing djbdns_rr[puppet.razornet.local] action add (djbdns::internal_server line 45)
[2013-03-31T16:38:25+00:00] INFO: djbdns_rr[puppet.razornet.local] not queuing delayed action run on execute[build-tinydns-internal-data] (delayed), as it's already been queued
[2013-03-31T16:38:25+00:00] INFO: Processing execute[./add-host puppet.razornet.local 172.16.33.31] action run (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/djbdns/providers/rr.rb line 27)
[2013-03-31T16:38:25+00:00] INFO: execute[./add-host puppet.razornet.local 172.16.33.31] ran successfully
[2013-03-31T16:38:25+00:00] INFO: Processing link[/etc/sv/tinydns-internal] action create (djbdns::internal_server line 70)
[2013-03-31T16:38:25+00:00] INFO: link[/etc/sv/tinydns-internal] created
[2013-03-31T16:38:25+00:00] INFO: Processing service[tinydns-internal] action nothing (dynamically defined)
[2013-03-31T16:38:25+00:00] INFO: Processing runit_service[tinydns-internal] action enable (djbdns::internal_server line 74)
================================================================================
Error executing action `enable` on resource 'runit_service[tinydns-internal]'
================================================================================
NameError
---------
Cannot find a resource for load_new_resource_state on ubuntu version 12.04
Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/runit/libraries/provider_runit_service.rb:93:in `action_enable'
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/djbdns/recipes/internal_server.rb
74: runit_service "tinydns-internal"
75:
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/djbdns/recipes/internal_server.rb:74:in `from_file'
runit_service("tinydns-internal") do
provider Chef::Provider::Service::Runit
action :enable
supports {:restart=>true, :reload=>true, :status=>true}
retries 0
retry_delay 2
service_name "tinydns-internal"
pattern "tinydns-internal"
status_command "/usr/bin/sv status /etc/service"
startup_type :automatic
sv_bin "/usr/bin/sv"
sv_dir "/etc/sv"
service_dir "/etc/service"
log true
restart_on_update true
run_template_name "tinydns-internal"
log_template_name "tinydns-internal"
finish_script_template_name "tinydns-internal"
sv_templates true
service_mirror # Declared in
service("tinydns-internal") do
provider Chef::Provider::Service::Simple
action [:nothing]
supports {:restart=>true, :reload=>true, :status=>true}
retries 0
retry_delay 2
service_name "tinydns-internal"
pattern "tinydns-internal"
start_command "/usr/bin/sv start /etc/service/tinydns-internal"
stop_command "/usr/bin/sv stop /etc/service/tinydns-internal"
status_command "/usr/bin/sv status /etc/service/tinydns-internal"
restart_command "/usr/bin/sv restart /etc/service/tinydns-internal"
startup_type :automatic
end
cookbook_name :djbdns
recipe_name "internal_server"
end
[2013-03-31T16:38:25+00:00] ERROR: Running exception handlers
[2013-03-31T16:38:25+00:00] ERROR: Exception handlers complete
[2013-03-31T16:38:25+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-03-31T16:38:25+00:00] FATAL: NameError: runit_service[tinydns-internal] (djbdns::internal_server line 74) had an error: NameError: Cannot find a resource for load_new_resource_state on ubuntu version 12.04
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment