Crash of server

76 views
Skip to first unread message

Sebastien Carobbio

unread,
May 28, 2020, 8:19:36 AM5/28/20
to LoRaWAN Server Users
Hello everybody,

I have a problem since 2 or 3 week with my gateway.

Sometime, the lora - server crash and I can't restart it.
the crash.log file contains:
2020-05-28 10:58:02 =CRASH REPORT====
  crasher:
    initial call: application_master:init/4
    pid: <0.287.0>
    registered_name: []
    exception exit: {{bad_return,{{lorawan_app,start,[normal,[]]},{'EXIT',{{badmatch,{timeout,[rxframe]}},[{lorawan_db,ensure_table,3,[{file,"/home/travis/build/gotthardp/lorawan-server/_build/default/lib/lorawan_server/src/lorawan_db.erl"},{line,117}]},{lists,foreach,2,[{file,"lists.erl"},{line,1338}]},{lorawan_app,start,2,[{file,"/home/travis/build/gotthardp/lorawan-server/_build/default/lib/lorawan_server/src/lorawan_app.erl"},{line,18}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,273}]}]}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,134}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
    ancestors: [<0.286.0>]
    message_queue_len: 1
    messages: [{'EXIT',<0.288.0>,normal}]
    links: [<0.286.0>,<0.33.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 230
  neighbours:
2020-05-28 10:58:02 =ERROR REPORT====
Error in process <0.227.0> on node 'lorawan@fonroche-gateway-0001' with exit value:
{badarg,[{ets,select,[{rxframe,24241,100,#Ref<0.2315052831.1622016001.241757>,[],0}],[]},{mnesia_lib,db_select_cont,3,[{file,"mnesia_lib.erl"},{line,1209}]},{mnesia_lib,select_foldl,4,[{file,"mnesia_lib.erl"},{line,1174}]},{mnesia_index,add_ram_index,3,[{file,"mnesia_index.erl"},{line,435}]},{mnesia_index,make_ram_index,3,[{file,"mnesia_index.erl"},{line,418}]},{mnesia_loader,do_get_disc_copy2,4,[{file,"mnesia_loader.erl"},{line,82}]},{mnesia_controller,disc_load_table,3,[{file,"mnesia_controller.erl"},{line,2232}]},{mnesia_controller,'-load_and_reply/2-fun-0-',2,[{file,"mnesia_controller.erl"},{line,2138}]}]}



Then sometimes,I have this message when I try to restart:
{"init terminating in do_boot",{{badmatch,{error,{lorawan_server,{bad_return,{{lorawan_app,start,[normal,[]]},{'EXIT',{{badmatch,{timeout,[rxframe]}},[{lorawan_db,ensure_table,3,[{file,"/home/travis/build/gotthardp/lorawan-server/_build/default/lib/lorawan_server/src/lorawan_db.erl"},{line,117}]},{lists,foreach,2,[{file,"lists.erl"},{line,1338}]},{lorawan_app,start,2,[{file,"/home/travis/build/gotthardp/lorawan-server/_build/default/lib/lorawan_server/src/lorawan_app.erl"},{line,18}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,273}]}]}}}}}}},[{lorawan_app,start,0,[{file,"/home/travis/build/gotthardp/lorawan-server/_build/default/lib/lorawan_server/src/lorawan_app.erl"},{line,13}]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({{badmatch,{error,{lorawan_server,{_}}}},[{lorawan_app,start,0,[{_},{_}]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

So, Can you help me please?

Have a good day!

Sébastien Carobbio


Petr Gotthard

unread,
May 28, 2020, 10:24:12 AM5/28/20
to Sebastien Carobbio, LoRaWAN Server Users

Hello,

 

"timeout" on a database could be caused by an installation issue (new or old erlang?), or by a database corruption. Could you try if a fresh installation works?

 

 

Petr

 

______________________________________________________________
> Od: "Sebastien Carobbio" <sebastien...@gmail.com>
> Komu: "LoRaWAN Server Users" <lorawan...@googlegroups.com>
> Datum: 28.05.2020 14:19
> Předmět: Crash of server
>

--
You received this message because you are subscribed to the Google Groups "LoRaWAN Server Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lorawan-serve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lorawan-server/3c78d14e-860c-4e41-87c2-ca1e0b676962%40googlegroups.com.

Sebastien Carobbio

unread,
Jun 8, 2020, 8:44:07 AM6/8/20
to LoRaWAN Server Users
Hello,
I have solved my problem in using this method:
- Delete all *.DCL files and rxframes.DCD file
- Change value of "retained_rxframes" by 1 in sys.config file
- Restart.

My GW have between 200 - 400 devices connected and I suppose that micro BDD used for display information in web page use these databases.

So I have another question: Is it possible to stop easilly the display of lora server?

Thank you for the support!
Reply all
Reply to author
Forward
0 new messages