I am having the same problem.

To try and solve the problem i created a new project and addes only one 
controller , here are the results

  In the browser i get:
 An unhandled and unrecoverable error occurred. Please check error logs.
  
 in the error.log i have:

2015-01-09 09:43:44.478 [error] <0.257.0> gen_server <0.257.0> terminated with 
reason: bad argument in call to erlang:list_to_atom(undefined) in 
boss_router_controller:route/2 line 172
2015-01-09 09:43:44.479 [error] <0.257.0> CRASH REPORT Process <0.257.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/6 line 746
2015-01-09 09:43:44.479 [error] <0.256.0> Supervisor 
{<0.256.0>,boss_router_sup} had child router_controller started with 
boss_router_controller:start_link([{application,jb},{controllers,["jb_main_controller"]}])
 at <0.257.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-09 09:43:44.806 [error] 
<0.262.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,handle_msg,5,[{file,"gen_server.erl"},{line,580}]},
           {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]},
      {gen_server,call,[<0.257.0>,{route,"/"}]}} Stacktrace: 
[{gen_server,call,2,[{file,"gen_server.erl"},{line,182}]},{boss_web_controller_handle_request,process_dynamic_request,5,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,249}]},{boss_web_controller_handle_request,process_request,5,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,244}]},{boss_web_controller_handle_request,set_timer,8,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,160}]},{boss_web_controller_handle_request,build_dynamic_response,5,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,129}]},{boss_web_controller_handle_request,handle_request,4,[{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}]}]


In the console.log i have:

2015-01-09 09:43:44.423 [info] <0.257.0>@boss_router_controller:route:171 Boss 
Route jb "home" "index" []
2015-01-09 09:43:44.478 [error] <0.257.0> gen_server <0.257.0> terminated with 
reason: bad argument in call to erlang:list_to_atom(undefined) in 
boss_router_controller:route/2 line 172
2015-01-09 09:43:44.479 [error] <0.257.0> CRASH REPORT Process <0.257.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/6 line 746
2015-01-09 09:43:44.479 [error] <0.256.0> Supervisor 
{<0.256.0>,boss_router_sup} had child router_controller started with 
boss_router_controller:start_link([{application,jb},{controllers,["jb_main_controller"]}])
 at <0.257.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-09 09:43:44.804 [info] <0.263.0> Loading routes from 
"../jb/priv/jb.routes" ....
2015-01-09 09:43:44.806 [error] 
<0.262.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,handle_msg,5,[{file,"gen_server.erl"},{line,580}]},
           {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]},
      {gen_server,call,[<0.257.0>,{route,"/"}]}} Stacktrace: 
[{gen_server,call,2,[{file,"gen_server.erl"},{line,182}]},{boss_web_controller_handle_request,process_dynamic_request,5,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,249}]},{boss_web_controller_handle_request,process_request,5,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,244}]},{boss_web_controller_handle_request,set_timer,8,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,160}]},{boss_web_controller_handle_request,build_dynamic_response,5,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,129}]},{boss_web_controller_handle_request,handle_request,4,[{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}]}]



The CB install was gotten fresh from git, it compiled with no errors and 
created the project with no errors.
Its quite possible i am just to tired to see the obvious. CB has is turning 
out the be more problematic than i would expect and its the little things 
like working all the time in dev mode and not at all in production( LOL).  

On Friday, May 3, 2013 at 4:42:20 AM UTC-4, Derek Chiang wrote:
>
> I'm not sure why this happens, but when I try to deploy my application on 
> a remote server and start in production mode ("./init.sh start"), the 
> routes file is not found.  However if I start it in development mode, then 
> everything is good.
>
> It's worth noting that both development mode and production mode run 
> normally on my local machine.
>

-- 
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/8c026e33-c079-49fd-b33f-5a316bde8fce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to