Skip to content

Instantly share code, notes, and snippets.

@rpontes
Created October 28, 2013 15:52
Show Gist options
  • Save rpontes/7199361 to your computer and use it in GitHub Desktop.
Save rpontes/7199361 to your computer and use it in GitHub Desktop.
Error chef-solo
stdin: is not a tty
[2013-10-28T15:46:10+00:00] INFO: *** Chef 10.14.2 ***
[2013-10-28T15:46:10+00:00] INFO: Setting the run_list to ["recipe[main]"] from JSON
[2013-10-28T15:46:10+00:00] INFO: Run List is [recipe[main]]
[2013-10-28T15:46:10+00:00] INFO: Run List expands to [main]
[2013-10-28T15:46:10+00:00] INFO: Starting Chef Run for devenv
[2013-10-28T15:46:10+00:00] INFO: Running start handlers
[2013-10-28T15:46:10+00:00] INFO: Start handlers complete.
================================================================================
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/main/recipes/default.rb
================================================================================
SyntaxError
-----------
compile error
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/main/recipes/default.rb:8: odd number list for Hash
version: "9.3",
^
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/main/recipes/default.rb:8: syntax error, unexpected ':', expecting '}'
version: "9.3",
^
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/main/recipes/default.rb:8: syntax error, unexpected ',', expecting $end
Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/main/recipes/default.rb:8:in `from_file'
Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/main/recipes/default.rb:
1: include_recipe 'apt'
2: include_recipe 'openssl'
3:
4: node.set['platform'] = 'ubuntu'
5:
6: # Postgres
7: node.set['postgresql'] = {
8: version: "9.3",
9: contrib: {
[2013-10-28T15:46:10+00:00] ERROR: Running exception handlers
[2013-10-28T15:46:10+00:00] ERROR: Exception handlers complete
[2013-10-28T15:46:10+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-10-28T15:46:10+00:00] FATAL: SyntaxError: compile error
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/main/recipes/default.rb:8: odd number list for Hash
version: "9.3",
^
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/main/recipes/default.rb:8: syntax error, unexpected ':', expecting '}'
version: "9.3",
^
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/main/recipes/default.rb:8: syntax error, unexpected ',', expecting $end
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