Deployed phoenix application with distillery

I get fallowing error only when calling one specific route, all other routes works like they should.
What could be the reason and how to fix it?

(RuntimeError) could not compile application: app.

You must restart your server after changing the following config or lib files:


(phoenix) lib/phoenix/code_reloader/server.ex:96: Phoenix.CodeReloader.Server.mix_compile_unless_stale_config/1
(phoenix) lib/phoenix/code_reloader/server.ex:83: Phoenix.CodeReloader.Server.mix_compile/3
(phoenix) lib/phoenix/code_reloader/server.ex:40: anonymous fn/2 in Phoenix.CodeReloader.Server.handle_call/3
(phoenix) lib/phoenix/code_reloader/server.ex:132: Phoenix.CodeReloader.Server.proxy_io/1
(phoenix) lib/phoenix/code_reloader/server.ex:38: Phoenix.CodeReloader.Server.handle_call/3
(stdlib) gen_server.erl:615: :gen_server.try_handle_call/4
(stdlib) gen_server.erl:647: :gen_server.handle_msg/5
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
1 Like

It looks like you somehow have code reloading enabled in your release. Releases should not have code reloading enabled or even included.

It seems odd, because other routes works like they should.

I used fallowing command to update elixir:

MIX_ENV=prod mix release --upgrade --env=prod --upfrom=0.0.4
rel/app/bin/app upgrade 0.0.5

It was my error, it required :4000 port. And i don’t know why but mix phoenix.server was executed on server, so url responded with that error.

Today it stopped to respond at all, while rest of program were working, so i noticed port difference :expressionless: