id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,port
32102,CouchDB 1.1.1 fails to start (/opt/local/var/run/couchdb directory missing),snaury@…,jwa@macports.org,"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. ;)",defect,closed,Normal,,ports,2.0.3,fixed,,erik@… jeff-macports@… paul@…,couchdb
