Skip to content

Instantly share code, notes, and snippets.

@presci
Last active December 22, 2015 13:58
Show Gist options
  • Save presci/6482491 to your computer and use it in GitHub Desktop.
Save presci/6482491 to your computer and use it in GitHub Desktop.
ranch error
This is my erlang code
-module(bohemian).
-export([start/0]).
start()->
ok = application:start(crypto),
ok = application:start(ranch),
ok = application:start(cowboy),
ok = application:start(bohemian).
-------------------------------------------------------
Following is the error
Eshell V5.9.1 (abort with ^G)
1> application:start(bohemian).
{error,
{bad_return,
{{bohemian_app,start,[normal,[]]},
{'EXIT',
{noproc,
{gen_server,call,
[ranch_sup,
{start_child,
{{ranch_listener_sup,http},
{ranch_listener_sup,start_link,
[http,100,ranch_tcp,[{port,8080}],cowboy_protocol,[{...}]]},
permanent,5000,supervisor,
[ranch_listener_sup]}},
infinity]}}}}}}
2>
=CRASH REPORT==== 7-Sep-2013::23:41:41 ===
crasher:
initial call: application_master:init/4
pid: <0.44.0>
registered_name: []
exception exit: {bad_return,
{{bohemian_app,start,[normal,[]]},
{'EXIT',
{noproc,
{gen_server,call,
[ranch_sup,
{start_child,
{{ranch_listener_sup,http},
{ranch_listener_sup,start_link,
[http,100,ranch_tcp,
[{port,8080}],
cowboy_protocol,
[{env,
[{dispatch,
[{'_',[],
[{[],[],toppage_handler,[]},
{[<<"static">>,'...'],
[],cowboy_static,
[{directory,
{priv_dir,bohemian,[<<"static">>]}},
{mimetypes,
{#Fun<mimetypes.path_to_mimes.2>,
default}}]}]}]}]}]]},
permanent,5000,supervisor,
[ranch_listener_sup]}},
infinity]}}}}}
in function application_master:init/4 (application_master.erl, line 138)
ancestors: [<0.43.0>]
messages: [{'EXIT',<0.45.0>,normal}]
links: [<0.43.0>,<0.6.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 610
stack_size: 24
reductions: 140
neighbours:
=INFO REPORT==== 7-Sep-2013::23:41:41 ===
application: bohemian
exited: {bad_return,
{{bohemian_app,start,[normal,[]]},
{'EXIT',
{noproc,
{gen_server,call,
[ranch_sup,
{start_child,
{{ranch_listener_sup,http},
{ranch_listener_sup,start_link,
[http,100,ranch_tcp,
[{port,8080}],
cowboy_protocol,
[{env,
[{dispatch,
[{'_',[],
[{[],[],toppage_handler,[]},
{[<<"static">>,'...'],
[],cowboy_static,
[{directory,{priv_dir,bohemian,[<<"static">>]}},
{mimetypes,
{#Fun<mimetypes.path_to_mimes.2>,
default}}]}]}]}]}]]},
permanent,5000,supervisor,
[ranch_listener_sup]}},
infinity]}}}}}
type: temporary
@marinakr
Copy link

Have a same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment