Ranch listener had connection process started with :cowboy_protocol:start_link

I am trying to do a hot upgrade using Distillery, which work fine but after hot upgrade it got this error

Ranch listener EvercamMediaWeb.Endpoint.HTTP had connection process started with :cowboy_protocol:start_link/4 at #PID<0.25102.20> exit with reason: {{%Phoenix.Router.NoRouteError{conn: %Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{}, before_send: [#Function<1.98026429/1 in Plug.Logger.call/2>], body_params: %{}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "api.evercam.io", method: "GET", owner: #PID<0.25102.20>, params: %{}, path_info: ["v1"], path_params: %{}, peer: {{127, 0, 0, 1}, 46108}, port: 80, private: %{EvercamMediaWeb.Router => {[], %{PhoenixSwagger.Plug.SwaggerUI => []}}, :phoenix_endpoint => EvercamMediaWeb.Endpoint, :phoenix_router => EvercamMediaWeb.Router, :plug_session_fetch => #Function<1.58261320/1 in Plug.Session.fetch_session/1>}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies}, req_headers: [{"host", "api.evercam.io"}, {"x-real-ip", "172.249.81.115"}, {"x-forwared-for", "172.249.81.115"}, {"connection", "close"}, {"upgrade-insecure-requests", "1"}, {"dnt", "1"}, {"user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"}, {"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"}, {"referer", "https://www.programmableweb.com/api/evercam"}, {"accept-encoding", "gzip, deflate, br"}, {"accept-language", "cs,en;q=0.9,fr;q=0.8,fr-FR;q=0.7,de;q=0.6,es;q=0.5,it;q=0.4,nl;q=0.3,pl;q=0.2,sk;q=0.1"}], request_path: "/v1/", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "vegehleg8sngbhq6en64roaoo1bk7gtq"}], scheme: :http, script_name: [], secret_key_base: "joIg696gDBw3ZjdFTkuWNz7s21nXrcRUkZn3Lsdp7pCNodzCMl/KymikuJVw0igG", state: :unset, status: nil}, message: "no route found for GET /v1 (EvercamMediaWeb.Router)", plug_status: 404, router: EvercamMediaWeb.Router}, [{EvercamMediaWeb.Router, :__match_route__, 4, [file: 'lib/evercam_media_web/router.ex', line: 1]}, {EvercamMediaWeb.Router, :call, 2, [file: 'lib/phoenix/router.ex', line: 307]}, {EvercamMediaWeb.Endpoint, :plug_builder_call, 2, [file: 'lib/evercam_media_web/endpoint.ex', line: 1]}, {EvercamMediaWeb.Endpoint, :call, 2, [file: 'lib/evercam_media_web/endpoint.ex', line: 1]}, {Plug.Adapters.Cowboy.Handler, :upgrade, 4, [file: 'lib/plug/adapters/cowboy/handler.ex', line: 15]}, {:cowboy_protocol, :execute, 4, [file: '/tmp/build-media/deps/cowboy/src/cowboy_protocol.erl', line: 442]}]}, {EvercamMediaWeb.Endpoint, :call, [%Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{}, before_send: [], body_params: %Plug.Conn.Unfetched{aspect: :body_params}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "api.evercam.io", method: "GET", owner: #PID<0.25102.20>, params: %Plug.Conn.Unfetched{aspect: :params}, path_info: ["v1"], path_params: %{}, peer: {{127, 0, 0, 1}, 46108}, port: 80, private: %{}, query_params: %Plug.Conn.Unfetched{aspect: :query_params}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies}, req_headers: [{"host", "api.evercam.io"}, {"x-real-ip", "172.249.81.115"}, {"x-forwared-for", "172.249.81.115"}, {"connection", "close"}, {"upgrade-insecure-requests", "1"}, {"dnt", "1"}, {"user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"}, {"accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"}, {"referer", "https://www.programmableweb.com/api/evercam"}, {"accept-encoding", "gzip, deflate, br"}, {"accept-language", "cs,en;q=0.9,fr;q=0.8,fr-FR;q=0.7,de;q=0.6,es;q=0.5,it;q=0.4,nl;q=0.3,pl;q=0.2,sk;q=0.1"}], request_path: "/v1/", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}], scheme: :http, script_name: [], secret_key_base: nil, state: :unset, status: nil}, []]}}

alongside this error.

[error] %Porcelain.UsageError{message: "Looks like the :porcelain app is not running. Make sure you've added :porcelain to the list of applications in your mix.exs."}

Also the porcelain is already in application list.

Anyone can guide please?

No one is going to scroll from the UK to Russia to read that error. You are going to have to find a way to post your error so that it is legible.

2 Likes

Well, that’s actually not his fault.

I edited the post, because on a first glance it looked like a misplaced code block. I haven’t realized that I made it worse.

Ill revert that edit. But I fear, the error should be reformatted then anyway.

I don’t know about Porcelain, but:

message: "no route found for GET /v1 (EvercamMediaWeb.Router)"

Did you change your routes?

No I didn’t the thing I deployed was not related to routes or any route.