basic Chef fluency course

I am installting receipe and getting following error:
[user@aneelkhan2 recipes]$ sudo chef-client --local-mode /home/user/chef-repo/cookbooks/bcf_nginx/receipes/default.rb
[2018-09-27T16:50:05+00:00] INFO: Started chef-zero at chefzero://localhost:1 with repository at /home/user/chef-repo
One version per cookbook
[2018-09-27T16:50:05+00:00] INFO: Forking chef instance to converge...
Starting Chef Client, version 13.8.5
[2018-09-27T16:50:05+00:00] INFO: *** Chef 13.8.5 ***
[2018-09-27T16:50:05+00:00] INFO: Platform: x86_64-linux
[2018-09-27T16:50:05+00:00] INFO: Chef-client pid: 2962
[2018-09-27T16:50:05+00:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
[2018-09-27T16:50:07+00:00] INFO: Run List is []
[2018-09-27T16:50:07+00:00] INFO: Run List expands to []
[2018-09-27T16:50:07+00:00] INFO: Starting Chef Run for aneel
[2018-09-27T16:50:07+00:00] INFO: Running start handlers
[2018-09-27T16:50:07+00:00] INFO: Start handlers complete.
resolving cookbooks for run list: []
[2018-09-27T16:50:07+00:00] INFO: Loading cookbooks []
Synchronizing Cookbooks:
Installing Cookbook Gems:
Compiling Cookbooks...
Running handlers:
[2018-09-27T16:50:07+00:00] ERROR: Running exception handlers
Running handlers complete
[2018-09-27T16:50:07+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 02 seconds
[2018-09-27T16:50:07+00:00] FATAL: Stacktrace dumped to /home/user/chef-repo/.chef/local-mode-cache/cache/chef-stacktrace.out
[2018-09-27T16:50:07+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-09-27T16:50:07+00:00] ERROR: could not find recipe file /home/user/chef-repo/cookbooks/bcf_nginx/receipes/default.rb
[2018-09-27T16:50:08+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[user@aneelkhan2 recipes]$ ls -l
total 4
-rw-rw-r--. 1 user user 67 Sep 27 16:49 default.rb
[user@aneelkhan2 recipes]$

defualt.rb file is there but receving receipe error?

  • post-author-pic
    Keith T


    Looks like you slightly misspelled `recipes` in the path to the file.

Looking For Team Training?

Learn More