I’ve used couchdb 2.0 built from master for months and yesterday I decided to
upgrade to the latest commit. Here is what I did:
1. cd to root source directory, run ‘make uninstall’
2. git pull origin
3. ./configure
4. make
After this step, I can run ‘./dev/run’ successfully. But if I want to install
it and run a single node, I had some problems:
5. make install
6. Edit /usr/local/lib/couchdb/etc/vm.args and in there, change the line -name
couchdb to -name couchdb@localhost.
Run ‘/usr/local/bin/couchdb’, get the following error:
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
{"Kernel pid
terminated",application_controller,"{application_start_failure,couch,{{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,auth_cache,{{badmatch,{error,eacces}},[{couch_auth_cache,ensure_users_db_exists,2,[{file,\"src/couch_auth_cache.erl\"},{line,452}]},{couch_auth_cache,open_auth_db,0,[{file,\"src/couch_auth_cache.erl\"},{line,424}]},{couch_auth_cache,reinit_cache,1,[{file,\"src/couch_auth_cache.erl\"},{line,286}]},{couch_auth_cache,init,1,[{file,\"src/couch_auth_cache.erl\"},{line,164}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,240}]}]}}}}},{couch_app,start,[normal,[]]}}}"}
[1] 24187 user-defined signal 2 couchdb
If I run it with sudo: ’sudo /usr/local/bin/couchdb’, get the following errors
repeated:
23:03:58.936 [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}]},...]}
23:03:58.936 [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
23:03:58.937 [error] Supervisor chttpd_sup had child undefined started with
chttpd_auth_cache:start_link() at <0.15874.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
I’m on OS X 10.11.3. Any clue?
-Ying