couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Munch <dani.mu...@gmail.com>
Subject Re: Creating users - getting back "Database does not exist."
Date Thu, 08 Dec 2016 10:58:20 GMT
Great, thanks!

I think the question was asked before, but from the docs it doesn't
seem obvious that the wizard creates the three system databases as
well, it kind of reads as if you'd have to do this manually after it
ran. So if that's the case I'd go and add those informations to the
docs, guess this could be handy for others as well!

Best,
Daniel

On Thu, Dec 8, 2016 at 11:34 AM, Jan Lehnardt <jan@apache.org> wrote:
>
>> On 8 Dec 2016, at 11:30, Daniel Munch <dani.munch@gmail.com> 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 <wohali@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.outram@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.
>>>>
>
> --
> Professional Support for Apache CouchDB:
> https://neighbourhood.ie/couchdb-support/
>

Mime
View raw message