Re: [chicagoboss] production mode error

156 views
Skip to first unread message

郎咸武

unread,
Apr 15, 2013, 11:27:39 PM4/15/13
to chica...@googlegroups.com
Hi henglinli. You check of your XX.routes. Maybe the routes is lost action. May you spell error.

cheers
Jason


2013/4/15 李恒林 <heng...@gmail.com>
My apps works well in Dev mode, but error ocurred in production mode.

OS info:

CentOS release 6.4 (Final)

erlang info: 

Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]

error.log:

2013-04-15 19:47:33.273 [error] <0.149.0> gen_server <0.149.0> terminated with reason: bad argument in call to erlang:list_to_atom(undefined) in boss_router_controller:handle_call/3
2013-04-15 19:47:33.277 [error] <0.149.0> CRASH REPORT Process <0.149.0> with 0 neighbours exited with reason: bad argument in call to erlang:list_to_atom(undefined) in boss_router_controller:handle_call/3 in gen_server:terminate/6
2013-04-15 19:47:33.278 [error] <0.148.0> Supervisor boss_router_sup had child router_controller started with boss_router_controller:start_link([{application,kanke},{controllers,[]}]) at <0.149.0> exit with reason bad argument in call to erlang:list_to_atom(undefined) in boss_router_controller:handle_call/3 in context child_terminated
2013-04-15 19:47:33.279 [error] <0.136.0> CRASH REPORT Process <0.136.0> with 0 neighbours exited with reason: {{badarg,[{erlang,list_to_atom,[undefined]},{boss_router_controller,handle_call,3},{gen_server,handle_msg,5},{proc_lib,init_p_do_apply,3}]},{gen_server,call,[<0.149.0>,{route,"/"}]}} in gen_server:call/2

crash.log:

2013-04-15 19:47:33 =ERROR REPORT====
** Generic server <0.149.0> terminating 
** Last message in was {route,"/"}
** When Server state == {state,kanke,[],20501,24598,28695}
** Reason for termination == 
** {badarg,[{erlang,list_to_atom,[undefined]},{boss_router_controller,handle_call,3},{gen_server,handle_msg,5},{proc_lib,init_p_do_apply,3}]}
2013-04-15 19:47:33 =CRASH REPORT====
  crasher:
    initial call: boss_router_controller:init/1
    pid: <0.149.0>
    registered_name: []
    exception exit: {badarg,[{erlang,list_to_atom,[undefined]},{boss_router_controller,handle_call,3},{gen_server,handle_msg,5},{proc_lib,init_p_do_apply,3}]}
      in function  gen_server:terminate/6
      in call from proc_lib:init_p_do_apply/3
    ancestors: [<0.148.0>,boss_web,boss_sup,<0.56.0>]
    messages: []
    links: [<0.148.0>]
    dictionary: [{boss_environment,production}]
    trap_exit: false
    status: running
    heap_size: 987
   stack_size: 24
    reductions: 2149
  neighbours:
2013-04-15 19:47:33 =SUPERVISOR REPORT====
     Supervisor: {<0.148.0>,boss_router_sup}
     Context:    child_terminated
     Reason:     {badarg,[{erlang,list_to_atom,[undefined]},{boss_router_controller,handle_call,3},{gen_server,handle_msg,5},{proc_lib,init_p_do_apply,3}]}
     Offender:   [{pid,<0.149.0>},{name,router_controller},{mfargs,{boss_router_controller,start_link,[[{application,kanke},{controllers,[]}]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]

2013-04-15 19:47:33 =CRASH REPORT====
  crasher:
    initial call: mochiweb_acceptor:init/3
    pid: <0.136.0>
    registered_name: []
    exception exit: {{badarg,[{erlang,list_to_atom,[undefined]},{boss_router_controller,handle_call,3},{gen_server,handle_msg,5},{proc_lib,init_p_do_apply,3}]},{gen_server,call,[<0.149.0>,{route,"/"}]}}
      in function  gen_server:call/2
      in call from boss_web_controller:process_dynamic_request/5
      in call from boss_web_controller:process_request/5
     in call from timer:tc/3
      in call from boss_web_controller:build_dynamic_response/4
      in call from mochiweb_http:headers/5
      in call from proc_lib:init_p_do_apply/3
    ancestors: [mochiweb_http,boss_web,boss_sup,<0.56.0>]
    messages: []
    links: [<0.131.0>,#Port<0.11759>]
    dictionary: [{boss_environment,production},{mochiweb_request_cookie,[]}]
    trap_exit: false
    status: running
    heap_size: 1597
    stack_size: 24
    reductions: 1684
  neighbours:


--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
只为成功找方法,不为失败找理由

李恒林

unread,
Apr 24, 2013, 4:18:29 AM4/24/13
to chica...@googlegroups.com
Thanks.

After 
rebar clean;  rebar compile
it works.

在 2013年4月16日星期二UTC+8上午11时27分39秒,jason写道:

Olasemo Oladipo

unread,
Feb 20, 2018, 6:42:47 PM2/20/18
to ChicagoBoss
Wao! this worked!..

I have been battling this issue for over 2 days now.

Thanks
Reply all
Reply to author
Forward
0 new messages