<div dir="ltr">hello .<div>i am a bit of a noob at erlang and was having some problems and  needed some help .</div><div>i am trying out distributed erlang and i was trying to perform a  fail-over and takeover .</div><div>the fail over works fine but  i am  having some issues with the takeover .</div><div>i  created a release and i was able to run three nodes a(prim.),b(sec.),c(sec.) .</div><div><br></div><div>the fail over works fine but the takeover gives me some errors when i try it .</div><div><br></div><div>i get this error when i  try restarting the primary node however with the application  having failed over to node b and running  well .</div><div><br></div><div><div>=INFO REPORT==== 23-Jan-2015::02:20:57 ===</div><div>global: Name conflict terminating {m8ball_server,<2910.62.0>}</div><div><br></div><div>=INFO REPORT==== 23-Jan-2015::02:20:57 ===</div><div>global: Name conflict terminating {m8ball_sup,<2910.61.0>}</div></div><div><br></div><div><br></div><div>i know its got to do with </div><div><div>    supervisor:start_link({global,?MODULE}, ?MODULE, []). --top level supervisor</div></div><div><div>    gen_server:start_link({global, ?MODULE}, ?MODULE, [], []).--main gen server</div></div><div>which i use in the top level supervisor and  the main genserver</div><div><br></div><div>i wanted to know how to use the </div><div><a name="Module:start_phase-3" style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:medium"><span class="" style="font-family:Courier,monospace;font-weight:bold">start_phase(Phase, StartType, PhaseArgs) and </span></a></div><div><a name="Module:start_phase-3" style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:medium"><span class="" style="font-family:Courier,monospace;font-weight:bold">re_register_name(Name, Pid)</span></a></div><div><a name="Module:start_phase-3" style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:medium"><span class="" style="font-family:Courier,monospace;font-weight:bold"> in application callback file and .app file  <br></span></a></div><div><a name="Module:start_phase-3" style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:medium"><span class="" style="font-family:Courier,monospace;font-weight:bold"> to create a sort of synchronized start up procedure(code samples) or if there is an alternate way of tackling this problem of  .</span></a></div><div><a name="Module:start_phase-3" style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:medium"><span class="" style="font-family:Courier,monospace;font-weight:bold"><br></span></a></div><div><font color="#000000" face="Courier, monospace" size="3"><b>ps:lyse .great book!!. my first foray into fp,erlang .learning a lot .</b></font></div><div><br></div><div><font color="#000000" face="Courier, monospace" size="3"><b>thanks !!</b></font></div><div><br></div><div><br></div><div><br></div></div>