title: Chef warning "Did not find config file: /solo.rb. Using command line options instead."
body: <p>I was trying to install apache2 server in a vagrant machine. Ubuntu 16.04 is my vagrant-box and using chef as infrastructure provision tool. When I tried to execute <code>sudo chef-solo -c solo.rb</code> command the follwing warring shown and nothing installed. </p>
  
  <pre><code>vagrant@chef:/vagrant$ sudo chef-solo -c solo.rb
  [2019-05-23T15:01:24+00:00] WARN: *****************************************
  [2019-05-23T15:01:24+00:00] WARN: Did not find config file: /solo.rb. Using command line options instead.
  [2019-05-23T15:01:24+00:00] WARN: *****************************************
  [2019-05-23T15:01:24+00:00] WARN: No cookbooks directory found at or above current directory.  Assuming /var/chef.
  [2019-05-23T15:01:24+00:00] WARN: *****************************************
  [2019-05-23T15:01:24+00:00] WARN: Did not find config file: /solo.rb. Using command line options instead.
  [2019-05-23T15:01:24+00:00] WARN: *****************************************
  Starting Chef Client, version 14.12.9
  resolving cookbooks for run list: []
  Synchronizing Cookbooks:
  Installing Cookbook Gems:
  Compiling Cookbooks...
  [2019-05-23T15:01:28+00:00] WARN: Node chef has an empty run list.
  Converging 0 resources
  
  Running handlers:
  Running handlers complete
  Chef Client finished, 0/0 resources updated in 02 seconds
  </code></pre>
  
  <p>here is my project directory structure:-
  <a href="https://i.stack.imgur.com/L1eXz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L1eXz.png" alt="enter image description here"></a></p>
  
  <p><strong>node.json :-</strong></p>
  
  <pre><code>{
      "run_list":[
          "recipe[webserver::install_apache]"
      ]
  }
  </code></pre>
  
  <p><strong>Recipe to be cooked is install_apache.rb:-</strong></p>
  
  <pre><code>package "apache2" do
      action :install
  end
  # A resource
  service "apache2" do
      action [:start,:enable]
  end
  </code></pre>
  
  <p><strong>The configuration file solo.rb:-</strong></p>
  
  <pre><code>CHEF_ROOT="/vagrant"
  cookbook_path "#{CHEF_ROOT}/cookbooks"
  json_attribs "#{CHEF_ROOT}/node.json"
  </code></pre>
  
  <p>I have checked the permission of solo.rb, cookbooks directory and found everything ok. </p>
  
  <p><strong>chef --version :-</strong></p>
  
  <pre><code>Chef Development Kit Version: 3.10.1
  chef-client version: 14.12.9
  delivery version: master (9d07501a3b347cc687c902319d23dc32dd5fa621)
  berks version: 7.0.8
  kitchen version: 1.24.0
  inspec version: 3.9.3
  </code></pre>
  
  <p>I  I have just started to learning Chef and have not found any hint why that warning happening!</p>