zack-bitcoin/amoveo

Cowboy does not start on Linux box (Centos)

alekras opened this issue · 2 comments

I am trying deploy a recent version Amoveo server (PROD-) and have got a log like this below. Everything is fine when I deploy on MAC. Any idea or direction where I can find a root of the issue?

2018-02-27 20:07:27.160 [info] <0.586.0> Application cowlib started on node amoveo_core_prod@server
2018-02-27 20:07:27.160 [debug] <0.711.0> Supervisor ranch_sup started ranch_server:start_link() at pid <0.712.0>
2018-02-27 20:07:27.160 [info] <0.586.0> Application ranch started on node amoveo_core_prod@server
2018-02-27 20:07:27.160 [debug] <0.716.0> Supervisor cowboy_sup started cowboy_clock:start_link() at pid <0.717.0>
2018-02-27 20:07:27.160 [info] <0.586.0> Application cowboy started on node amoveo_core_prod@server
2018-02-27 20:07:27.161 [error] <0.719.0>@cowboy:start_http CRASH REPORT Process <0.719.0> with 0 neighbours exited with reason: call to undefined function cowboy:start_http(http_internal, 100, [{ip,{127,0,0,1}},{port,8081}], [{env,[{dispatch,[{'',[],[{[file],[],int_file_handler,[]},{[],[],int_handler,[]}]}]}]}]) in application_master:init/4 line 134
2018-02-27 20:07:27.161 [info] <0.586.0>@cowboy:start_http Application amoveo_http exited with reason: call to undefined function cowboy:start_http(http_internal, 100, [{ip,{127,0,0,1}},{port,8081}], [{env,[{dispatch,[{'
',[],[{[file],[],int_file_handler,[]},{[],[],int_handler,[]}]}]}]}])

The install instructions are for Ubuntu, not Centos.
Looks like a dependency issue. I don't know.

I found that is rebar3 issue (on Centos Linux). Rebar3 ignores tag numbers for dependencies from rebar.config and fetches dependencies from master branches. I still do not know how resolve it.
But it is not Amoveo project issue so I close it.