New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #32102 (closed defect: fixed)

Opened 18 months ago

Last modified 14 months ago

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

Reported by: snaury@… Owned by: jwa@…
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

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

Change History

comment:1 Changed 18 months ago by snaury@…

  • Cc snaury@… added

Cc Me!

comment:2 Changed 18 months ago by macsforever2000@…

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

comment:3 Changed 18 months ago by erik@…

  • Cc erik@… added

Cc Me!

Changed 18 months ago by jeff-macports@…

Patch

comment:4 Changed 18 months ago by jeff-macports@…

  • Cc jeff-macports@… added

Cc Me!

comment:5 Changed 18 months ago by paul@…

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

comment:6 Changed 18 months ago by paul@…

  • Cc paul@… added

Cc Me!

comment:7 Changed 14 months ago by jeff-macports@…

Fixed in [91669].

comment:8 Changed 14 months ago by jwa@…

  • Status changed from new to closed
  • Resolution set to fixed

cf last comment

Note: See TracTickets for help on using tickets.