Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: POST request was redirected from http://127.0.0.1:8889/clients to http://${local?_ipaddress}. Only GET and HEAD support redirects. #29

Closed
sawanoboly opened this issue May 17, 2015 · 1 comment

Comments

@sawanoboly
Copy link
Member

Reported by @nhatnguyen26.

Starting first Chef Client run...
172.17.204.110 Starting Chef Client, version 12.3.0
172.17.204.110 Creating a new client identity for 172.17.204.110 using the validator key.
172.17.204.110 
172.17.204.110 ================================================================================
172.17.204.110 Chef encountered an error attempting to create the client "172.17.204.110"
172.17.204.110 ================================================================================
172.17.204.110 
172.17.204.110 Invalid Redirect:
172.17.204.110 -----------------
172.17.204.110 Change your server location in client.rb to the server's FQDN to avoid unwanted redirections.
172.17.204.110 
172.17.204.110 [2015-05-13T23:39:55+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
172.17.204.110 Chef Client failed. 0 resources updated in 1.935715501 seconds
172.17.204.110 [2015-05-13T23:39:55+00:00] ERROR: POST request was redirected from http://127.0.0.1:8889/clients to http://172.17.204.110. Only GET and HEAD support redirects.
172.17.204.110 [2015-05-13T23:39:55+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

i suddenly have this problem
how can I fix this?


ENV

  • devStack and centos6.
  • Chef 12.3.0 , knife-zero 1.5.0
@nhatnguyen26
Copy link

@sawanoboly I think I figured it out, accidentally though. The vm need proxy to go to the internet so I have to set proxy so it can install chef-client, however at the bootstrap time, the proxy cause the redirect to happen, and seem like I don't understand how the --bootstrap-no-proxy options work because even if I add it, it will not work. However, after installing chef, I connect to the vm and remove the proxy setting and bootstrap again, everything went fine.

ERROR: POST request was redirected from http://127.0.0.1:8889/clients to http://172.17.204.110. Only GET and HEAD support redirects.

That pretty much pin point the error correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants