Opened 12 years ago

Closed 12 years ago

#32102 closed defect (fixed)

CouchDB 1.1.1 fails to start (/opt/local/var/run/couchdb directory missing)

Reported by: snaury@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: erik@…, jeff-macports@…, paul@…
Port: couchdb

Description

After installing couchdb 1.1.1 it fails to start. After some digging I managed to find that this was because /opt/local/var/run/couchdb directory was missing (where it is trying to create a file specified by [couchdb] uri_file).

For reference, this is printed in the log when this happens:

[Thu, 17 Nov 2011 18:43:57 GMT] [info] [<0.31.0>] Apache CouchDB has started on http://127.0.0.1:5984/
[Thu, 17 Nov 2011 18:43:57 GMT] [error] [<0.30.0>] {error_report,<0.30.0>,
                    {<0.30.0>,crash_report,
                     [[{initial_call,
                        {application_master,init,
                         ['Argument__1','Argument__2','Argument__3',
                          'Argument__4']}},
                       {pid,<0.30.0>},
                       {registered_name,[]},
                       {error_info,
                        {exit,
                         {bad_return,
                          {{couch_app,start,
                            [normal,
                             ["/opt/local/etc/couchdb/default.ini",
                              "/opt/local/etc/couchdb/local.ini"]]},
                           {'EXIT',
                            {{badmatch,{error,enoent}},
                             [{couch_server_sup,start_server,1},
                              {application_master,start_it_old,4}]}}}},
                         [{application_master,init,4},
                          {proc_lib,init_p_do_apply,3}]}},
                       {ancestors,[<0.29.0>]},
                       {messages,[{'EXIT',<0.31.0>,normal}]},
                       {links,[<0.29.0>,<0.7.0>]},
                       {dictionary,[]},
                       {trap_exit,true},
                       {status,running},
                       {heap_size,987},
                       {stack_size,24},
                       {reductions,163}],
                      []]}}
[Thu, 17 Nov 2011 18:43:57 GMT] [info] [<0.100.0>] Stopping all ongoing replications because the replicator database was deleted or changed

After I created /opt/local/var/run/couchdb directory and chown'ed it to user/group couchdb it finally started and I could relax. ;)

Attachments (1)

couchdb-create-var-run.patch (794 bytes) - added by jeff-macports@… 12 years ago.
Patch

Download all attachments as: .zip

Change History (9)

comment:1 Changed 12 years ago by snaury@…

Cc: snaury@… added

Cc Me!

comment:2 Changed 12 years ago by mf2k (Frank Schima)

Cc: snaury@… removed
Owner: changed from macports-tickets@… to jwa@…

comment:3 Changed 12 years ago by erik@…

Cc: erik@… added

Cc Me!

Changed 12 years ago by jeff-macports@…

Patch

comment:4 Changed 12 years ago by jeff-macports@…

Cc: jeff-macports@… added

Cc Me!

comment:5 Changed 12 years ago by paul@…

In the vein of our new Google overlords; +1 me.

comment:6 Changed 12 years ago by paul@…

Cc: paul@… added

Cc Me!

comment:7 Changed 12 years ago by jeff-macports@…

Fixed in [91669].

comment:8 Changed 12 years ago by jyrkiwahlstedt

Resolution: fixed
Status: newclosed

cf last comment

Note: See TracTickets for help on using tickets.