Hi,
I am using open source chef server,for a past few days my server setup is not working it shows error when i use knife commnand like this:
ERROR: Server returned error for https://mychefserver.example.com/cookbooks?num_versions=all, retrying 1/5 in 4s
ERROR: Server returned error for https://mychefserver.example.com/cookbooks?num_versions=all, retrying 2/5 in 6s
ERROR: Server returned error for https://mychefserver.example.com/cookbooks?num_versions=all, retrying 3/5 in 10s
ERROR: Server returned error for https://mychefserver.example.com/cookbooks?num_versions=all, retrying 4/5 in 17s
ERROR: Server returned error for https://mychefserver.example.com/cookbooks?num_versions=all, retrying 5/5 in 62s
ERROR: bad gateway
Response:
502 Bad Gateway
502 Bad Gateway
nginx/1.4.4
As i ve checked it shows some of a chef-server-ctl services are down so again i up that and use it again services goes down also beam and epmd files are deleting automatically .So i change a instance and put a new server setup ,it works first but after one day again showing a same error,but all services are up only.
So where is the problem,instance or server setup ?anybody ve ideas?
Thanks,
Indra
I am using open source chef server,for a past few days my server
setup is not working it shows error when i use knife commnand like this:
ERROR: Server returned error for
https://mychefserver.example.com/cookbooks?num_versions=all, retrying 1/5
in 4s
ERROR: Server returned error for
https://mychefserver.example.com/cookbooks?num_versions=all, retrying 2/5
in 6s
ERROR: Server returned error for
https://mychefserver.example.com/cookbooks?num_versions=all, retrying 3/5
in 10s
ERROR: Server returned error for
https://mychefserver.example.com/cookbooks?num_versions=all, retrying 4/5
in 17s
ERROR: Server returned error for
https://mychefserver.example.com/cookbooks?num_versions=all, retrying 5/5
in 62s
ERROR: bad gateway
It looks like there is something wrong with the configuration. Do you have
a domain example.com in your local network ? If not then you need to check
if you have given a right FDQN [1] for your chef server.
[1] About fully qualified domain names (FQDNs)
Rgds,
Siva.
On Monday, June 2, 2014 at 3:22 AM, Sivakumar Gopalan wrote:
I am using open source chef server,for a past few days my server setup is not working it shows error when i use knife commnand like this:
ERROR: Server returned error for https://mychefserver.example.com/cookbooks?num_versions=all, retrying 1/5 in 4s
ERROR: Server returned error for https://mychefserver.example.com/cookbooks?num_versions=all, retrying 2/5 in 6s
ERROR: Server returned error for https://mychefserver.example.com/cookbooks?num_versions=all, retrying 3/5 in 10s
ERROR: Server returned error for https://mychefserver.example.com/cookbooks?num_versions=all, retrying 4/5 in 17s
ERROR: Server returned error for https://mychefserver.example.com/cookbooks?num_versions=all, retrying 5/5 in 62s
ERROR: bad gateway
It looks like there is something wrong with the configuration. Do you have a domain example.com (http://example.com) in your local network ? If not then you need to check if you have given a right FDQN [1] for your chef server.
[1] About fully qualified domain names (FQDNs)
Rgds,
Siva.
run chef-server-ctl tail
to view the server error logs which should have more information. Are you running any automated processes (like chef-client) on the server that could be modifying the server configuration?
--
Daniel DeLeo