Skip to content

Instantly share code, notes, and snippets.

@jessereynolds
Created May 22, 2014 02:21
Show Gist options
  • Select an option

  • Save jessereynolds/faab4c833b13e22da006 to your computer and use it in GitHub Desktop.

Select an option

Save jessereynolds/faab4c833b13e22da006 to your computer and use it in GitHub Desktop.
omnibus-flapjack - libyaml problem on centos 6.5
jesse@Heart-of-Gold omnibus-flapjack $ time vagrant provision aws-centos-6.5
[fog][WARNING] Unable to load the 'unf' gem. Your AWS strings may not be properly encoded.
[Berkshelf] This version of the Berkshelf plugin has not been fully tested on this version of Vagrant.
[Berkshelf] You should check for a newer version of vagrant-berkshelf.
[Berkshelf] If you encounter any errors with this version, please report them at https://github.com/RiotGames/vagrant-berkshelf/issues
[Berkshelf] You can also join the discussion in #berkshelf on Freenode.
[Berkshelf] Updating Vagrant's berkshelf: '/Users/jesse/.berkshelf/aws-centos-6.5/vagrant/berkshelf-20140522-81197-229e6d-aws-centos-6.5'
[Berkshelf] Using omnibus (1.0.8)
[Berkshelf] Using python (1.4.6)
[Berkshelf] Installing awscli (0.1.0) from git: 'git://github.com/flpjck/awscli' with branch: 'master' at ref: 'd7dc2d8eaa9504619f7f079efead3b5a3e0d6a1b'
[Berkshelf] Using apt (1.9.2)
[Berkshelf] Using build-essential (1.4.4)
[Berkshelf] Using git (2.3.0)
[Berkshelf] Using dmg (2.2.0)
[Berkshelf] Using yum (3.2.0)
[Berkshelf] Using windows (1.31.0)
[Berkshelf] Using chef_handler (1.1.6)
[Berkshelf] Using runit (1.5.10)
[Berkshelf] Using yum-epel (0.3.6)
[Berkshelf] Using homebrew (1.3.2)
[Berkshelf] Using pkgin (0.4.0)
[Berkshelf] Using pkgutil (0.0.3)
[Berkshelf] Using wix (1.1.0)
[Berkshelf] Using 7-zip (1.0.2)
[aws-centos-6.5] Rsyncing folder: /Users/jesse/src/flpjck/omnibus-flapjack/ => /vagrant
[aws-centos-6.5] Rsyncing folder: /Users/jesse/src/flpjck/omnibus-flapjack/ => /home/root/omnibus-flapjack
[aws-centos-6.5] Rsyncing folder: /Users/jesse/.berkshelf/aws-centos-6.5/vagrant/berkshelf-20140522-81197-229e6d-aws-centos-6.5/ => /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[aws-centos-6.5] Installing Chef 11.12.4 Omnibus package...
[aws-centos-6.5] Downloading Chef 11.12.4 for el...
[aws-centos-6.5] downloading https://www.getchef.com/chef/metadata?v=11.12.4&prerelease=false&nightlies=false&p=el&pv=6&m=x86_64
to file /tmp/install.sh.1179/metadata.txt
trying curl...
[aws-centos-6.5] url https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-11.12.4-1.el6.x86_64.rpm
md5 959acd5df77c25f4f69d1f786f3c7360
sha256 d4eacc6b16c448a628367e7201922a4c58997f68808c5f698676e8a5eaf169b5
[aws-centos-6.5] downloaded metadata file looks valid...
[aws-centos-6.5] downloading https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-11.12.4-1.el6.x86_64.rpm
to file /tmp/install.sh.1179/chef-11.12.4-1.el6.x86_64.rpm
trying curl...
[aws-centos-6.5] Comparing checksum with sha256sum...
[aws-centos-6.5] Installing Chef 11.12.4
installing with rpm...
[aws-centos-6.5] warning:
[aws-centos-6.5] /tmp/install.sh.1179/chef-11.12.4-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY
[aws-centos-6.5] Preparing...
[aws-centos-6.5] ##################################################
[aws-centos-6.5]
[aws-centos-6.5] chef
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5] #
[aws-centos-6.5]
[aws-centos-6.5] Thank you for installing Chef!
[aws-centos-6.5] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
[2014-05-22T01:57:45+00:00] INFO: Forking chef instance to converge...
[2014-05-22T01:57:45+00:00] WARN:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
SSL validation of HTTPS requests is disabled. HTTPS connections are still
encrypted, but chef is not able to detect forged replies or man in the middle
attacks.
To fix this issue add an entry like this to your configuration file:
```
# Verify all HTTPS connections (recommended)
ssl_verify_mode :verify_peer
# OR, Verify only connections to chef-server
verify_api_cert true
```
To check your SSL configuration, or troubleshoot errors, you can use the
`knife ssl check` command like so:
```
knife ssl check -c /tmp/vagrant-chef-1/solo.rb
```
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[2014-05-22T01:57:45+00:00] INFO: *** Chef 11.12.4 ***
[2014-05-22T01:57:45+00:00] INFO: Chef-client pid: 1492
[2014-05-22T01:57:48+00:00] INFO: Setting the run_list to ["recipe[omnibus::default]", "recipe[python::default]", "recipe[awscli::default]"] from CLI options
[2014-05-22T01:57:48+00:00] INFO: Run List is [recipe[omnibus::default], recipe[python::default], recipe[awscli::default]]
[2014-05-22T01:57:48+00:00] INFO: Run List expands to [omnibus::default, python::default, awscli::default]
[2014-05-22T01:57:48+00:00] INFO: Starting Chef Run for ip-172-31-12-238.ap-southeast-2.compute.internal
[2014-05-22T01:57:48+00:00] INFO: Running start handlers
[2014-05-22T01:57:48+00:00] INFO: Start handlers complete.
[2014-05-22T01:57:49+00:00] INFO: WindowsPackage light-weight resource already initialized -- overriding!
[2014-05-22T01:57:49+00:00] WARN: An Omnibus platform recipe does not exist for the platform_family: rhel
[2014-05-22T01:57:49+00:00] INFO: directory[/opt/flapjack] created directory /opt/flapjack
[2014-05-22T01:57:49+00:00] INFO: directory[/opt/flapjack] owner changed to 0
[2014-05-22T01:57:49+00:00] INFO: directory[/opt/flapjack] mode changed to 755
[2014-05-22T01:57:49+00:00] INFO: directory[/var/cache/omnibus] created directory /var/cache/omnibus
[2014-05-22T01:57:49+00:00] INFO: directory[/var/cache/omnibus] owner changed to 0
[2014-05-22T01:57:49+00:00] INFO: directory[/var/cache/omnibus] mode changed to 755
[2014-05-22T01:58:05+00:00] INFO: package[libtool] installing libtool-2.2.6-15.5.el6 from base repository
================================================================================
Error executing action `install` on resource 'package[libyaml-devel]'
================================================================================
Chef::Exceptions::Package
-------------------------
No version specified, and no candidate version available for libyaml-devel
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/omnibus/recipes/ruby.rb
45: package "libyaml-devel"
46: package "openssl-devel"
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/omnibus/recipes/ruby.rb:45:in `from_file'
package("libyaml-devel") do
action :install
retries 0
retry_delay 2
guard_interpreter :default
package_name "libyaml-devel"
cookbook_name :omnibus
recipe_name "ruby"
end
[2014-05-22T01:59:31+00:00] INFO: Running queued delayed notifications before re-raising exception
[2014-05-22T01:59:31+00:00] ERROR: Running exception handlers
[2014-05-22T01:59:31+00:00] ERROR: Exception handlers complete
[2014-05-22T01:59:31+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-05-22T01:59:31+00:00] ERROR: package[libyaml-devel] (omnibus::ruby line 45) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for libyaml-devel
[2014-05-22T01:59:31+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.
real 3m13.493s
user 0m11.314s
sys 0m1.221s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment