Skip to content

Instantly share code, notes, and snippets.

@tomazzlender
Last active August 29, 2015 14:11
Show Gist options
  • Save tomazzlender/f463c3ca89cc5d0ed744 to your computer and use it in GitHub Desktop.
Save tomazzlender/f463c3ca89cc5d0ed744 to your computer and use it in GitHub Desktop.
root@app:~# cat /var/chef/cache/chef-stacktrace.out
Generated at 2014-12-15 15:23:43 -0500
Chef::Exceptions::MissingRole: The expanded run list includes nonexistent roles: nginx
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/node.rb:362:in `expand!'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/policy_builder/expand_node_object.rb:135:in `expand_run_list'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/policy_builder/expand_node_object.rb:122:in `build_node'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/client.rb:259:in `build_node'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/client.rb:420:in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/client.rb:213:in `block in run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/client.rb:207:in `fork'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/client.rb:207:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/application.rb:236:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/application/solo.rb:226:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/application/solo.rb:218:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/application/solo.rb:218:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/application.rb:55:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/bin/chef-solo:25:in `<top (required)>'
/usr/bin/chef-solo:23:in `load'
/usr/bin/chef-solo:23:in `<main>'
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 /root/chef-solo/solo.rb
```
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Starting Chef Client, version 11.16.0
[2014-12-15T15:23:43-05:00] ERROR: Role nginx (included by 'top level') is in the runlist but does not exist. Skipping expand.
================================================================================
Error expanding the run_list:
================================================================================
Missing Role(s) in Run List:
----------------------------
* nginx included by 'top level'
Original Run List
-----------------
* role[server]
* role[nginx]
* role[postgres-server]
* role[rails-app]
* role[redis-server]
[2014-12-15T15:23:43-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 2.554924635 seconds
[2014-12-15T15:23:43-05:00] ERROR: The expanded run list includes nonexistent roles: nginx
[2014-12-15T15:23:43-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR: RuntimeError: chef-solo failed. See output above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment