Nagasaki45 / krihelinator

"Trendiness of open source software should be assessed by contribution rate, not by stars" - Meir Kriheli
http://krihelinator.xyz/
MIT License
45 stars 2 forks source link

Research cowboy failures in logs #147

Open Nagasaki45 opened 7 years ago

Nagasaki45 commented 7 years ago
17:58:21.973 [error] Ranch protocol #PID<0.8216.13> (:cowboy_protocol) of listener Krihelinator.Endpoint.HTTP terminated
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :cowboy_protocol.parse_method/3
        (cowboy) src/cowboy_protocol.erl:168: :cowboy_protocol.parse_method("", {:state, #Port<0.19168>, :ranch_tcp, [:cowboy_router, :cowboy_handler], true, [listener: Krihelinator.Endpoint.HTTP, dispatch: [{:_, [], [{["socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket, {Phoenix.Transports.WebSocket, {Krihelinator.Endpoint, Krihelinator.UserSocket, :websocket}}}, {:_, [], Plug.Adapters.Cowboy.Handler, {Krihelinator.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1490810306970}, <<0, 0, 0, 113, 106, 129, 110, 48, 129, 107, 161, 3, 2, 1, 5, 162, 3, 2, 1, 10, 164, 129, 94, 48, 92, 160, 7, 3, 5, 0, 80, 128, 0, 16, 162, 4, 27, 2, 78, 77, 163, 23, 48, 21, 160, 3, 2, 1, 0, 161, ...>>)
Nagasaki45 commented 7 years ago

Another similar one. Now with the erlang traceback (after moving to deployments with OTP releases):

2017-04-06 06:21:14.693 [error] Error in process #PID<0.21785.1> on node :"krihelinator@127.0.0.1" with exit value:
{:function_clause,
 [{:cowboy_protocol, :parse_uri_path,
   ["",
    {:state, #Port<0.6072>, :ranch_tcp, [:cowboy_router, :cowboy_handler], true,
     [listener: Krihelinator.Endpoint.HTTP,
      dispatch: [{:_, [],
        [{["socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket,
          {Phoenix.Transports.WebSocket,
           {Krihelinator.Endpoint, Krihelinator.UserSocket, :websocket}}},
         {:_, [], Plug.Adapters.Cowboy.Handler,
          {Krihelinator.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100,
     4096, 64, 4096, 100, 5000, 1491459679639},
    <<71, 104, 48, 115, 116, 173, 0, 0, 0, 224, 0, 0, 0, 120, 156, 75, 83, 96,
      96, 152, 195, 192, 192, 192, 6, 196, 140, 64, 188, 81, 150, 129, 129, 9,
      72, 7, 167, 22, 149, 101, 38, 167, 42, ...>>, <<2, 0, 84, 245, 43, 92>>],
   [file: 'src/cowboy_protocol.erl', line: 200]}]}

2017-04-06 06:21:14.693 [error] Ranch protocol #PID<0.21785.1> (:cowboy_protocol) of listener Krihelinator.Endpoint.HTTP terminated
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :cowboy_protocol.parse_uri_path/4
        (cowboy) src/cowboy_protocol.erl:200: :cowboy_protocol.parse_uri_path("", {:state, #Port<0.6072>, :ranch_tcp, [:cowboy_router, :cowboy_handler], true, [listener: Krihelinator.Endpoint.HTTP, dispatch: [{:_, [], [{["socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket, {Phoenix.Transports.WebSocket, {Krihelinator.Endpoint, Krihelinator.UserSocket, :websocket}}}, {:_, [], Plug.Adapters.Cowboy.Handler, {Krihelinator.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1491459679639}, <<71, 104, 48, 115, 116, 173, 0, 0, 0, 224, 0, 0, 0, 120, 156, 75, 83, 96, 96, 152, 195, 192, 192, 192, 6, 196, 140, 64, 188, 81, 150, 129, 129, 9, 72, 7, 167, 22, 149, 101, 38, 167, 42, 4, 36, 38, 103, 43, 24, 50, ...>>, <<2, 0, 84, 245, 43, 92>>)
Nagasaki45 commented 7 years ago

Copying another failure from old ticket #134 to organize all of the cowboy related issues in the same place and closing the other ticket.

18:20:18.395 [error] Ranch protocol #PID<0.28926.18> (:cowboy_protocol) of listener Krihelinator.Endpoint.HTTP terminated
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :cow_http_hd.token_ci_list_sep/3
        (cowlib) src/cow_http_hd.erl:191: :cow_http_hd.token_ci_list_sep("Te", [], "keep-alive")
        (cowlib) src/cow_http_hd.erl:31: :cow_http_hd.parse_connection/1
        (cowboy) src/cowboy_req.erl:189: :cowboy_req.new/14
        (cowboy) src/cowboy_protocol.erl:410: :cowboy_protocol.request/9
Nagasaki45 commented 7 years ago

Searching for an answer on stackoverflow.

Nagasaki45 commented 7 years ago

Maybe related to https://github.com/ninenines/cowboy/issues/448.