Created
May 1, 2014 21:21
-
-
Save snitramodranoel/c495b884448cf002575a to your computer and use it in GitHub Desktop.
InfluxDB::default recipe won't work on Ubuntu 12.04.4 guest with Ruby 1.8.7, Vagrant 1.5.3, and Chef 11.12.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macbook:binocular leonardo$ vagrant up --provision | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Clearing any previously set forwarded ports... | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
default: Adapter 2: hostonly | |
default: Adapter 3: hostonly | |
==> default: Forwarding ports... | |
default: 8689 => 8080 (adapter 1) | |
default: 8986 => 8081 (adapter 1) | |
default: 22 => 2222 (adapter 1) | |
==> default: Running 'pre-boot' VM customizations... | |
==> default: Booting VM... | |
==> default: Waiting for machine to boot. This may take a few minutes... | |
default: SSH address: 127.0.0.1:2222 | |
default: SSH username: vagrant | |
default: SSH auth method: private key | |
default: Warning: Connection timeout. Retrying... | |
==> default: Machine booted and ready! | |
==> default: Checking for guest additions in VM... | |
==> default: Configuring and enabling network interfaces... | |
==> default: Mounting shared folders... | |
default: /home/vagrant/app => /Users/leonardo/Dropbox/Source/venidera/src/binocular/app | |
default: /tmp/vagrant-chef-2/chef-solo-1/cookbooks => /Users/leonardo/Dropbox/Source/venidera/src/binocular/provision/cookbooks | |
default: /tmp/vagrant-chef-1/chef-solo-1/cookbooks => /Users/leonardo/Dropbox/Source/venidera/src/binocular/provision/cookbooks | |
==> default: Running provisioner: chef_solo... | |
Generating chef JSON and uploading... | |
Running chef-solo... | |
stdin: is not a tty | |
/var/lib/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: character class has `[' without escape | |
/var/lib/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: regexp has `]' without escape | |
[2014-05-01T21:17:32+00:00] INFO: Forking chef instance to converge... | |
[2014-05-01T21:17:32+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-2/solo.rb | |
``` | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
[2014-05-01T21:17:32+00:00] INFO: *** Chef 11.12.4 *** | |
[2014-05-01T21:17:32+00:00] INFO: Chef-client pid: 1764 | |
[2014-05-01T21:17:36+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[yum]", "recipe[build-essential]", "recipe[ntp]", "recipe[timezone-ii]", "recipe[mongodb::10gen_repo]", "recipe[python]", "recipe[mocoto]"] from CLI options | |
[2014-05-01T21:17:36+00:00] INFO: Run List is [recipe[apt], recipe[yum], recipe[build-essential], recipe[ntp], recipe[timezone-ii], recipe[mongodb::10gen_repo], recipe[python], recipe[mocoto]] | |
[2014-05-01T21:17:36+00:00] INFO: Run List expands to [apt, yum, build-essential, ntp, timezone-ii, mongodb::10gen_repo, python, mocoto] | |
[2014-05-01T21:17:36+00:00] INFO: Starting Chef Run for vagrant | |
[2014-05-01T21:17:36+00:00] INFO: Running start handlers | |
[2014-05-01T21:17:36+00:00] INFO: Start handlers complete. | |
[2014-05-01T21:17:41+00:00] INFO: service[ntp] started | |
[2014-05-01T21:17:42+00:00] INFO: template[/etc/timezone] backed up to /var/chef/backup/etc/timezone.chef-20140501211742.232461 | |
[2014-05-01T21:17:42+00:00] INFO: template[/etc/timezone] updated file contents /etc/timezone | |
[2014-05-01T21:17:48+00:00] INFO: template[/etc/timezone] sending run action to bash[dpkg-reconfigure tzdata] (delayed) | |
[2014-05-01T21:17:50+00:00] INFO: bash[dpkg-reconfigure tzdata] ran successfully | |
[2014-05-01T21:17:50+00:00] INFO: Chef Run complete in 14.1478 seconds | |
[2014-05-01T21:17:50+00:00] INFO: Running report handlers | |
[2014-05-01T21:17:50+00:00] INFO: Report handlers complete | |
==> default: Running provisioner: chef_solo... | |
Generating chef JSON and uploading... | |
Running chef-solo... | |
stdin: is not a tty | |
/var/lib/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: character class has `[' without escape | |
/var/lib/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: regexp has `]' without escape | |
[2014-05-01T21:17:54+00:00] INFO: Forking chef instance to converge... | |
[2014-05-01T21:17:54+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-01T21:17:54+00:00] INFO: *** Chef 11.12.4 *** | |
[2014-05-01T21:17:54+00:00] INFO: Chef-client pid: 2120 | |
[2014-05-01T21:17:56+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[ntp]", "recipe[timezone-ii]", "recipe[mongodb::10gen_repo]", "recipe[influxdb]", "recipe[python]", "recipe[mocoto]"] from CLI options | |
[2014-05-01T21:17:56+00:00] INFO: Run List is [recipe[apt], recipe[ntp], recipe[timezone-ii], recipe[mongodb::10gen_repo], recipe[influxdb], recipe[python], recipe[mocoto]] | |
[2014-05-01T21:17:56+00:00] INFO: Run List expands to [apt, ntp, timezone-ii, mongodb::10gen_repo, influxdb, python, mocoto] | |
[2014-05-01T21:17:56+00:00] INFO: Starting Chef Run for vagrant | |
[2014-05-01T21:17:56+00:00] INFO: Running start handlers | |
[2014-05-01T21:17:56+00:00] INFO: Start handlers complete. | |
================================================================================ | |
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/influxdb/libraries/default.rb | |
================================================================================ | |
SyntaxError | |
----------- | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/influxdb/libraries/default.rb:30: syntax error, unexpected ')', expecting '=' | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/influxdb/libraries/default.rb:33: syntax error, unexpected ':', expecting ')' | |
InfluxDB::Client.new(username: user, password: pass) | |
^ | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/influxdb/libraries/default.rb:33: syntax error, unexpected ':', expecting '=' | |
InfluxDB::Client.new(username: user, password: pass) | |
^ | |
Cookbook Trace: | |
--------------- | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/run_context/cookbook_compiler.rb:191:in `load' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/run_context/cookbook_compiler.rb:191:in `load_libraries_from_cookbook' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/run_context/cookbook_compiler.rb:188:in `each' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/run_context/cookbook_compiler.rb:188:in `load_libraries_from_cookbook' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/run_context/cookbook_compiler.rb:99:in `compile_libraries' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/run_context/cookbook_compiler.rb:98:in `each' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/run_context/cookbook_compiler.rb:98:in `compile_libraries' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/run_context/cookbook_compiler.rb:71:in `compile' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/run_context.rb:88:in `load' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/policy_builder/expand_node_object.rb:73:in `setup_run_context' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/client.rb:265:in `setup_run_context' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/client.rb:429:in `do_run' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/client.rb:213:in `run' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/client.rb:207:in `fork' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/client.rb:207:in `run' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/application.rb:217:in `run_chef_client' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/application/solo.rb:221:in `run_application' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/application/solo.rb:213:in `loop' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/application/solo.rb:213:in `run_application' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/application.rb:67:in `run' | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/chef-solo:25 | |
/usr/local/bin/chef-solo:19:in `load' | |
/usr/local/bin/chef-solo:19 | |
Relevant File Content: | |
---------------------- | |
/var/lib/gems/1.8/gems/chef-11.12.4/bin/../lib/chef/run_context/cookbook_compiler.rb: | |
184: raise | |
185: end | |
186: | |
187: def load_libraries_from_cookbook(cookbook_name) | |
188: files_in_cookbook_by_segment(cookbook_name, :libraries).each do |filename| | |
189: begin | |
190: Chef::Log.debug("Loading cookbook #{cookbook_name}'s library file: #{filename}") | |
191>> Kernel.load(filename) | |
192: @events.library_file_loaded(filename) | |
193: rescue Exception => e | |
194: @events.library_file_load_failed(filename, e) | |
195: raise | |
196: end | |
197: end | |
198: end | |
199: | |
200: def load_lwrps_from_cookbook(cookbook_name) | |
[2014-05-01T21:17:57+00:00] ERROR: Running exception handlers | |
[2014-05-01T21:17:57+00:00] ERROR: Exception handlers complete | |
[2014-05-01T21:17:57+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
[2014-05-01T21:17:57+00:00] ERROR: /tmp/vagrant-chef-1/chef-solo-1/cookbooks/influxdb/libraries/default.rb:30: syntax error, unexpected ')', expecting '=' | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/influxdb/libraries/default.rb:33: syntax error, unexpected ':', expecting ')' | |
InfluxDB::Client.new(username: user, password: pass) | |
^ | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/influxdb/libraries/default.rb:33: syntax error, unexpected ':', expecting '=' | |
InfluxDB::Client.new(username: user, password: pass) | |
^ | |
[2014-05-01T21:17:57+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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment