Thanks guys, but it didn’t work.Here’s more details about my scenario.I have the Chef server in a private subnet of a VPC. I connect to it by the means of a VPN that’s located in the public subnet of the VPC. It all works, I can access the Chef server (knife and the web UI), via the internal IP, which is also configured in knife.rb as my chef_server_url.I created /etc/chef-server/chef-server.rb with:bookshelf[“vip”] = node[“ipaddress”]and since it didn’t work I addedbookshelf[“url”] = node[“ipaddress”]After each change I ran chef-server-ctl restart, but I keep getting the same error. Is there a way I can query these parameters (bookshelf[“vip”] and [“url”]) on the Chef server to be sure that they’re properly set?Cassiano LealOn Thursday, July 11, 2013 at 17:54, Jay Feldblum wrote:
Cassiano,This is a common problem with the out-of-the-box OSS chef-server config when the server has a well-known IP address but not a public DNS name.Everything is configured fine except for bookshelf["vip"], which must be set to node["ipaddress"] rather than node["fqdn"].You can create a file /etc/chef-server/chef-server.rb with content bookshelf["vip"] = node["ipaddress"].Cheers,JayOn Thu, Jul 11, 2013 at 4:46 PM, Cassiano Leal < " target="_blank"> > wrote:
Hi,I’ve just installed an OSS Chef Server inside a VPC in AWS. I’m all set up and I can query the server from my workstation with knife just fine.The problem is when I try to upload my cookbooks to the Chef server through Berkshelf. This is what I get:Ridley::SandboxUploader crashed!Faraday::Error::ConnectionFailed: getaddrinfo: nodename nor servname provided, or not known/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:763:in `initialize'/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:763:in `open'/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:763:in `block in connect'/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/timeout.rb:55:in `timeout'/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/timeout.rb:100:in `timeout'/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:763:in `connect'/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:756:in `do_start'/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:745:in `start'/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:1285:in `request'/Users/cassiano/.gem/ruby/1.9.3/gems/faraday-0.8.7/lib/faraday/adapter/net_http.rb:75:in `perform_request'/Users/cassiano/.gem/ruby/1.9.3/gems/faraday-0.8.7/lib/faraday/adapter/net_http.rb:38:in `call'/Users/cassiano/.gem/ruby/1.9.3/gems/ridley-1.2.4/lib/ridley/middleware/chef_auth.rb:74:in `call'/Users/cassiano/.gem/ruby/1.9.3/gems/ridley-1.2.4/lib/ridley/middleware/follow_redirects.rb:67:in `perform_with_redirection'/Users/cassiano/.gem/ruby/1.9.3/gems/ridley-1.2.4/lib/ridley/middleware/follow_redirects.rb:60:in `call'/Users/cassiano/.gem/ruby/1.9.3/gems/faraday-0.8.7/lib/faraday/response.rb:8:in `call'/Users/cassiano/.gem/ruby/1.9.3/gems/faraday-0.8.7/lib/faraday/connection.rb:247:in `run_request'/Users/cassiano/.gem/ruby/1.9.3/gems/faraday-0.8.7/lib/faraday/connection.rb:112:in `put'/Users/cassiano/.gem/ruby/1.9.3/gems/ridley-1.2.4/lib/ridley/sandbox_uploader.rb:91:in `upload'/Users/cassiano/.gem/ruby/1.9.3/gems/celluloid-0.14.1/lib/celluloid/calls.rb:25:in `public_send'/Users/cassiano/.gem/ruby/1.9.3/gems/celluloid-0.14.1/lib/celluloid/calls.rb:25:in `dispatch'/Users/cassiano/.gem/ruby/1.9.3/gems/celluloid-0.14.1/lib/celluloid/calls.rb:67:in `dispatch'/Users/cassiano/.gem/ruby/1.9.3/gems/celluloid-0.14.1/lib/celluloid/actor.rb:326:in `block in handle_message'/Users/cassiano/.gem/ruby/1.9.3/gems/celluloid-0.14.1/lib/celluloid/tasks.rb:42:in `block in initialize'/Users/cassiano/.gem/ruby/1.9.3/gems/celluloid-0.14.1/lib/celluloid/tasks/task_fiber.rb:11:in `block in create'Ridley::SandboxUploader crashed!Faraday::Error::ConnectionFailed: getaddrinfo: nodename nor servname provided, or not known/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:763:in `initialize'/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:763:in `open'/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:763:in `block in connect'/Users/cassiano/.rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/timeout.rb:55:in `timeout’...Has anyone had this issue? How can I solve it?Cheers,Cassiano Leal
Archive powered by MHonArc 2.6.16.