bitwalker / distillery

Simplify deployments in Elixir with OTP releases!
MIT License
2.97k stars 402 forks source link

May be not relevant but happens on hot upgrade. #521

Closed ijunaid8989 closed 6 years ago

ijunaid8989 commented 6 years ago

Steps to reproduce

Just do a mix release --upgrade and then do upgrade.

Everything will be fine but in application logs these things happens

Verbose Logs

``` 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}, []]}} ```

Description of issue

bitwalker commented 6 years ago

This is a normal 404 error, same as the issue you posted to Phoenix, so I'm going to go ahead and close this.