Hi guys,
I’m having some weird problems with running a Phoenix 1.4 app. I have never seen this before with Phoenix 1.3. Right after the app is built afresh I can start it with mix phx.server
just fine. Then I do Ctrl-C + Ctrl-C to exit, and upon restart I will most likely get this:
→ mix phx.server
Compiling 24 files (.ex)
[info] Running MasterCoachWeb.Endpoint with cowboy 2.5.0 at http://localhost:4000
Webpack is watching the files…
[error] Ranch listener MasterCoachWeb.Endpoint.HTTP had connection process started with :cowboy_clear:start_link/4 at #PID<0.543.0> exit with reason: {:undef, [{:cowboy_http, :init, [#PID<0.440.0>, MasterCoachWeb.Endpoint.HTTP, #Port<0.44>, :ranch_tcp, %{env: %{dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.Cowboy2Handler, {MasterCoachWeb.Endpoint, []}}]}]}, stream_handlers: [Plug.Cowboy.Stream]}], []}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 249]}]}
[error] Ranch listener MasterCoachWeb.Endpoint.HTTP had connection process started with :cowboy_clear:start_link/4 at #PID<0.544.0> exit with reason: {:undef, [{:cowboy_http, :init, [#PID<0.440.0>, MasterCoachWeb.Endpoint.HTTP, #Port<0.45>, :ranch_tcp, %{env: %{dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.Cowboy2Handler, {MasterCoachWeb.Endpoint, []}}]}]}, stream_handlers: [Plug.Cowboy.Stream]}], []}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 249]}]}
[error] Ranch listener MasterCoachWeb.Endpoint.HTTP had connection process started with :cowboy_clear:start_link/4 at #PID<0.545.0> exit with reason: {:undef, [{:cowboy_http, :init, [#PID<0.440.0>, MasterCoachWeb.Endpoint.HTTP, #Port<0.46>, :ranch_tcp, %{env: %{dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.Cowboy2Handler, {MasterCoachWeb.Endpoint, []}}]}]}, stream_handlers: [Plug.Cowboy.Stream]}], []}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 249]}]}
By trial and error, I found that it’s enough to remove compiled version of cowboy with $ rm -rf _build/dev/lib/cowboy
to have another mix phx.server
run the app successfully, but then on the next run I have to remove it again.
Any idea what this may be?