Problem scenario
You try to run a knife command but you get 404 not found. What should you do?
Solution
Run this command: knife client list
If you get a 404 error with this command, then look at your client.rb file. Is the chef_server_url correct? Is the hostname actually the Chef server or is it something else? Is the “organizations/companynickname” present and correctly typed?
You may want to back up your knife.rb file then recreate it by running this command: knife configure
This command will prompt you to overwrite your existing one.
…
Continue reading “How Do You Fix “404 not found” Errors When You Run Knife Commands?”