# Chef url server error in my amazon linux machine kindly help me out?

**URL:** <https://discourse.chef.io/t/chef-url-server-error-in-my-amazon-linux-machine-kindly-help-me-out/22259>\
**Category:** Chef Infra Server\
**Created:** [July 26, 2023, 6:45am UTC](https://discourse.chef.io/t/chef-url-server-error-in-my-amazon-linux-machine-kindly-help-me-out/22259 "2023-07-26T06:45:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![king](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@king](https://discourse.chef.io/u/king)\
**Post date:** [July 26, 2023, 6:45am UTC](https://discourse.chef.io/t/chef-url-server-error-in-my-amazon-linux-machine-kindly-help-me-out/22259/1 "2023-07-26T06:45:48Z")

</div>

[root@ip-172-31-19-94 chef-repo]# knife config list  
ERROR: ChefConfig::ConfigurationError: [root@ip-172-31-19-94 chef-repo]# knife configure is an invalid chef\_server\_url. The URL must start with http://, https://, or chefzero://.  
[root@ip-172-31-19-94 chef-repo]#  
[root@ip-172-31-19-94 chef-repo]# knife config list  
ERROR: ChefConfig::ConfigurationError: [root@ip-172-31-19-94 chef-repo]# knife configure is an invalid chef\_server\_url. The URL must start with http://, https://, or chefzero://.  
[root@ip-172-31-19-94 chef-repo]# knife bootstrap 172.31.19.33 -U ec2-user --sudo -i node321.pem -N node1  
ERROR: CONFIGURATION ERROR:[root@ip-172-31-19-94 chef-repo]# knife configure is an invalid chef\_server\_url. The URL must start with http://, https://, or chefzero://.  
[root@ip-172-31-19-94 chef-repo]# knife upload cookbook test-cookbook  
ERROR: CONFIGURATION ERROR:[root@ip-172-31-19-94 chef-repo]# knife configure is an invalid chef\_server\_url. The URL must start with http://, https://, or chefzero://.

---

<div class="post-metadata">

**Author:** ![Jeff\_Blaine](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jeff_blaine/32/19_2.png) [@Jeff\_Blaine](https://discourse.chef.io/u/Jeff_Blaine)\
**Post date:** [July 26, 2023, 10:08pm UTC](https://discourse.chef.io/t/chef-url-server-error-in-my-amazon-linux-machine-kindly-help-me-out/22259/2 "2023-07-26T22:08:45Z")

</div>

What does `knife config show` display?

---

<div class="post-metadata">

**Author:** ![king](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@king](https://discourse.chef.io/u/king)\
**Post date:** [July 28, 2023, 7:13am UTC](https://discourse.chef.io/t/chef-url-server-error-in-my-amazon-linux-machine-kindly-help-me-out/22259/3 "2023-07-28T07:13:20Z")

</div>

![Chef error](https://us1.discourse-cdn.com/flex016/uploads/chef/original/2X/5/50a5a2af769ba84d2651e7706c83ade04006e602.jpeg)

HI ,JEFF THANKS FOR YOUR KIND RESPONSE . SCREEN SHOT OF ERROR HAVE BEEN ATTACHED .KINDLY PLEASE LOOK INTO THIS ERROR?

---

<div class="post-metadata">

**Author:** ![marcparadise](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/marcparadise/32/1603_2.png) [@marcparadise](https://discourse.chef.io/u/marcparadise)\
**Post date:** [October 16, 2023, 6:39pm UTC](https://discourse.chef.io/t/chef-url-server-error-in-my-amazon-linux-machine-kindly-help-me-out/22259/4 "2023-10-16T18:39:07Z")

</div>

This error is not a server error, but something that knife is reporting. It looks like you may have something unexpected in the `chef_server_url` value of your `knife.rb` or `client.rb`. Could you provide the `chef_server_url` config value? Depending on where/how you're running and which version, it will be found in one of:

```auto
~/.chef/knife.rb
~/.chef/config.rb
~/.chef/credentials
/etc/chef/config.rb

```
