Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TriggerEngine crashes receiving unhandled :ssl_closed message #385

Closed
rbino opened this issue May 21, 2020 · 1 comment
Closed

TriggerEngine crashes receiving unhandled :ssl_closed message #385

rbino opened this issue May 21, 2020 · 1 comment
Labels
app:trigger_engine This issue or pull request is about astarte_trigger_engine application bug Something isn't working

Comments

@rbino
Copy link
Collaborator

rbino commented May 21, 2020

Example log of the crash:

level=error ts=2020-05-21T13:40:22.327+00:00 msg="GenServer Astarte.TriggerEngine.AMQPEventsConsumer terminating\n** (FunctionClauseError) no function clause matching in Astarte.TriggerEngine.AMQPEventsConsumer.handle_info/2\n    (astarte_trigger_engine) lib/astarte_trigger_engine/amqp_events_consumer.ex:69: Astarte.TriggerEngine.AMQPEventsConsumer.handle_info({:ssl_closed, {:sslsocket, {:gen_tcp, #Port<0.104>, :tls_connection, :undefined}, [#PID<0.2136.0>, #PID<0.2135.0>]}}, %{channel: %AMQP.Channel{conn: %AMQP.Connection{pid: #PID<0.2119.0>}, pid: #PID<0.2128.0>}})\n    (stdlib) gen_server.erl:637: :gen_server.try_dispatch/4\n    (stdlib) gen_server.erl:711: :gen_server.handle_msg/6\n    (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3\nLast message: {:ssl_closed, {:sslsocket, {:gen_tcp, #Port<0.104>, :tls_connection, :undefined}, [#PID<0.2136.0>, #PID<0.2135.0>]}}\nState: %{channel: %AMQP.Channel{conn: %AMQP.Connection{pid: #PID<0.2119.0>}, pid: #PID<0.2128.0>}}" module=gen_server function=error_info/7
level=info ts=2020-05-21T13:40:22.331+00:00 msg="Application astarte_trigger_engine exited: shutdown" module=application_controller function=info_exited/3
Kernel pid terminated (application_controller) ({application_terminated,astarte_trigger_engine,shutdown})
{"Kernel pid terminated",application_controller,"{application_terminated,astarte_trigger_engine,shutdown}"}

This probably depends from benoitc/hackney#464 since TriggerEngine uses HTTPoison that in turn is using hackney.

@rbino rbino added bug Something isn't working app:trigger_engine This issue or pull request is about astarte_trigger_engine application labels May 21, 2020
@rbino
Copy link
Collaborator Author

rbino commented Jan 17, 2023

Closing this since that's not been seen in a while, we will reopen this if we see it again

@rbino rbino closed this as completed Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:trigger_engine This issue or pull request is about astarte_trigger_engine application bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant