- From: Nick Willever <
>
- To:
- Subject: [chef] chef-server 0.10.10 and couchdb authentication
- Date: Mon, 11 Jun 2012 16:35:31 -0700
Hey all,
Was wondering if anyone has setup chef-server to authenticate to
couchDB with Basic HTTP? I tried doing this in the server.rb, but
received a 401 status:
server.rb
couchdb_database "chef"
couchdb_url
"
http://admin:
:5984"
Error is below:
merb : chef-server-webui : worker (port 4041) ~ Started request
handling: 2012-06-11 19:21:27 +0000
merb : chef-server-webui : worker (port 4041) ~ Params:
{"controller"=>"nodes", "action"=>"index"}
merb : chef-server-webui : worker (port 4041) ~ 401 "Unauthorized" -
(Net::HTTPServerException)
/usr/lib/ruby/1.9.1/net/http.rb:2303:in `error!'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/rest.rb:264:in
`block in api_request'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/rest.rb:328:in
`retriable_rest_request'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/rest.rb:240:in
`api_request'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/rest.rb:128:in `get_rest'
/usr/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/environment.rb:271:in
`list'
/usr/lib/ruby/gems/1.9.1/gems/chef-server-webui-0.10.10/app/controllers/application.rb:117:in
`load_environments'
-----------
Once I removed couchDB require_valid_user, chef-server was able to
authenticate and use couchdb again.
Thanks,
Nick Willever
cell: 480-389-6109
email:
- [chef] chef-server 0.10.10 and couchdb authentication, Nick Willever, 06/11/2012
Archive powered by MHonArc 2.6.16.