Skip to content
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

Make Console Error #44

Open
Angarsk8 opened this issue Nov 28, 2016 · 4 comments
Open

Make Console Error #44

Angarsk8 opened this issue Nov 28, 2016 · 4 comments

Comments

@Angarsk8
Copy link

I get this error when I execute $ make console. The error trace I get is this:

fatal: Not a git repository (or any of the parent directories): .git
ERL_LIBS=apps:deps erl -args_file rels/web/files/vm.args -config rels/web/files/sys.config -eval '[application:start(A) || A <- escript: exception error: no match of right hand side value {error,                                                     "Release \"node\" uses non existing application web"}]'
Erlang/OTP 19 [erts-8.0.2] [source] [64-bit] [smp:4:4] [async-threads:5] [hipe] [kernel-poll:true] [dtrace]

{"init terminating in do_boot",{{badmatch,{error,{1,erl_parse,["syntax error before: ","error"]}}},[{init,start_it,1,[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}

Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()
make: *** [console] Error 1
@doxtop
Copy link
Contributor

doxtop commented Nov 28, 2016

probably rebar issue
can you make sure that rebar get-deps and rebar compile done without errors?

@Angarsk8
Copy link
Author

yes, I executed the suggested commands and they both run without errors, although I get this warning in both cases WARN: Missing plugins: [pc,rebar3_hex], but aside from that, everything goes well.

@doxtop
Copy link
Contributor

doxtop commented Nov 28, 2016

if you get all the deps, compile the project you should be fine. make static-link for resources and make console will generate the .applist file to use in evaluation

make console
./orderapps.erl web active avz cowboy cowlib erlydtl fs gproc jsone kvs mad n2o nitro ranch recon sh > .applist
erl [... ]-eval '[application:start(A) || A <- [kernel,stdlib,xmerl,crypto,cowlib,ranch,cowboy,compiler,syntax_tools,erlydtl,mnesia,kvs,gproc,n2o,web,fs,active,avz,jsone,inets,mad,nitro,recon,sh,asn1,eunit,hipe,parsetools,public_key,runtime_tools,sasl,ssl,tools]]'

you original error shows that there is no application list in .applist file

@iprog4u
Copy link

iprog4u commented Aug 11, 2017

oredrapps.erl is including an Erlang warning as the first line. Once removed make console should work:


# ./orderapps.erl web active avz cowboy cowlib erlydtl fs gproc jsone kvs mad n2o nitro ranch recon sh > .applist
# cat .applist 
./orderapps.erl:7: Warning: export_all flag enabled - all functions will be exported
[kernel,stdlib,xmerl,crypto,cowlib,ranch,cowboy,compiler,syntax_tools,erlydtl,mnesia,kvs,gproc,n2o,web,fs,active,avz,jsone,inets,mad,nitro,recon,sh,asn1,eunit,hipe,parsetools,public_key,runtime_tools,sasl,ssl,tools]
# vim .applist     # Remove 1st line and save.
# cat .applist 
[kernel,stdlib,xmerl,crypto,cowlib,ranch,cowboy,compiler,syntax_tools,erlydtl,mnesia,kvs,gproc,n2o,web,fs,active,avz,jsone,inets,mad,nitro,recon,sh,asn1,eunit,hipe,parsetools,public_key,runtime_tools,sasl,ssl,tools]

Then you can make console and access the site on localhost:8001. That being said there are errors that crop up almost immediately about something to do with a ranch listener or cowboy handler and keep-alive. I'm still too n00bish to diagnose the issue but it's pasted below.

# make console
ERL_LIBS=apps:deps erl -args_file rels/web/files/vm.args -config rels/web/files/sys.config -eval '[application:start(A) || A <- [kernel,stdlib,xmerl,crypto,cowlib,ranch,cowboy,compiler,syntax_tools,erlydtl,mnesia,kvs,gproc,n2o,web,fs,active,avz,jsone,inets,mad,nitro,recon,sh,asn1,eunit,hipe,parsetools,public_key,runtime_tools,sasl,ssl,tools]]'
Erlang/OTP 20 [erts-9.0.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:5] [hipe] [kernel-poll:true]

Eshell V9.0.2  (abort with ^G)
(skyline@cfa55b1d12cd)1> 
=ERROR REPORT==== 11-Aug-2017::20:38:22 ===
backend port not found: inotifywait
==> "skyline"
==> "/src/skyline"
==> "../apps/web/priv/static/bootstrap"
==> "../apps/web/priv/static/less"
==> "../apps/web/priv/static/font-awesome"
==> "n2o"
==> "nitro"

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
          supervisor: {local,sasl_safe_sup}
             started: [{pid,<0.301.0>},
                       {id,alarm_handler},
                       {mfargs,{alarm_handler,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.300.0>},
                       {id,sasl_safe_sup},
                       {mfargs,
                           {supervisor,start_link,
                               [{local,sasl_safe_sup},sasl,safe]}},
                       {restart_type,permanent},
                       {shutdown,infinity},
                       {child_type,supervisor}]

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.302.0>},
                       {id,release_handler},
                       {mfargs,{release_handler,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
         application: sasl
          started_at: skyline@cfa55b1d12cd

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
          supervisor: {local,ssl_admin_sup}
             started: [{pid,<0.309.0>},
                       {id,ssl_pem_cache},
                       {mfargs,{ssl_pem_cache,start_link,[[]]}},
                       {restart_type,permanent},
                       {shutdown,4000},
                       {child_type,worker}]

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
          supervisor: {local,ssl_admin_sup}
             started: [{pid,<0.310.0>},
                       {id,ssl_manager},
                       {mfargs,{ssl_manager,start_link,[[]]}},
                       {restart_type,permanent},
                       {shutdown,4000},
                       {child_type,worker}]

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
          supervisor: {local,ssl_sup}
             started: [{pid,<0.308.0>},
                       {id,ssl_admin_sup},
                       {mfargs,{ssl_admin_sup,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,4000},
                       {child_type,supervisor}]

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
          supervisor: {local,ssl_connection_sup}
             started: [{pid,<0.312.0>},
                       {id,tls_connection},
                       {mfargs,{tls_connection_sup,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,4000},
                       {child_type,supervisor}]

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
          supervisor: {local,ssl_connection_sup}
             started: [{pid,<0.313.0>},
                       {id,tls_socket},
                       {mfargs,{ssl_listen_tracker_sup,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,4000},
                       {child_type,supervisor}]

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
          supervisor: {local,ssl_connection_sup}
             started: [{pid,<0.314.0>},
                       {id,dtls_connection},
                       {mfargs,{dtls_connection_sup,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,4000},
                       {child_type,supervisor}]

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
          supervisor: {local,ssl_connection_sup}
             started: [{pid,<0.315.0>},
                       {id,dtls_udp_listener},
                       {mfargs,{dtls_udp_sup,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,4000},
                       {child_type,supervisor}]

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
          supervisor: {local,ssl_sup}
             started: [{pid,<0.311.0>},
                       {id,ssl_connection_sup},
                       {mfargs,{ssl_connection_sup,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,4000},
                       {child_type,supervisor}]

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
         application: ssl
          started_at: skyline@cfa55b1d12cd

=PROGRESS REPORT==== 11-Aug-2017::20:38:22 ===
         application: tools
          started_at: skyline@cfa55b1d12cd
==> "jsone"
==> "cowboy"
==> "cowlib"
==> "ranch"
==> "gproc"
==> "kvs"
==> "avz"
==> "erlydtl"
==> "active"
==> "mad"
==> "sh"
==> "fs"
==> "recon"
==> "/src/skyline/deps"
==> "/src/skyline/apps"
==> "/src/skyline/apps/web"
==> n2o
==> cowboy

(skyline@cfa55b1d12cd)1> 
=ERROR REPORT==== 11-Aug-2017::20:38:33 ===
Error in process <0.356.0> on node skyline@cfa55b1d12cd with exit value:
{[{reason,undef},
  {mfa,{bullet_handler,init,3}},
  {stacktrace,
      [{bullet_handler,init,
           [{tcp,http},
            {http_req,#Port<0.3846>,ranch_tcp,keepalive,<0.356.0>,<<"GET">>,
                'HTTP/1.1',
                {{172,17,0,1},53574},
                <<"172.17.0.2">>,undefined,8001,<<"/ws/feed">>,
                [<<"feed">>],
                <<>>,undefined,[],
                [{<<"host">>,<<"172.17.0.2:8001">>},
                 {<<"connection">>,<<"Upgrade">>},
                 {<<"pragma">>,<<"no-cache">>},
                 {<<"cache-control">>,<<"no-cache">>},
                 {<<"upgrade">>,<<"websocket">>},
                 {<<"origin">>,<<"http://172.17.0.2:8001">>},
                 {<<"sec-websocket-version">>,<<"13">>},
                 {<<"user-agent">>,
                  <<"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36">>},
                 {<<"dnt">>,<<"1">>},
                 {<<"accept-encoding">>,<<"gzip, deflate">>},
                 {<<"accept-language">>,<<"en-US,en;q=0.8">>},
                 {<<"cookie">>,
                  <<"site-sid=e6f24c937064df7c4ba99ce216fee7b1">>},
                 {<<"sec-websocket-key">>,<<"xm0xzOF8dHzZ/fIVZCyprg==">>},
                 {<<"sec-websocket-extensions">>,
                  <<"permessage-deflate; client_max_window_bits">>}],
                [{<<"connection">>,[<<"upgrade">>]}],
                undefined,[],waiting,<<>>,undefined,false,waiting,[],<<>>,
                undefined},
            [{handler,n2o_bullet}]],
           []},
       {cowboy_handler,handler_init,4,
           [{file,"src/cowboy_handler.erl"},{line,64}]},
       {cowboy_protocol,execute,4,
           [{file,"src/cowboy_protocol.erl"},{line,442}]}]},
  {req,
      [{socket,#Port<0.3846>},
       {transport,ranch_tcp},
       {connection,keepalive},
       {pid,<0.356.0>},
       {method,<<"GET">>},
       {version,'HTTP/1.1'},
       {peer,{{172,17,0,1},53574}},
       {host,<<"172.17.0.2">>},
       {host_info,undefined},
       {port,8001},
       {path,<<"/ws/feed">>},
       {path_info,[<<"feed">>]},
       {qs,<<>>},
       {qs_vals,undefined},
       {bindings,[]},
       {headers,
           [{<<"host">>,<<"172.17.0.2:8001">>},
            {<<"connection">>,<<"Upgrade">>},
            {<<"pragma">>,<<"no-cache">>},
            {<<"cache-control">>,<<"no-cache">>},
            {<<"upgrade">>,<<"websocket">>},
            {<<"origin">>,<<"http://172.17.0.2:8001">>},
            {<<"sec-websocket-version">>,<<"13">>},
            {<<"user-agent">>,
             <<"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36">>},
            {<<"dnt">>,<<"1">>},
            {<<"accept-encoding">>,<<"gzip, deflate">>},
            {<<"accept-language">>,<<"en-US,en;q=0.8">>},
            {<<"cookie">>,<<"site-sid=e6f24c937064df7c4ba99ce216fee7b1">>},
            {<<"sec-websocket-key">>,<<"xm0xzOF8dHzZ/fIVZCyprg==">>},
            {<<"sec-websocket-extensions">>,
             <<"permessage-deflate; client_max_window_bits">>}]},
       {p_headers,[{<<"connection">>,[<<"upgrade">>]}]},
       {cookies,undefined},
       {meta,[]},
       {body_state,waiting},
       {buffer,<<>>},
       {multipart,undefined},
       {resp_compress,false},
       {resp_state,waiting},
       {resp_headers,[]},
       {resp_body,<<>>},
       {onresponse,undefined}]},
  {opts,[{handler,n2o_bullet}]}],
 [{cowboy_handler,handler_init,4,[{file,"src/cowboy_handler.erl"},{line,89}]},
  {cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,442}]}]}

=ERROR REPORT==== 11-Aug-2017::20:38:33 ===
Ranch listener http had connection process started with cowboy_protocol:start_link/4 at <0.356.0> exit with reason: {[{reason,undef},{mfa,{bullet_handler,init,3}},{stacktrace,[{bullet_handler,init,[{tcp,http},{http_req,#Port<0.3846>,ranch_tcp,keepalive,<0.356.0>,<<"GET">>,'HTTP/1.1',{{172,17,0,1},53574},<<"172.17.0.2">>,undefined,8001,<<"/ws/feed">>,[<<"feed">>],<<>>,undefined,[],[{<<"host">>,<<"172.17.0.2:8001">>},{<<"connection">>,<<"Upgrade">>},{<<"pragma">>,<<"no-cache">>},{<<"cache-control">>,<<"no-cache">>},{<<"upgrade">>,<<"websocket">>},{<<"origin">>,<<"http://172.17.0.2:8001">>},{<<"sec-websocket-version">>,<<"13">>},{<<"user-agent">>,<<"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36">>},{<<"dnt">>,<<"1">>},{<<"accept-encoding">>,<<"gzip, deflate">>},{<<"accept-language">>,<<"en-US,en;q=0.8">>},{<<"cookie">>,<<"site-sid=e6f24c937064df7c4ba99ce216fee7b1">>},{<<"sec-websocket-key">>,<<"xm0xzOF8dHzZ/fIVZCyprg==">>},{<<"sec-websocket-extensions">>,<<"permessage-deflate; client_max_window_bits">>}],[{<<"connection">>,[<<"upgrade">>]}],undefined,[],waiting,<<>>,undefined,false,waiting,[],<<>>,undefined},[{handler,n2o_bullet}]],[]},{cowboy_handler,handler_init,4,[{file,"src/cowboy_handler.erl"},{line,64}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,442}]}]},{req,[{socket,#Port<0.3846>},{transport,ranch_tcp},{connection,keepalive},{pid,<0.356.0>},{method,<<"GET">>},{version,'HTTP/1.1'},{peer,{{172,17,0,1},53574}},{host,<<"172.17.0.2">>},{host_info,undefined},{port,8001},{path,<<"/ws/feed">>},{path_info,[<<"feed">>]},{qs,<<>>},{qs_vals,undefined},{bindings,[]},{headers,[{<<"host">>,<<"172.17.0.2:8001">>},{<<"connection">>,<<"Upgrade">>},{<<"pragma">>,<<"no-cache">>},{<<"cache-control">>,<<"no-cache">>},{<<"upgrade">>,<<"websocket">>},{<<"origin">>,<<"http://172.17.0.2:8001">>},{<<"sec-websocket-version">>,<<"13">>},{<<"user-agent">>,<<"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36">>},{<<"dnt">>,<<"1">>},{<<"accept-encoding">>,<<"gzip, deflate">>},{<<"accept-language">>,<<"en-US,en;q=0.8">>},{<<"cookie">>,<<"site-sid=e6f24c937064df7c4ba99ce216fee7b1">>},{<<"sec-websocket-key">>,<<"xm0xzOF8dHzZ/fIVZCyprg==">>},{<<"sec-websocket-extensions">>,<<"permessage-deflate; client_max_window_bits">>}]},{p_headers,[{<<"connection">>,[<<"upgrade">>]}]},{cookies,undefined},{meta,[]},{body_state,waiting},{buffer,<<>>},{multipart,undefined},{resp_compress,false},{resp_state,waiting},{resp_headers,[]},{resp_body,<<>>},{onresponse,undefined}]},{opts,[{handler,n2o_bullet}]}],[{cowboy_handler,handler_init,4,[{file,"src/cowboy_handler.erl"},{line,89}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,442}]}]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants