Thanks for the response.
It’s pretty uninteresting at the moment I generated the app under Phoenix 1.5.8 and recently upgraded to 1.6.6. It has phx.gen.auth
authentication added, and it has a single JSON API endpoint. Nothing much else going on at the moment. You can find it here.
The actual code I was running in iex
was the user registration function that phx.gen.auth
generates for you:
def register_user(attrs) do
%User{}
|> User.registration_changeset(attrs)
|> Repo.insert()
end
I noticed that these lines are logged as soon as I run /app/bin/<name> remote
. Seems like something is happening with a child process straight away?
2022-01-28T14:53:31.166 app[3b89ab36] lhr [info]Reaped child process with pid: 611, exit code: 0
2022-01-28T14:53:31.167 app[3b89ab36] lhr [info]Reaped child process with pid: 613, exit code: 0
2022-01-28T14:53:31.169 app[3b89ab36] lhr [info]Reaped child process with pid: 632 and signal: SIGUSR1, core dumped? false
I also played around some more in iex
- created some other records etc and it worked fine. But if I call the register_user
function it kills iex
every time.
Interesting. Yes, seems like this app should be fine.