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.

Thanks!
Daniel


On Mon, Dec 5, 2016 at 7:29 PM, Joan Touzet <woh...@apache.org> 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" <nicholas.out...@plymouth.ac.uk>
>> To: user@couchdb.apache.org
>> 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.
>>

Reply via email to