Error using chef-client recipe

Hi people,

I launched the xommand chef-client [recipe] on my node and the command failed:
Synchronizing Cookbooks:

  • test (0.1.3)
    Installing Cookbook Gems:
    Compiling Cookbooks…
    ←[0m
    Running handlers:
    [2016-05-30T16:16:02+02:00] ERROR: Running exception handlers
    Running handlers complete
    [2016-05-30T16:16:02+02:00] ERROR: Exception handlers complete
    Chef Client failed. 0 resources updated in 11 seconds
    [2016-05-30T16:16:02+02:00] INFO: Sending resource update report (run-id: 14d0bd
    01-99b5-4707-8eb5-2a993ef18062)
    [2016-05-30T16:16:02+02:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stack
    trace.out
    [2016-05-30T16:16:02+02:00] FATAL: Please provide the contents of the stacktrace
    .out file if you file a bug report
    [2016-05-30T16:16:02+02:00] FATAL: Chef::Exceptions::RecipeNotFound: could not f
    ind recipe file C:/Windows/system32/test
    what’s wrong?

According to your two questions, you should really take some time to run through https://learn.chef.io to get the basics around chef (there’s multiple tutorials there, take some time to have a look at them to find the best suited for you).

I’m afraid it would be a lot of guessing trying to answer here.

Thanks i have already done all those tutorials i 've bootstraped my node successfully using knife bootstrap but now i want to use chef-client from my node to run a recipe and i got this error that i don’t understand.
Could you please take a look?

In this case give a real case with details on what you already did.

You’re saying you run chef-client [recipe] and the log says it didn’t found a recipe file c:/Windows/system32/test

Is it your cookbook path ? what did you run exactly ?

Okay i run
knife bootstrap windows winrm adress -x ‘user’ -p 5985 to install chef-client
but what i want to do now is to run the test recipe that i’ve already uploaded to the server but from my node using chef-client test. So that’s what i launched on my node this command : chef-client test.
I got this error
Running handlers:
[2016-05-30T17:29:26+02:00] ERROR: Running exception handlers
Running handlers complete
[2016-05-30T17:29:26+02:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 05 seconds
[2016-05-30T17:29:26+02:00] INFO: Sending resource update report (run-id: 431599
54-b74a-492c-af3c-9e8e18c38836)
[2016-05-30T17:29:26+02:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stack
trace.out
[2016-05-30T17:29:26+02:00] FATAL: Please provide the contents of the stacktrace
.out file if you file a bug report
[2016-05-30T17:29:26+02:00] FATAL: Chef::Exceptions::RecipeNotFound: could not f
ind recipe file C:/chef/test:default.rb

Okay i fixed it : the correct command is chef-client --runlist 'recipe[hello_chef_server]'
thanks for your patience, i have somme issues explaining things sometimes.