Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 333755 - dev-db/couchdb-1.0.1 does not start (after upgrade from 1.0.0)
Summary: dev-db/couchdb-1.0.1 does not start (after upgrade from 1.0.0)
Status: VERIFIED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Dirkjan Ochtman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-21 07:53 UTC by John McFarlane
Modified: 2010-08-21 20:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John McFarlane 2010-08-21 07:53:39 UTC
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.
Comment 1 Dirkjan Ochtman gentoo-dev 2010-08-21 19:57:44 UTC
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.
Comment 2 John McFarlane 2010-08-21 20:30:03 UTC
Nice call.  I've been using Gentoo for way to long, for such a rookie mistake :/

Thanks again :)