[erlang-questions] Failed to start gproc globally

Khitai Pang khitai.pang@REDACTED
Mon Mar 14 21:08:02 CET 2016


Hi,

I added

  {gproc, [
            {gproc_dist, all}
          ]}

into my sys.config and when I start the application I get

=INFO REPORT==== 15-Mar-2016::04:01:49 ===
     application: gproc
     exited: {{shutdown,
                  {failed_to_start_child,gproc_dist,
                      {'EXIT',
                          {undef,
                              [{gen_leader,start_link,
                                   [gproc_dist,
                                    ['myapp@REDACTED'],
                                    [{bcast_type,all}],
                                    gproc_dist,[],
                                    [{spawn_opt,[]}]],
                                   []},
                               {supervisor,do_start_child,2,
[{file,"supervisor.erl"},{line,343}]},
                               {supervisor,start_children,3,
[{file,"supervisor.erl"},{line,326}]},
                               {supervisor,init_children,2,
[{file,"supervisor.erl"},{line,292}]},
                               {gen_server,init_it,6,
[{file,"gen_server.erl"},{line,328}]},
                               {proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,240}]}]}}}},
              {gproc_app,start,[normal,[]]}}
     type: permanent
{"Kernel pid 
terminated",application_controller,"{application_start_failure,gproc,{{shutdown,{failed_to_start_child,gproc_dist,{'EXIT',{undef,[{gen_leader,start_link,[gproc_dist,['myapp@REDACTED'],[{bcast_type,all}],gproc_dist,[],[{spawn_opt,[]}]],[]},{supervisor,do_start_child,2,[{file,\"supervisor.erl\"},{line,343}]},{supervisor,start_children,3,[{file,\"supervisor.erl\"},{line,326}]},{supervisor,init_children,2,[{file,\"supervisor.erl\"},{line,292}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,240}]}]}}}},{gproc_app,start,[normal,[]]}}}"}


I want to specify gproc parameters in sys.config because that appears 
consistent to me, but I have failed to figure out the reason.  Any 
advice is appreciated!


Thanks
Khitai



More information about the erlang-questions mailing list