blairio commented on issue #895: CouchDB 1.6.1 fails to start under macOS High 
Sierra
URL: https://github.com/apache/couchdb/issues/895#issuecomment-339127821
 
 
   Well, it sorta works. Seems unstable. I get weird errors now such as:
   ```
   [error] [<0.3066.0>] Uncaught error in HTTP request: {exit,
                                                         {{{{case_clause,
                                                             {{badmatch,
                                                               {error,
                                                                {{badmatch,
                                                                  
{error,emfile}},
                                                                 [{couch_file,
                                                                   init,1,
                                                                   [{file,
                                                                     
"couch_file.erl"},
                                                                    
{line,314}]},
                                                                  {gen_server,
                                                                   init_it,6,
                                                                   [{file,
                                                                     
"gen_server.erl"},
                                                                    
{line,328}]},
                                                                  {proc_lib,
                                                                   
init_p_do_apply,
                                                                   3,
                                                                   [{file,
                                                                     
"proc_lib.erl"},
                                                                    {line,
                                                                     247}]}]}}},
                                                              
[{couch_db_updater,
                                                                
open_reader_fd,2,
                                                                [{file,
                                                                  
"couch_db_updater.erl"},
                                                                 {line,490}]},
                                                               
{couch_db_updater,
                                                                init,1,
                                                                [{file,
                                                                  
"couch_db_updater.erl"},
                                                                 {line,45}]},
                                                               {gen_server,
                                                                init_it,6,
                                                                [{file,
                                                                  
"gen_server.erl"},
                                                                 {line,328}]},
                                                               {proc_lib,
                                                                init_p_do_apply,
                                                                3,
                                                                [{file,
                                                                  
"proc_lib.erl"},
                                                                 
{line,247}]}]}},
                                                            [{couch_server,
                                                              handle_info,2,
                                                              [{file,
                                                                
"couch_server.erl"},
                                                               {line,442}]},
                                                             {gen_server,
                                                              try_dispatch,4,
                                                              [{file,
                                                                
"gen_server.erl"},
                                                               {line,601}]},
                                                             {gen_server,
                                                              handle_msg,5,
                                                              [{file,
                                                                
"gen_server.erl"},
                                                               {line,667}]},
                                                             {proc_lib,
                                                              init_p_do_apply,3,
                                                              [{file,
                                                                "proc_lib.erl"},
                                                               {line,247}]}]},
                                                           {gen_server,call,
                                                            [couch_server,
                                                             {open,<<"_users">>,
                                                              
[{before_doc_update,
                                                                
#Fun<couch_users_db.before_doc_update.2>},
                                                               {after_doc_read,
                                                                
#Fun<couch_users_db.after_doc_read.2>},
                                                               sys_db,
                                                               {user_ctx,
                                                                {user_ctx,null,
                                                                 [<<"_admin">>],
                                                                 undefined}},
                                                               nologifmissing,
                                                               sys_db]},
                                                             infinity]}},
                                                          {gen_server,call,
                                                           [couch_auth_cache,
                                                            {fetch,<<"admin">>},
                                                            infinity]}}}
   ```
   and
   ```
   [error] [<0.15466.0>] ** Generic server couch_auth_cache terminating 
   ** Last message in was {'DOWN',#Ref<0.0.7.597>,process,<0.15470.0>,shutdown}
   ** When Server state == {state,50,0,<0.15467.0>,#Ref<0.0.7.597>}
   ** Reason for termination == 
   ** {{{{case_clause,
             {{badmatch,
                  {error,
                      {{badmatch,{error,emfile}},
                       
[{couch_file,init,1,[{file,"couch_file.erl"},{line,314}]},
                        {gen_server,init_it,6,
                            [{file,"gen_server.erl"},{line,328}]},
                        {proc_lib,init_p_do_apply,3,
                            [{file,"proc_lib.erl"},{line,247}]}]}}},
              [{couch_db_updater,open_reader_fd,2,
                   [{file,"couch_db_updater.erl"},{line,490}]},
               {couch_db_updater,init,1,
                   [{file,"couch_db_updater.erl"},{line,45}]},
               {gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]},
               
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}},
         [{couch_server,handle_info,2,[{file,"couch_server.erl"},{line,442}]},
          {gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,601}]},
          {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,667}]},
          {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]},
        {gen_server,call,
            [couch_server,
             {open,<<"_users">>,
                 [{before_doc_update,#Fun<couch_users_db.before_doc_update.2>},
                  {after_doc_read,#Fun<couch_users_db.after_doc_read.2>},
                  sys_db,
                  {user_ctx,{user_ctx,null,[<<"_admin">>],undefined}},
                  nologifmissing,sys_db]},
             infinity]}},
       [{gen_server,call,3,[{file,"gen_server.erl"},{line,212}]},
        {couch_server,open,2,[{file,"couch_server.erl"},{line,70}]},
        {couch_db,open,2,[{file,"couch_db.erl"},{line,79}]},
        {couch_auth_cache,ensure_users_db_exists,2,
            [{file,"couch_auth_cache.erl"},{line,390}]},
        {couch_auth_cache,open_auth_db,0,
            [{file,"couch_auth_cache.erl"},{line,367}]},
        {couch_auth_cache,reinit_cache,1,
            [{file,"couch_auth_cache.erl"},{line,232}]},
        {couch_auth_cache,handle_info,2,
            [{file,"couch_auth_cache.erl"},{line,206}]},
        {gen_server,try_dispatch,4,[{file,"gen_
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to