Local Phoenix crashes silently - how to debug/ trace?

Hi,

Local phoenix server (via iex -S mix phx.server) is crashing and not restarting randomly.

Only log in iex is message akin to Application has crashed, with no stacktrace. After that, no HTTP calls work, as I assume the server crashed without restarting.

I don’t think the supervisor is restarting the app.

Is there any way to get more data out of this? For instance how can I trap the application’s failure and perhaps get some stacktrace that way?

Has anyone faced something like this?

Thanks in advance.

1 Like

I am afraid that you’re going to have to provide a tad more info than that. Some terminal output as well as your terminal session (mainly environment variables) would be nice. Additionally, include things such as operating system, Elixir versions as well as dependencies versions.

We can’t really help you with the current information that’s available.

1 Like

Ah yes, sorry. I will get more info this week. I realize it wasn’t very too clearn.

Hi, you can try this logger configuration:


config :logger,
  level: :debug,
  handle_sasl_reports: true
1 Like

Thank you! That unblocked me to do an even more debugging, which led to another topic/call for help :slight_smile:

1 Like