> On 15 Mar 2016, at 23:38, Ying Bian <yb...@me.com> wrote:
> 
> That did the trick! The command returned {ok: true} and now the errors are 
> gone. Thanks a lot, Jan!
> 
> But what caused this? I don’t think this is a normal step for users to do 
> during installation. Will we fix this or at least add it in the installation 
> instruction?  Do I need to log an issue?

creating system databases needs to be done after the cluster is set up, so all 
nodes get a copy, that’s why 2.0 doesn’t create _users on startup unlike 1.x. 
We should definitely create a better error message there.

If you set up a cluster, the Fauxton setup wizard takes care of this for you. 
If you run 2.0 as a single node, you have to do this manually and I just 
realised this is missing from 
https://docs.google.com/document/d/1BtndYr-0KDQTqBSLVdJoR_8C5ObYjT1RBo_Qyh5ykdQ/edit#
 — so if anyone feels like adding this, please go ahead! <3


> Thanks to you guys again! The timely response I got here makes me more 
> confident to choose couchdb. ;-)

Thank you! And thanks for testing 2.0, please let us know how it goes!

Best
Jan
--

> 
> -Ying
> 
>> 在 2016年3月15日,18:16,Jan Lehnardt <j...@apache.org> 写道:
>> 
>> When you get this error, CouchDB should still be running. If that’s the 
>> case, can you try this: curl -X PUT http://127.0.0.1:5984/_users
>> 
>> Best
>> Jan
>> --
>>> On 14 Mar 2016, at 23:56, Ying Bian <yb...@me.com> wrote:
>>> 
>>> I did everything using a normal user so I can just run couchdb using that 
>>> user. I corrected the permissions of some files caused by sudo and then ran 
>>> ‘couchdb’ using the normal user. Now I have the same errors as root:
>>> 
>>> 06:46:01.455 [error] gen_server chttpd_auth_cache terminated with reason: 
>>> {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,282}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,270}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,286}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,85}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},...]}
>>> 06:46:01.457 [error] CRASH REPORT Process chttpd_auth_cache with 0 
>>> neighbours exited with reason: 
>>> {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,282}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,270}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,286}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,85}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},...]}
>>>  in gen_server:terminate/7 line 826
>>> 06:46:01.458 [error] Supervisor chttpd_sup had child undefined started with 
>>> chttpd_auth_cache:start_link() at <0.312.0> exit with reason 
>>> {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,282}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,270}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,286}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,85}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},...]}
>>>  in context child_terminated
>>> 
>>> Anything that I missed? The same used to work. Again, my system is OS X 
>>> 10.11.3.
>>> 
>>> -Ying
>>> 
>>>> 在 2016年3月14日,23:15,Alexander Shorin <kxe...@gmail.com> 写道:
>>>> 
>>>> On Mon, Mar 14, 2016 at 6:11 PM, Ying Bian <yb...@me.com> wrote:
>>>>> {badmatch,{error,eacces}
>>>> 
>>>> Permissions. Don't run anything with sudo. Setup couchdb user and use
>>>> it instead.
>>>> 
>>>> --
>>>> ,,,^..^,,,
>>> 
>> 
>> -- 
>> Professional Support for Apache CouchDB:
>> https://neighbourhood.ie/couchdb-support/
>> 
> 

-- 
Professional Support for Apache CouchDB:
https://neighbourhood.ie/couchdb-support/

Reply via email to