Hi,
I have read a lot around this issue, the only solution seemed to be "clean and compile" which I did to no avail.
The root cause is:
gen_server <0.263.0> terminated with reason: bad argument in call to erlang:list_to_atom(undefined) in boss_router_controller:handle/2 line 146
Why should there be a problem just because I am in "deploy" mode... I am not that familiar with the code yet, I've used Erlang for about 7 years... if i get time I will have a close look myself but I don't need the distraction right now!
The code I have running was created with version 0.8.11, a cursory glance shows that:
handle(StatusCode, State) ->
_Result = case ets:lookup(State#state.handlers_table_id, StatusCode) of
[] ->
not_found;
[#boss_handler{ application = App, controller = C, action = A, params = P }] ->
ControllerModule = list_to_atom(boss_files:web_controller(App, C, State#state.controllers)),
{Tokens, []} = boss_controller_lib:convert_params_to_tokens(P, ControllerModule, list_to_atom(A)),
{ok, {App, C, A, Tokens}}
end.
I guess the return value from boss_files:web_controller is "undefined" hence the blow out. It is using the same routes file as in development mode so I am confused right now!
Ultimately it needs addressing so I won't be able to put it off forever!
Thanks.
Sean.