0

I've run chef for existing cookbook, however I can't run it correctly. I've got Chef Client failed without any error. Synchronizing Cookbooks:
Running handlers:
Running handlers complete

Irina
  • 939
  • 1
  • 8
  • 26
  • 1
    `-L` option is for logfile. Do you have a file named `DEBUG` with any output? `-l` (small) is the one to set `debug` level of logging to stdout. – seshadri_c Dec 08 '20 at 12:20

1 Answers1

1

I think you have mixed up log_level option with logfile.

  • Lower case -l: -l debug, will set log_level to DEBUG for logging to standard output.
  • Upper case -L: -L DEBUG will create logfile called DEBUG and put the logs/errors of that run in it.

The error might be present in the file at /home/centos/DEBUG.

seshadri_c
  • 6,906
  • 2
  • 10
  • 24