Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

WIN 8 no knife configuration found #484

Closed
ghost opened this issue Aug 26, 2015 · 1 comment
Closed

WIN 8 no knife configuration found #484

ghost opened this issue Aug 26, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 26, 2015

Hello, when i run chef commands that are connecting to chef server from $env:userprofile\chef-repo then knife command for example finds the config files in .chef folder, but if run from $env:userprofile(c:\users\administrator), then it complains;

WARNING: No knife configuration file found
ERROR: Your private key could not be loaded from C:\chef\client.pem
Check your configuration file and ensure that your private key is readable

i can specify "-c" flag for knife if running from other locations but if using berkshelf, for example berks upload which must be run from the actual cookbook's repo where Berksfile is in then berks can't connect to chef server. It's supposed to be using knife config but how, when even knife can't find it?

is there some env var for chef-repo and .chef folder that i don't know of, or what am i missing here?

Thanks in advance,

Igor

@danielsdeleo
Copy link
Contributor

Hi, knife looks for its config file in the order specified here: https://github.com/chef/chef/blob/master/chef-config/lib/chef-config/workstation_config_loader.rb#L101-L124

However, berkshelf has it's own mechanism for locating your configuration file which might be different.

@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant