Ihave installed chef workstation in my windows PC then I have have written a knife.rb file. Then i have fetch ssl certificate and then verified it using command knife ssl fetch and knife ssl check then bootstrapped two nodes. But when I am uploading my cookbook i a, getting error as follows:
What happens when you try to login to chef server via a web browser? Are you able to resolve the URL and then login to Chef server UI? If you don’t have the UI installed then try a curl command or try to do other things with knife like list data bags or cookbooks. Also would be great if you can post the full error output.
Usually this error happen if there is a firewall in between your machine and chef server. Try to do tracert to the chef server from your machine. Also try out command like knife client list to check if the issue is with all knife commands.
other command works fine BUT i have figured out the error actually by default chef server uses port 443 for uloading cookbooks but my application is running on port 31066 so i am not able to upload cookbook. Unfortunately i cant change my port on which server is running so i am not able to resolve my issue