Distributed Erlang embeded startup problem

Eranga Udesh <>
Mon Jul 18 21:40:22 CEST 2005


Hi,

I have to bring to subject up again, since my problem doesn't seems to
be solved yet.

I have 2 Log servers running in distributed environment. When the
master log server goes down, a slave node is started in a seperate
computer. When the master node starts again, first time it crashes.
Same time the slave node application stop. Since I have activated
HEART, the master node restarts and and that time it start correctly.
Erlang runs in embedded mode

What could be the problem. I have attached my 2 sys.config files.

Also, I have given below a cleaned output I get in the erlang.log.1 file.

Please help.

- Eranga




Erlang (BEAM) emulator version 5.4.6 [source] [hipe] [threads:5]
.
.
.
=INFO REPORT==== 19-Jul-2005::00:23:00 ===
    "Application takeover."
    module: omnilog_app
.
.
.
=SUPERVISOR REPORT==== 19-Jul-2005::00:23:44 ===
     Supervisor: {<0.160.0>,omnilog_sup}
     Context:    start_error
     Reason:     {already_started,<2420.1452.0>}
     Offender:   [{pid,undefined},
                  {name,txalarm1_log},
                  {mfa,{gen_event,start_link,[{global,txalarm1_log}]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]


=CRASH REPORT==== 19-Jul-2005::00:23:44 ===
  crasher:
    pid: <0.69.0>
    registered_name: []
    error_info: "invalid return value from
omnilog_app:start({},[]) -> {'EXIT',\n          
                                           {{badmatch,\n              
                                            {error,shutdown}},\n      
                                                [{omnilog_app,\n      
                                                     start_system,\n  
                                                         1},\n        
                                               {application_master,\n 
                                                         
start_it_old,\n                                                       
    4}]}}"
    initial_call: {application_master,init,
                                     [<0.6.0>,
                                      <0.68.0>,
                                      {appl_data,
                                          omni_log,
                                          [omni_log],
                                          undefined,
                                          {omnilog_app,[]},
                                          [omnilog_app,
                                           omnilog_sup,
                                           omnilog_disklog,
                                           omnilog_cfg,
                                           omnilog_tty_logger,
                                           omnilog,
                                           omnilog_fmt],
                                          [],
                                          infinity,
                                          infinity},
                                      {}]}
    ancestors: [<0.68.0>]
    messages: [{'EXIT',<0.70.0>,normal}]
    links: [<0.68.0>,<0.6.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 1597
    stack_size: 21
    reductions: 143
  neighbours:

=INFO REPORT==== 19-Jul-2005::00:23:44 ===
    application: omni_log
    exited: "invalid return value from
omnilog_app:start({},[]) -> {'EXIT',\n          
                                           {{badmatch,\n              
                                            {error,shutdown}},\n      
                                                [{omnilog_app,\n      
                                                     start_system,\n  
                                                         1},\n        
                                               {application_master,\n 
                                                         
start_it_old,\n                                                       
    4}]}}"
    type: permanent
Eshell V5.4.6  (abort with ^G)
()1> {"Kernel pid terminated",application_controller,shutdown}

heart: Tue Jul 19 00:23:46 2005: Erlang has closed.

heart: Tue Jul 19 00:23:51 2005: Unable to kill old process, kill
failed (tried multiple times).

heart: Tue Jul 19 00:23:51 2005: Executed "/etc/rc.d/init.d/log.system
start". Terminating.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sys.config
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050719/ad570492/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sys.config
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050719/ad570492/attachment-0001.ksh>


More information about the erlang-questions mailing list