Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed chef , which uses couchdb. It worked fine until i've secured couchdb by creating an admin user in couchdb giving and setting require_valid_user = true in default.ini as written here:

Now i get a 401 Network error: Connection refused, most probably because of the newly created user.

Any idea where i can set the new admin username /password for chef to access the couchdb?

share|improve this question

Oldie but goodie, answering for completeness sake, as it's still a valid question.

When specifying a user/pass in the couchdb config, you mush now provide those credentials to Chef Server, in the form of changing the couchdb_url parameter in the server's config file /etc/chef/server.rb, as per the source here.

This may look like:

couchdb_url "http://<username>:<password>@localhost:5984"

You must restart the Server services for this to take effect.

NOTE: Chef 11 has since been released, and CouchDB is no longer used in this version.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.