On Thu, Dec 8, 2016 at 12:19 PM, Jan Lehnardt <[email protected]> wrote: > > it definitely does: > https://github.com/apache/couchdb-setup/blob/master/src/setup.erl#L172 ;) >
I agree that code is the ultimate documentation, but for those who prefer reading in English over Erlang I made a little translation ;) https://github.com/apache/couchdb-documentation/pull/94 >> On Thu, Dec 8, 2016 at 11:34 AM, Jan Lehnardt <[email protected]> wrote: >>> >>>> On 8 Dec 2016, at 11:30, Daniel Munch <[email protected]> wrote: >>>> >>>> Hi, >>>> >>>> another question regarding single-node-setup: Is it mandatory to run >>>> the setup wizard? If yes, is there a way to run the single-node-setup >>>> without the wizard, like there is for the cluster-setup? >>>> >>>> What I'm currently doing is to configure my admin user and password >>>> beforehand in the config file and create those special databases >>>> _users, _replicator and _global_changes manually like written in the >>>> docs. CouchDB runs fine after this, however I'm always feeling guilty >>>> since I'm not 100% sure if I missed something because I didn't run the >>>> wizard. >>> >>> The wizard does precisely this: set an admin password and create the >>> three system databases, so you’re good to go. >>> >>> Best >>> Jan >>> -- >>> >>> >>> >>>> >>>> Thanks! >>>> Daniel >>>> >>>> >>>> On Mon, Dec 5, 2016 at 7:29 PM, Joan Touzet <[email protected]> wrote: >>>>> You missed the setup step where you create the _users database: >>>>> >>>>> http://docs.couchdb.org/en/2.0.0/install/index.html#single-node-setup >>>>> >>>>> -Joan >>>>> >>>>> ----- Original Message ----- >>>>>> From: "Nicholas Outram" <[email protected]> >>>>>> To: [email protected] >>>>>> Sent: Monday, December 5, 2016 10:42:00 AM >>>>>> Subject: Creating users - getting back "Database does not exist." >>>>>> >>>>>> I’m working though the tutorial on CouchDB >>>>>> >>>>>> http://docs.couchdb.org/en/latest/intro/security.html >>>>>> >>>>>> I’m at the section “Creating a New User”, where is says: >>>>>> >>>>>> Creating a new user is a very trivial operation. You just need to do >>>>>> a PUT<http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.6> >>>>>> request with the user’s data to CouchDB. Let’s create a user with >>>>>> login jan and password apple: >>>>>> >>>>>> curl -X PUT http://localhost:5984/_users/org.couchdb.user:jan \ >>>>>> -H "Accept: application/json" \ >>>>>> -H "Content-Type: application/json" \ >>>>>> -d '{"name": "jan", "password": "apple", "roles": [], "type": >>>>>> "user"}' >>>>>> >>>>>> When I try this, I get >>>>>> >>>>>> {"error":"not_found","reason":"Database does not exist.”} >>>>>> >>>>>> >>>>>> >>>>>> I’m missing something here. Can anyone advise? >>>>>> >>>>>> Nick >>>>>> ________________________________ >>>>>> [http://www.plymouth.ac.uk/images/email_footer.gif]<http://www.plymouth.ac.uk/worldclass> >>>>>> >>>>>> This email and any files with it are confidential and intended solely >>>>>> for the use of the recipient to whom it is addressed. If you are not >>>>>> the intended recipient then copying, distribution or other use of >>>>>> the information contained is strictly prohibited and you should not >>>>>> rely on it. If you have received this email in error please let the >>>>>> sender know immediately and delete it from your system(s). Internet >>>>>> emails are not necessarily secure. While we take every care, >>>>>> Plymouth University accepts no responsibility for viruses and it is >>>>>> your responsibility to scan emails and their attachments. Plymouth >>>>>> University does not accept responsibility for any changes made after >>>>>> it was sent. Nothing in this email or its attachments constitutes an >>>>>> order for goods or services unless accompanied by an official order >>>>>> form. >>>>>> >>> >>> -- >>> Professional Support for Apache CouchDB: >>> https://neighbourhood.ie/couchdb-support/ >>> > > -- > Professional Support for Apache CouchDB: > https://neighbourhood.ie/couchdb-support/ >
