title: chef Knife command: knife cookbook upload sample when gives error
body: <p>knife cookbook upload sample when executed gives following error</p>
  
  <blockquote>
    <p>WARNING: No knife configuration file found. See <a href="https://docs.chef.io/config_rb_knife.html" rel="nofollow noreferrer">https://docs.chef.io/config_rb_knife.html</a> for details.<br>
    ERROR: Could not find cookbook sample in your cookbook path, skipping it<br>
    WARN: Failed to read the private key /etc/chef/client.pem: #<br>
    ERROR: Your private key could not be loaded from /etc/chef/client.pem</p>
    
    <p>Check your configuration file and ensure that your private key is readable</p>
  </blockquote>
  
  <ul>
  <li>updated time server</li>
  <li>tried changing public key</li>
  </ul>