Thank you Joan - indeed I was missing something! Much appreciated -
Nick (email / Skype for Business): [email protected]<mailto:[email protected]> (mobile / iMessage): +44 7540 695741<tel:+44%207540%20695741> (office): +44 1752 586257<tel:+44%201752%20586257> (twitter): noutram_at_uop iTunes U course: iOS Development in Swift: http://iTunes.com/plymouthswift<http://itunes.com/plymouthswift> On 5 Dec 2016, at 18:33, Joan Touzet <[email protected]<mailto:[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]<mailto:[email protected]>> To: [email protected]<mailto:[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. ________________________________ [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.
