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?
Thanks to you guys again! The timely response I got here makes me more
confident to choose couchdb. ;-)
-Ying
> 在 2016年3月15日,18:16,Jan Lehnardt <[email protected]> 写道:
>
> 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 <[email protected]> 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 <[email protected]> 写道:
>>>
>>> On Mon, Mar 14, 2016 at 6:11 PM, Ying Bian <[email protected]> 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/
>