[MacPorts] #32102: CouchDB 1.1.1 fails to start (/opt/local/var/run/couchdb directory missing)

MacPorts noreply at macports.org
Thu Nov 17 11:16:22 PST 2011


#32102: CouchDB 1.1.1 fails to start (/opt/local/var/run/couchdb directory missing)
------------------------------+---------------------------------------------
 Reporter:  snaury@…          |       Owner:  macports-tickets@…                   
     Type:  defect            |      Status:  new                                  
 Priority:  Normal            |   Milestone:                                       
Component:  ports             |     Version:  2.0.3                                
 Keywords:                    |        Port:  couchdb                              
------------------------------+---------------------------------------------
 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. ;)

-- 
Ticket URL: <https://trac.macports.org/ticket/32102>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list