ejabberd_mod_muc_sup Supervisor causing crash

Please see this crash log and help me solve the issue.

=SUPERVISOR REPORT====
Supervisor: {local,'ejabberd_mod_muc_sup_ejab.myapp.com'}
Context: shutdown_error
Reason: killed
Offender: [{nb_children,248},{name,undefined},{mfargs,{mod_muc_room,start_link,[]}},{restart_type,temporary},{shutdown,1000},{child_type,worker}]

=ERROR REPORT====
[{application_master,shutdown_error},{ejabberd_app,{prep_stop,[[]]}},{error_info,{badarg,[{ets,lookup,[local_config,{listen,global}],[]},{ejabberd_config,get_option,3,[{file,"src/ejabberd_config.erl"},{line,749}]},{ejabberd_listener,stop_listeners,0,[{file,"src/ejabberd_listener.erl"},{line,380}]},{ejabberd_app,prep_stop,1,[{file,"src/ejabberd_app.erl"},{line,84}]},{application_master,prep_stop,2,[{file,"application_master.erl"},{line,376}]},{application_master,loop_it,4,[{file,"application_master.erl"},{line,368}]}]}}]

The first error reason shown

The first error reason shown in all those lines is this one:

{error_info,{badarg,[{ets,lookup,[local_config,{listen,global}],[]}

It probably indicates that the Mnesi table (an internal Erlang database table) called "local_config" does not exist. This table is created when ejabbed is started, and the table is never deleted, because it is important.

How can it be that this table does not exist? Check your log files, maybe there is a previous line with some clue.

Thanks badlop , It was great

Thanks badlop ,

It was great help for me and i become able to solve this crash which was caused due to local_config.

I thought it was related with

I thought it was related with local_config after monitoring it whole day , i found issue has not been resolved and still there . i am sharing mnesia database looup here .
please see this if you can found anything .

[{access_module,mnesia},
{auto_repair,true},
{backup_module,mnesia_backup},
{checkpoints,[]},
{db_nodes,[ejabberd@jughead]},
{debug,none},
{directory,"/opt/ejabberd-15.11/database/ejabberd@jughead"},
{dump_log_load_regulation,false},
{dump_log_time_threshold,180000},
{dump_log_update_in_place,true},
{dump_log_write_threshold,1000},
{event_module,mnesia_event},
{extra_db_nodes,[]},
{fallback_activated,false},
{held_locks,[]},
{ignore_fallback_at_startup,false},
{fallback_error_function,{mnesia,lkill}},
{is_running,yes},
{local_tables,[sql_pool,mod_register_ip,local_config,caps_features,acl,
access,shaper,carboncopy,last_activity,pubsub_index,
vcard_search,http_bind,sr_user,schema,session,
pubsub_last_item,route,private_storage,sr_group,oauth_token,
privacy,iq_response,temporarily_blocked,s2s,multicastc,
session_counter,muc_online_room,vcard,route_multicast]},
{lock_queue,[]},
{log_version,"4.3"},
{master_node_tables,[]},
{max_wait_for_decision,infinity},
{protocol_version,{8,1}},
{running_db_nodes,[ejabberd@jughead]},
{schema_location,opt_disc},
{schema_version,{2,0}},
{subscribers,[<6107.144.0>,<6107.416.0>,<6107.341.0>,<6107.304.0>]},
{tables,[sql_pool,carboncopy,last_activity,pubsub_index,vcard_search,
http_bind,sr_user,schema,session,pubsub_last_item,route,
private_storage,access,caps_features,sr_group,oauth_token,acl,
privacy,local_config,iq_response,temporarily_blocked,s2s,multicastc,
session_counter,mod_register_ip,muc_online_room,vcard,
route_multicast,shaper]},
{transaction_commits,4221},
{transaction_failures,62},
{transaction_log_writes,52},
{transaction_restarts,0},
{transactions,[]},
{use_dir,true},
{core_dir,false},
{no_table_loaders,2},
{dc_dump_limit,4},
{send_compressed,0},
{version,"4.12.5"}]
==============end

After making a fresh

After making a fresh installation , My ejab(15.11) server still getting crashed .

tail -f /opt/ejabberd-15.11/logs/crash.log
Offender: [{pid,{restarting,<0.366.0>}},{name,ejabberd_listener},{mfargs,{ejabberd_listener,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]

2015-12-26 08:26:54 =ERROR REPORT====
Error in process <0.631.1> on node 'ejabberd@archie' with exit value: {badarg,[{ets,lookup,[local_config,{hosts,global}],[]},{ejabberd_config,get_option,3,[{file,"src/ejabberd_config.erl"},{line,749}]},{ejabberd_system_monitor,process_large_heap,2,[{file,"src/ejabberd_system_monitor.er...

2015-12-26 08:26:54 =ERROR REPORT====
Error in process <0.632.1> on node 'ejabberd@archie' with exit value: {badarg,[{ets,lookup,[local_config,{hosts,global}],[]},{ejabberd_config,get_option,3,[{file,"src/ejabberd_config.erl"},{line,749}]},{ejabberd_system_monitor,process_large_heap,2,[{file,"src/ejabberd_system_monitor.er...

2015-12-26 08:26:54 =ERROR REPORT====
[{application_master,shutdown_error},{ejabberd_app,{prep_stop,[[]]}},{error_info,{badarg,[{ets,lookup,[local_config,{listen,global}],[]},{ejabberd_config,get_option,3,[{file,"src/ejabberd_config.erl"},{line,749}]},{ejabberd_listener,stop_listeners,0,[{file,"src/ejabberd_listener.erl"},{line,380}]},{ejabberd_app,prep_stop,1,[{file,"src/ejabberd_app.erl"},{line,84}]},{application_master,prep_stop,2,[{file,"application_master.erl"},{line,376}]},{application_master,loop_it,4,[{file,"application_master.erl"},{line,368}]}]}}]

I have mention this on

I have mention this on stackoverflow and also on github to get help .
Log which i have shared on stackoverflow :

http://stackoverflow.com/questions/34469754/ejabberd-15-11-crash-cause-o...

https://github.com/processone/ejabberd/issues/884#issuecomment-167534944

Syndicate content