Phoenix app exiting without information

Hi! Newcomer to Elixir here. Recently I Installed Elixir and bootstrapped a Phoenix app, but I can’t do phx.server because it just hangs without giving any further information.

When I run phx.server it instantly shows:

[info] Running AdonisWeb.Endpoint with cowboy 2.10.0 at 127.0.0.1:4000 (http)
[info] Access AdonisWeb.Endpoint at http://localhost:4000
[notice] Application adonis exited: shutdown

No idea what is happening there. Any advice is welcome. Thanks in advance.

PS: English is not my strength so sorry for any error I had

1 Like

Could it be that the port 4000 is in use already?

I already tried changing the port an didn’t help.

Did you ever figure this out, or figure out how to even debug it?
I’m having the same problem now with an app and the lack of information makes it nigh impossible to debug.

1 Like

I’m having the same problem now

:wave: @hxgdzyuyi

A similar issue and possible debugging approaches have been discussed here:


Also you can try debugging the init process by setting some options in ERL_FLAGS

$ ERL_FLAGS="-init_debug" iex -S mix phx.server
1 Like

thank you

1 Like