Skip to content

Remove gem version lock and new template for ubuntu-11.10-server-i386 with ruby 1.9.3p0 #152

Closed
wants to merge 4 commits into from

2 participants

@Nerian
Nerian commented Nov 5, 2011

Summary:

  • Remove gem version lock

  • new template for ubuntu-11.10-server-i386 with ruby 1.9.3p0

I tested the box and it passed all cucumber tests.

PD: Awesome gem, great work!

@Nerian
Nerian commented Nov 5, 2011

Hold a sec, there is something broken.


➜  sparkle_share_web git:(feature/new_project) ✗ vagrant up
[default] Importing base box 'ubuntu11.10'...
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- ssh: 22 => 2222 (adapter 1)
[default] Creating shared folders metadata...
[default] Running any VM customizations...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Mounting shared folders...
[default] -- v-root: /vagrant
[default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
[default] stdin: is not a tty
: stderr
[default] /opt/ruby/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':: stderr
[default] 
: stderr
[default] It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
: stderr
[default] /opt/ruby/lib/ruby/gems/1.9.1/gems/systemu-2.2.0/lib/systemu.rb:29: Use RbConfig instead of obsolete and deprecated Config.: stderr
[default] 
: stderr
[default] [Sat, 05 Nov 2011 19:47:55 +0000] INFO: *** Chef 0.10.4 ***
: stdout
[default] [Sat, 05 Nov 2011 19:47:57 +0000] INFO: Setting the run_list to ["recipe[git]", "recipe[gitolite]", "recipe[rvm]"] from JSON
: stdout
[default] [Sat, 05 Nov 2011 19:47:57 +0000] INFO: Run List is [recipe[git], recipe[gitolite], recipe[rvm]]
: stdout
[default] [Sat, 05 Nov 2011 19:47:57 +0000] INFO: Run List expands to [git, gitolite, rvm]
: stdout
[default] [Sat, 05 Nov 2011 19:47:57 +0000] INFO: Starting Chef Run for ubuntu-11.10-server-i386
: stdout
[default] [Sat, 05 Nov 2011 19:47:57 +0000] ERROR: Running exception handlers
: stdout
[default] [Sat, 05 Nov 2011 19:47:57 +0000] ERROR: Exception handlers complete
: stdout
[default] [Sat, 05 Nov 2011 19:47:57 +0000] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
: stdout
[default] [Sat, 05 Nov 2011 19:47:57 +0000] FATAL: NameError: uninitialized constant Chef::Recipe::Opscode
: stdout
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

chef-solo -c /tmp/vagrant-chef-1/solo.rb -j /tmp/vagrant-chef-1/dna.json

The output of the command prior to failing is outputted below:

[no output]
➜  sparkle_share_web git:(feature/new_project) ✗ vagrant ssh
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686)

 * Documentation:  https://help.ubuntu.com/
Last login: Sat Nov  5 18:40:12 2011 from 10.0.2.2
vagrant@ubuntu-11:~$ chef-solo
/opt/ruby/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/opt/ruby/lib/ruby/gems/1.9.1/gems/systemu-2.2.0/lib/systemu.rb:29: Use RbConfig instead of obsolete and deprecated Config.
[Sat, 05 Nov 2011 19:49:32 +0000] WARN: *****************************************
[Sat, 05 Nov 2011 19:49:32 +0000] WARN: Can not find config file: /etc/chef/solo.rb, using defaults.
[Sat, 05 Nov 2011 19:49:32 +0000] WARN: No such file or directory - /etc/chef/solo.rb
[Sat, 05 Nov 2011 19:49:32 +0000] WARN: *****************************************
[Sat, 05 Nov 2011 19:49:32 +0000] INFO: *** Chef 0.10.4 ***
[Sat, 05 Nov 2011 19:49:33 +0000] INFO: Run List is []
[Sat, 05 Nov 2011 19:49:33 +0000] INFO: Run List expands to []
[Sat, 05 Nov 2011 19:49:33 +0000] INFO: Starting Chef Run for ubuntu-11.10-server-i386
[Sat, 05 Nov 2011 19:49:33 +0000] FATAL: No cookbook found in ["/var/chef/cookbooks", "/var/chef/site-cookbooks"], make sure cookbook_path is set correctly.
[Sat, 05 Nov 2011 19:49:33 +0000] FATAL: No cookbook found in ["/var/chef/cookbooks", "/var/chef/site-cookbooks"], make sure cookbook_path is set correctly.
[Sat, 05 Nov 2011 19:49:33 +0000] ERROR: Running exception handlers
[Sat, 05 Nov 2011 19:49:33 +0000] ERROR: Exception handlers complete
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/lib/chef/mixin/create_path.rb:49:in `mkdir': Permission denied - /var/chef (Errno::EACCES)
    from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/lib/chef/mixin/create_path.rb:49:in `block in create_path'
    from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/lib/chef/mixin/create_path.rb:45:in `each_index'
    from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/lib/chef/mixin/create_path.rb:45:in `create_path'
    from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/lib/chef/file_cache.rb:204:in `create_cache_path'
    from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/lib/chef/file_cache.rb:53:in `store'
    from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/lib/chef/application.rb:134:in `debug_stacktrace'
    from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/lib/chef/application/solo.rb:210:in `rescue in block in run_application'
    from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/lib/chef/application/solo.rb:215:in `block in run_application'
    from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/lib/chef/application/solo.rb:183:in `loop'
    from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/lib/chef/application/solo.rb:183:in `run_application'
    from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/lib/chef/application.rb:67:in `run'
    from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-0.10.4/bin/chef-solo:25:in `<top (required)>'
    from /opt/ruby/bin/chef-solo:19:in `load'
    from /opt/ruby/bin/chef-solo:19:in `<main>'
vagrant@ubuntu-11:~$ sudo chef-solo
/opt/ruby/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/opt/ruby/lib/ruby/gems/1.9.1/gems/systemu-2.2.0/lib/systemu.rb:29: Use RbConfig instead of obsolete and deprecated Config.
[Sat, 05 Nov 2011 19:50:32 +0000] WARN: *****************************************
[Sat, 05 Nov 2011 19:50:32 +0000] WARN: Can not find config file: /etc/chef/solo.rb, using defaults.
[Sat, 05 Nov 2011 19:50:32 +0000] WARN: No such file or directory - /etc/chef/solo.rb
[Sat, 05 Nov 2011 19:50:32 +0000] WARN: *****************************************
[Sat, 05 Nov 2011 19:50:32 +0000] INFO: *** Chef 0.10.4 ***
[Sat, 05 Nov 2011 19:50:33 +0000] INFO: Run List is []
[Sat, 05 Nov 2011 19:50:33 +0000] INFO: Run List expands to []
[Sat, 05 Nov 2011 19:50:33 +0000] INFO: Starting Chef Run for ubuntu-11.10-server-i386
[Sat, 05 Nov 2011 19:50:33 +0000] FATAL: No cookbook found in ["/var/chef/cookbooks", "/var/chef/site-cookbooks"], make sure cookbook_path is set correctly.
[Sat, 05 Nov 2011 19:50:33 +0000] FATAL: No cookbook found in ["/var/chef/cookbooks", "/var/chef/site-cookbooks"], make sure cookbook_path is set correctly.
[Sat, 05 Nov 2011 19:50:33 +0000] ERROR: Running exception handlers
[Sat, 05 Nov 2011 19:50:33 +0000] ERROR: Exception handlers complete
[Sat, 05 Nov 2011 19:50:33 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[Sat, 05 Nov 2011 19:50:33 +0000] FATAL: Chef::Exceptions::CookbookNotFound: No cookbook found in ["/var/chef/cookbooks", "/var/chef/site-cookbooks"], make sure cookbook_path is set correctly.
@jedi4ever
Owner

@kylewest was so kind to provide us with working ubuntu-11.10-server-amd64-ruby-192 version. 1223e60

So I'm closing this pull request. If something isn't working , please feel free to comment.

@jedi4ever jedi4ever closed this Nov 25, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.