zack-bitcoin / amoveo

A blockchain for trust-free markets in financial derivatives
Other
466 stars 110 forks source link

Cowboy does not start on Linux box (Centos) #104

Closed alekras closed 6 years ago

alekras commented 6 years ago

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(httpinternal, 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(httpinternal, 100, [{ip,{127,0,0,1}},{port,8081}], [{env,[{dispatch,[{'',[],[{[file],[],int_file_handler,[]},{[],[],int_handler,[]}]}]}]}])

zack-bitcoin commented 6 years ago

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

alekras commented 6 years ago

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.