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. It helps you recreate the file step-by-step. If this posting has not helped you, you may also want to see this posting.