[chef] Chef12 - problem with chef-server-ctl org*


Chronological Thread 
  • From: Tiago Cruz < >
  • To: " " < >
  • Subject: [chef] Chef12 - problem with chef-server-ctl org*
  • Date: Fri, 5 Dec 2014 17:17:12 -0200

Hello,

I created a new user:

# chef-server-ctl user-create teste teste teste "> teste123

Tried to put this new guy on my organization created during the upgrade:

# chef-server-ctl org-user-add myorg teste 
ERROR: bad gateway
Response: <html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>ngx_openresty/1.4.3.6</center>
</body>
</html>

Logs:

==> /var/log/opscode/nginx/error.log <==
2014/12/05 14:04:12 [error] 639#0: *252 no resolver defined to resolve opscode_account, client: 127.0.0.1, server: chef.infra.myorg.com.br, request: "POST /organizations/myorg/association_requests HTTP/1.1", host: "127.0.0.1:443"

==> /var/log/opscode/nginx/access.log <==
127.0.0.1 - - [05/Dec/2014:14:04:12 -0500]  "POST /organizations/myorg/association_requests HTTP/1.1" 502 "0.040" 182 "-" "Chef Knife/11.12.2 (ruby-1.9.3-p547; ohai-7.4.0; x86_64-linux; +http://opscode.com)" "-" "-" "-" "11.12.2" "algorithm=sha1;version=1.0;" "pivotal" "2014-12-05T19:04:12Z" "O4TqHyxsBd83E2SpWYkQXy0qoRM=" 1081

-----

And also:

~]# chef-server-ctl org-list
ERROR: bad gateway
Response: <html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>ngx_openresty/1.4.3.6</center>
</body>
</html>


Logs:

==> /var/log/opscode/nginx/error.log <==
2014/12/05 14:03:41 [error] 639#0: *250 no resolver defined to resolve opscode_account, client: 127.0.0.1, server: chef.infra.myorg.com.br, request: "GET /organizations HTTP/1.1", host: "127.0.0.1:443"

==> /var/log/opscode/nginx/access.log <==
127.0.0.1 - - [05/Dec/2014:14:03:41 -0500]  "GET /organizations HTTP/1.1" 502 "0.000" 182 "-" "Chef Knife/11.12.2 (ruby-1.9.3-p547; ohai-7.4.0; x86_64-linux; +http://opscode.com)" "-" "-" "-" "11.12.2" "algorithm=sha1;version=1.0;" "pivotal" "2014-12-05T19:03:41Z" "2jmj7l5rSw0yVb/vlWAYkK/YBwk=" 983

Do you have some idea how to fix this?

Thanks a lot!



Archive powered by MHonArc 2.6.16.

§