0

My setup is on Mac OS X and using Chef solo

Somehow after running: knife configure -i

I can no longer download anything when I run: knife cookbook download site apache2

I get back:

ERROR: Connection refused connecting to localhost:443 for /cookbooks/site/apache2, retry 1/5

I've tried deleting the whole chef folder under /opt and reinstalling but it doesn't change anything, which configure do I need to change to fix this?

Peter Fox
  • 101
  • 1

1 Answers1

0

The knife configuration file is found in your user home path in a .chef directory (~/.chef).

When you run 'knife configure -i', this file is what is updated. Try investigating your knife.rb file in that directory and/or deleting and reconfiguring.

Michael Goetz
  • 171
  • 1
  • 2
  • No it isn't in there I keep the .chef folder at the same level as my cookbooks – Peter Fox Oct 23 '13 at 12:57
  • So it seems as though the knife.rb file in that .chef directory is overriding the community site API endpoint. Can you check to see if you have anything set to localhost there? It also might help to post a gist of your knife.rb – Michael Goetz Oct 23 '13 at 13:10
  • There's nothing in the knife.rb, I literally only set the node_name and client_key values – Peter Fox Oct 23 '13 at 13:13
  • If you ran 'knife configure -i', it may have created a knife.rb for you in ~/.chef anyway. I would check there first to make sure all of the config lines you need for your setup are in the same file. – Michael Goetz Oct 23 '13 at 23:17
  • Oh don't worry I've checked, there's nothing there – Peter Fox Oct 25 '13 at 09:26
  • seems you have a chef server running on localhost. check if it's started via `chef-server-ctl status` – shawnzhu Oct 29 '13 at 00:42