Hi, are you already compile your application?
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 chicagoboss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
--
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.
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/5ccdc68b-0613-49d0-8fb6-c8344a8f2052%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I tried this as wll , i compiled the project before and nada, ebin had all the beams
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/94c4f4e3-a4f6-4c40-81ab-021147e71d5c%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAEiEuUKpvaJ5%3DsuT5GPfGFt-zC7_aaRfx_a2GZV2kU3-MgukzQ%40mail.gmail.com.
2015-01-11 10:25:20.332 [info] <0.273.0>@boss_router_controller:route:173 *!!* State.controllers: smsengine_inbound_controller
2015-01-11 10:25:20.332 [info] <0.273.0>@boss_router_controller:route:174 *!!* web_controller: undefined
2015-01-11 10:35:28.683 [info] <0.274.0>@boss_router_controller:route:171 Boss Route smsengine "web" "index" []
2015-01-11 10:35:28.683 [info] <0.274.0>@boss_router_controller:route:173 *!!* State.controllers: smsengine_inbound_controller
2015-01-11 10:35:28.683 [info] <0.274.0>@boss_router_controller:route:174 *!!* web_controller: undefined
2015-01-11 10:35:28.683 [error] <0.274.0> gen_server <0.274.0> terminated with reason: bad argument in call to erlang:list_to_atom(undefined) in boss_router_controller:route/2 line 176
i.e. no change at all... so why does it only have the one controller in the list it matches against at this point in deployment mode I wonder?
Posted this much. Raising another post...
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAEiEuU%2BoWNUwwfi%3DCRNoq54JzZor8fDEmNY9%3DEvmJ_ovoGRbag%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAB-Ofhn5SUW-vz11ovOad-uKcnb_Qh%2BaG7UPODGHnYQWhGNA3A%40mail.gmail.com.
DEV MODE (./init-dev.sh)15:10:05.848 [info] Loading routes from "/Users/seancharles/Documents/bitbucket/smsengine/priv/smsengine.routes" ....15:10:05.921 [info] Boss Route smsengine "web" "index" []15:10:05.921 [info] ???>>> App smsengine15:10:05.921 [info] ???>>> C "web"15:10:05.921 [info] ???>>> Controllers ["smsengine_inbound_controller","smsengine_web_controller"]15:10:06.002 [notice] Request Method 'GET'15:10:06.002 [notice] Tokens []15:10:06.093 [info] GET / [smsengine] 200 0ms15:10:06.493 [notice] ApplicationForPath smsengineDEPLY MOD (./init.sh start)2015-01-12 15:11:55.850 [notice] <0.268.0>@boss_web_controller_handle_request:handle_request:23 ApplicationForPath smsengine2015-01-12 15:11:55.853 [info] <0.255.0>@boss_router_controller:route:171 Boss Route smsengine "web" "index" []2015-01-12 15:11:55.853 [info] <0.255.0>@boss_router_controller:route:172 ???>>> App smsengine2015-01-12 15:11:55.853 [info] <0.255.0>@boss_router_controller:route:173 ???>>> C "web"2015-01-12 15:11:55.853 [info] <0.255.0>@boss_router_controller:route:174 ???>>> Controllers []2015-01-12 15:11:55.869 [warning] <0.6.0> lager_error_logger_h dropped 30 messages in the last second that exceeded the limit of 50 messages/sec2015-01-12 15:11:55.869 [error] <0.255.0> gen_server <0.255.0> terminated with reason: bad argument in call to erlang:list_to_atom(undefined) in boss_router_controller:route/2 line 1762015-01-12 15:11:55.869 [error] <0.255.0> CRASH REPORT Process <0.255.0> with 0 neighbours exited with reason: bad argument in call to erlang:list_to_atom(undefined) in boss_router_controller:route/2 line 176 in gen_server:terminate/7 line 8042015-01-12 15:11:55.869 [error] <0.268.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,176}]},{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.255.0>,{route,"/"}]}}. 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}]}]2015-01-12 15:11:55.870 [error] <0.254.0> Supervisor {<0.254.0>,boss_router_sup} had child router_controller started with boss_router_controller:start_link([{application,smsengine},{controllers,[]}]) at <0.255.0> exit with reason bad argument in call to erlang:list_to_atom(undefined) in boss_router_controller:route/2 line 176 in context child_terminated2015-01-12 15:11:55.871 [info] <0.269.0> Loading routes from "../smsengine/priv/smsengine.routes" ....
--
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.
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/c28a7921-581e-4c38-bf52-00bc87a3a71f%40googlegroups.com.
2015-01-12 17:28:40.219 [notice] <0.267.0>@boss_web_controller_handle_request:handle_request:23 ApplicationForPath smsengine2015-01-12 17:28:40.222 [info] <0.255.0>@boss_router_controller:route:171 Boss Route smsengine "web" "index" []2015-01-12 17:28:40.222 [info] <0.255.0>@boss_router_controller:route:172 ???>>> App smsengine2015-01-12 17:28:40.222 [info] <0.255.0>@boss_router_controller:route:173 ???>>> C "web"2015-01-12 17:28:40.222 [info] <0.255.0>@boss_router_controller:route:174 ???>>> Controllers []2015-01-12 17:28:40.237 [warning] <0.6.0> lager_error_logger_h dropped 30 messages in the last second that exceeded the limit of 50 messages/sec2015-01-12 17:28:40.237 [error] <0.255.0> gen_server <0.255.0> terminated with reason: bad argument in call to erlang:list_to_atom(undefined) in boss_router_controller:route/2 line 1762015-01-12 17:28:40.237 [error] <0.255.0> CRASH REPORT Process <0.255.0> with 0 neighbours exited with reason: bad argument in call to erlang:list_to_atom(undefined) in boss_router_controller:route/2 line 176 in gen_server:terminate/7 line 8042015-01-12 17:28:40.238 [error] <0.254.0> Supervisor {<0.254.0>,boss_router_sup} had child router_controller started with boss_router_controller:start_link([{application,smsengine},{controllers,[]}]) at <0.255.0> exit with reason bad argument in call to erlang:list_to_atom(undefined) in boss_router_controller:route/2 line 176 in context child_terminated2015-01-12 17:28:40.238 [error] <0.267.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,176}]},{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.255.0>,{route,"/"}]}}. 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}]}]2015-01-12 17:28:40.248 [info] <0.269.0> Loading routes from "../smsengine/priv/smsengine.routes" ....
--
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.
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/6e61dc3c-0ed3-498d-a350-f077004b3bf4%40googlegroups.com.
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 chicagoboss...@googlegroups.com.
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.
--
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.
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/02b06116-87e0-448a-bb09-ea618409afe9%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAMz1aGr8onMQjogtu5C8rH-m_h0zP1V2sKa3iS9RfV8Yt6sBQQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAEiEuULTHUwfb6vdko0vH94eB7KamaUz4hLt60g1fOeCPV50fA%40mail.gmail.com.
[{boss, [
{path, "../../deps/boss"},
{applications, [draw,cb_admin]},
{db_host, "192.168.188.81"},
{db_port, 1978},
{db_adapter, mock},
{log_dir, "log"},
{server, cowboy},
{port, 8001},
{session_adapter, mock},
{session_key, "_boss_session"},
{session_exp_time, 525600}
]},
{ draw, [
{path, "../draw"},
{base_url, "/"}
]},
{cb_admin, [
{path, "../cb_admin"},
{allow_ip_blocks, ["127.0.0.1"]},
{base_url, "/admin"},
{model_modules, []},
{websocket_modules, []},
{controller_modules,[
cb_admin_admin_controller,
cb_admin_incoming_mail_controller,
cb_admin_lang_controller,
cb_admin_model_controller,
cb_admin_outgoing_mail_controller,
cb_admin_routes_controller,
cb_admin_upgrade_controller
]},
{view_modules,[
cb_admin_view_admin_access_denied_html,
cb_admin_view_admin_index_html,
cb_admin_view_admin_layouts_admin_html,
cb_admin_view_admin_layouts_shared__alerts_html,
cb_admin_view_admin_layouts_shared__main_menu_html,
cb_admin_view_admin_layouts_shared__sidebar_html,
cb_admin_view_admin_splash_html,
cb_admin_view_lang_big_red_button_html,
cb_admin_view_lang_create_html,
cb_admin_view_lang_delete_html,
cb_admin_view_lang_shared__lang_left_submenu_html,
cb_admin_view_lang_shared__lang_right_submenu_html,
cb_admin_view_lang_show_html,
cb_admin_view_lib_tags,
cb_admin_view_model_create_html,
cb_admin_view_model_delete_html,
cb_admin_view_model_edit_html,
cb_admin_view_model_model_html,
cb_admin_view_model_show_html,
cb_admin_view_model_upload_html,
cb_admin_view_routes_index_html,
cb_admin_view_upgrade_upgrade_html
]}
]}
].
[{boss, [
{path, "../../deps/boss"},
{applications, [draw,cb_admin]},
%{db_host, "192.168.188.81"},
%{db_port, 1978},
%{db_adapter, mock},
{log_dir, "log"},
{server, cowboy},
{port, 8001},
{session_adapter, mock},
{session_key, "_boss_session"},
{session_exp_time, 525600}
%,{websocket_timeout, 5000}
]},
{ draw, [
{path, "../draw"},
{base_url, "/"},
%%draw_custom_filters
%%draw_custom_tags
%%draw_view_lib_tags
{model_modules, []},
{websocket_modules, [
draw_draw_protocol_websocket,
draw_websocket_test_websocket
]},
{controller_modules,[
draw_draw_controller,
draw_incoming_mail_controller,
draw_outgoing_mail_controller
]},
{view_modules,[draw_view_draw_index_html]}
]},
{cb_admin, [
{path, "../cb_admin"},
{allow_ip_blocks, ["127.0.0.1"]},
{base_url, "/admin"},
{model_modules, []},
{websocket_modules, []},
{controller_modules,[
cb_admin_admin_controller,
cb_admin_incoming_mail_controller,
cb_admin_lang_controller,
cb_admin_model_controller,
cb_admin_outgoing_mail_controller,
cb_admin_routes_controller,
cb_admin_upgrade_controller]},
{view_modules,[
cb_admin_view_admin_access_denied_html,
cb_admin_view_admin_index_html,
cb_admin_view_admin_layouts_admin_html,
cb_admin_view_admin_layouts_shared__alerts_html,
cb_admin_view_admin_layouts_shared__main_menu_html,
cb_admin_view_admin_layouts_shared__sidebar_html,
cb_admin_view_admin_splash_html,
cb_admin_view_lang_big_red_button_html,
cb_admin_view_lang_create_html,
cb_admin_view_lang_delete_html,
cb_admin_view_lang_shared__lang_left_submenu_html,
cb_admin_view_lang_shared__lang_right_submenu_html,
cb_admin_view_lang_show_html,
cb_admin_view_lib_tags,
cb_admin_view_model_create_html,
cb_admin_view_model_delete_html,
cb_admin_view_model_edit_html,
cb_admin_view_model_model_html,
cb_admin_view_model_show_html,
cb_admin_view_model_upload_html,
cb_admin_view_routes_index_html,
cb_admin_view_upgrade_upgrade_html
]}
]}
].
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/260DF296-6DBD-4855-8E07-E1C41118489C%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAB-Ofh%3DmavOums3RAJifq2Gr_Z2meab%2BiojtDpxKvosWuWdq8A%40mail.gmail.com.