I have gone back to raw OTP I am afraid for my current project.
I didn't find a resolution to it, I code code tired wading through it all.
Shame though CB is really really good.
Sean


On 28 January 2015 at 01:56, Robert Swirsky <[email protected]>
wrote:

>
> I'm having the EXACT SAME problem!
>
> In production mode, a route isn't found (not all routes, just some of
> them). The error is always a "list_to_atom(undefined)" in 
> boss_router_controller:route/2
> line 172
>
> 2015-01-28 01:50:14.119 [error] <0.265.0> gen_server <0.265.0> terminated
> with reason: bad argument in call to erlang:list_to_atom(undefined) in
> boss_router_controller:route/2 line 172
>
> 2015-01-28 01:50:14.119 [error] <0.265.0> CRASH REPORT Process <0.265.0>
> with 0 neighbours exited with reason: bad argument in call to
> erlang:list_to_atom(undefined) in boss_router_controller:route/2 line 172
> in gen_server:terminate/7 line 804
>
> 2015-01-28 01:50:14.120 [error] <0.264.0> Supervisor
> {<0.264.0>,boss_router_sup} had child router_controller started with
> boss_router_controller:start_link([{application,beakconsole},{controllers,["beakconsole_main_controller","beakconsole_channel_mast...",...]}])
> at <0.265.0> exit with reason bad argument in call to
> erlang:list_to_atom(undefined) in boss_router_controller:route/2 line 172
> in context child_terminated
>
> 2015-01-28 01:50:14.120 [error]
> <0.287.0>@boss_web_controller_handle_request:handle_request:30 Unhandled
> Error:
> exit:{{badarg,[{erlang,list_to_atom,[undefined],[]},{boss_router_controller,route,2,[{file,"src/boss/boss_router_controller.erl"},{line,172}]},{boss_router_controller,handle_call,3,[{file,"src/boss/boss_router_controller.erl"},{line,64}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,607}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,639}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]},{gen_server,call,[<0.265.0>,{route,"/server/servers"}]}}.
> Stacktrace:
> [{gen_server,call,2,[{file,"gen_server.erl"},{line,182}]},{boss_web_controller_handle_request,process_dynamic_request,4,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,237}]},{boss_web_controller_handle_request,process_request,4,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,232}]},{boss_web_controller_handle_request,set_timer,7,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,148}]},{boss_web_controller_handle_request,build_dynamic_response,4,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,122}]},{boss_web_controller_handle_request,handle_request,3,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,26}]},{mochicow_upgrade,upgrade,4,[{file,"src/mochicow_upgrade.erl"},{line,72}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,529}]}]
>
> but in develop mode, it works fine:
>
> (beakconsole@master1)1> 01:54:06.924 [notice] ApplicationForPath
> beakconsole
>
> 01:54:06.930 [info] Loading routes from
> "/home/famserve/cb/erlang/beakconsole/priv/beakconsole.routes" ....
>
> 01:54:06.931 [info] Boss Route beakconsole "server" "servers" []
>
> 01:54:06.945 [info] Query SELECT * FROM channel_masters WHERE id = 1
>
> 01:54:06.958 [notice] Request Method 'GET'
>
> 01:54:06.958 [notice] Tokens []
>
> 01:54:06.972 [info] GET /server/servers [beakconsole] 200 0ms
>
> 01:54:07.948 [notice] ApplicationForPath beakconsole
>
> 01:54:07.949 [info] Loading routes from
> "/home/famserve/cb/erlang/beakconsole/priv/beakconsole.routes" ....
>
> 01:54:07.954 [info] Query SELECT * FROM channel_masters WHERE id = 1
>
> 01:54:07.955 [notice] Request Method 'GET'
>
> 01:54:07.955 [notice] Tokens []
>
> 01:54:08.865 [info] GET /salt/ping [beakconsole] 200 0ms
>
>  --
> 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 [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/d18e7a94-bc5f-4adc-b0fb-ceae2ac2bcf3%40googlegroups.com
> <https://groups.google.com/d/msgid/chicagoboss/d18e7a94-bc5f-4adc-b0fb-ceae2ac2bcf3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/CAEiEuU%2BL9enT9Jag5w79iRKh2UW2TZS6pRc1JK8Jvyp3eqxzOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to