-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Was setting up project by tutorial and have got error. #686
Comments
Same problem. Have error only with erlang-21, with erlang-20 all ok. Make little research, add trace lines into -define(TRACE(X), io:format("~p:~p:~p~n", [?MODULE, ?LINE, X])).
handle_request(Bridge, RouterAdapter) ->
?TRACE({"Bridge", Bridge}),
LoadedApplications = boss_web:get_all_applications(),
?TRACE({"LoadedApplications", LoadedApplications}),
FullUrl = Bridge:path(),
?TRACE({"FullUrl", FullUrl}),
ApplicationForPath = RouterAdapter:find_application_for_path(Bridge,
FullUrl,
LoadedApplications),
?TRACE({"ApplicationForPath", ApplicationForPath}),
try
handle_application(Bridge, FullUrl, ApplicationForPath, RouterAdapter)
catch Class:Error ->
%% Nuclear option: Something very serious happened and we don't want to
%% fail silently, but instead it should generate an error message.
_ = lager:error("Unhandled Error: ~s", [boss_log_util:stacktrace(Class, Error)]),
handle_fatal_error(Bridge)
end. have next output: Erlang-21: boss_web_controller_handle_request:30:{"Bridge",
{sbw,cowboy_simple_bridge,
{cowboy_bridge,
#Ref<0.551478481.3576430593.55775>},
false,[],[],[],none,
#{<<"accept">> => <<"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8">>,
<<"accept-encoding">> =>
<<"gzip, deflate, br">>,
<<"accept-language">> =>
<<"ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7">>,
<<"cache-control">> =>
<<"max-age=0">>,
<<"connection">> => <<"keep-alive">>,
<<"host">> => <<"localhost:8001">>,
<<"upgrade-insecure-requests">> =>
<<"1">>,
<<"user-agent">> =>
<<"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.96 Safari/537.36">>},
[],
{response,200,[],[],[]}}}
boss_web_controller_handle_request:32:{"LoadedApplications",[mynewproject]}
21:23:52.807 [error] error:badarg: [{erlang,apply ... so problem with line
so we need to add P.S. |
current version of CB doew not support Erlang 21, supported versions are 19-20 |
Getting similar errors. Website says Erlang 20+ and I am running 22
I actually don't know how to install an earlier version but I'm sure I will figure it out soon. UPDATE: Got it:
So now I have a different error and I suspect that it may have to do with OpenSSL because I got an error when building from source. (This is Ubutnu 16) The hunt continues! UPDATE 2: Now I've tried 2 installs. One as above and the other with Kerl on my Mac. Not working. :/
|
Good to see that I am not alone, hit the same wall. I downloaded the "developer's build." I understood that during the compile of CB there was the sub-componnent erlydtl checking the Erlang OTP runtime. I hacked the rebar.config file located in the ../src/ChicagoBoss/deps/erlydtl and re-ran the Make, but then hit the wall that the other technologists hit. Open question @NoobsEnslaver @mucholove : Is it possible to downgrade the Erlang runtime on my machine without breaking applications running a version of Erlang, and then forced to backport RabbitMQ (which is the main application I am worried about) I could spin up a VM and tailor the environment to meet Chicago Boss specs, but I also cannot find the required machine specifications from Chicago Boss within their documentation. |
@khonkonen — I never got it to work :( |
Hi, it is pretty simple. Like example bellow: |
I did it with 'Elrang/OTP 21.3', by example above. |
Erlang (esl) 21.2.6
CentOS 7
How to reproduce:
After this I've got:
The text was updated successfully, but these errors were encountered: