Open sardaukar opened 6 years ago
Hi @sardaukar why do you need to restart hotel after that?
Hotel stops responding to proxy requests after the Elixir process crash :/
Would it help if I setup an example project as a repo?
Do you know if the hello world fails as well (https://hexdocs.pm/phoenix/up_and_running.html)? If yes, I can use the instructions there to quickly setup a Phoenix server and add it to hotel.
This way you wouldn't need to spend time on an example repo.
The hello world crashes too. elixir -v
gives me Elixir 1.6.1 (compiled with OTP 20)
Steps I took:
mix phx.new hello
cd hello
config/dev.exs
to http: [port: System.get_env("PORT") || 4000],
mix ecto.create
to create the DBhotel add "mix phx.server"
Crash dump is being written to: erl_crash.dump... done
On the hello world example, Hotel itself doesn't crash. I have a bigger app that makes Hotel crash when you turn the server off. I guess with Elixir you can run extra Elixir "apps" as part of your webapp, and those hung processes on my bigger project might be messing with Hotel.
To note: when running the server outside of Hotel (on a normal terminal) you need to Ctrl-C twice to kill it. The first Ctrl-C brings up the usual Elixir trap menu:
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
(v)ersion (k)ill (D)b-tables (d)istribution
And once you Ctrl-C again here, then it exits.
@typicode anything else I can do to help? I really love using Hotel's proxy
I'm using Hotel and I love it. However, every time I stop a Phoenix (http://phoenixframework.org/) app, the process crashes and I get an Erlang core dump in the root of the Phoenix project, and I have to restart Hotel.
I'm willing to send the core dump, if it will help.