After upgrading from Couchdb-1.0.0 to Couchdb-1.0.1 the server no longer starts properly. It crashes because it cannot find the "util_driver_dir". Reproducible: Always Steps to Reproduce: 1. sudo /etc/init.d/couchdb start 2. 3. Actual Results: The following is written to the stdout log: =INFO REPORT==== 21-Aug-2010::00:26:00 === application: couch exited: {bad_return,{{couch_app,start, [normal, ["/etc/couchdb/default.ini", "/etc/couchdb/local.ini"]]}, {'EXIT',"cannot open shared object file: No such file or directory"}}} type: temporary =ERROR REPORT==== 21-Aug-2010::00:27:55 === file:path_eval([".","/root"],".erlang"): permission denied Apache CouchDB 1.0.1 (LogLevel=info) is starting. =CRASH REPORT==== 21-Aug-2010::00:27:55 === crasher: initial call: application_master:init/4 pid: <0.32.0> registered_name: [] exception exit: {bad_return, {{couch_app,start, [normal, ["/etc/couchdb/default.ini", "/etc/couchdb/local.ini"]]}, {'EXIT', "cannot open shared object file: No such file or directory"}}} in function application_master:init/4 Expected Results: Couch started, and listening on the configured port (5984). The following seems to resolve the issue: jmcfarlane@monster # sudo diff -u /etc/couchdb/default.ini{.orig,} --- /etc/couchdb/default.ini.orig 2010-08-21 00:40:06.000000000 -0700 +++ /etc/couchdb/default.ini 2010-08-21 00:40:28.000000000 -0700 @@ -5,7 +5,7 @@ [couchdb] database_dir = /var/lib/couchdb view_index_dir = /var/lib/couchdb -util_driver_dir = /usr/lib64/couchdb/erlang/lib/couch-1.0.0/priv/lib +util_driver_dir = /usr/lib64/couchdb/erlang/lib/couch-1.0.1/priv/lib max_document_size = 4294967296 ; 4 GB max_attachment_chunk_size = 4294967296 ; 4GB os_process_timeout = 5000 ; 5 seconds. for view and external servers.
Well, I'm guessing you forgot to run etc-update after emerging. I just updated my installs to 1.0.1 this morning (although I came from 0.11), and I was prompted to update my /etc/couchdb/default.ini file just fine.
Nice call. I've been using Gentoo for way to long, for such a rookie mistake :/ Thanks again :)