I have a mix release running on a production server and am trying to connect iex to the running app using bin/app remote
but I get the following error:
$ bin/app remote
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]
Interactive Elixir (1.15.6) - press Ctrl+C to exit (type h() ENTER for help)
*** ERROR: Shell process terminated! (^G to start new job) ***
14:57:10.987 [error] Process #PID<9920.2433.0> on node :app@host raised an exception
** (ArgumentError) errors were found at the given arguments:
* 2nd argument: not a pid
:erlang.monitor(:process, {:error, {%RuntimeError{message: "could not find the user home, please set the HOME environment variable"}, [{System, :user_home!, 0, [file: ~c"lib/system.ex", line: 375, error_info: %{module: Exception}]}, {Path, :resolve_home, 1, [file: ~c"lib/path.ex", line: 716]}, {Path, :expand, 1, [file: ~c"lib/path.ex", line: 166]}, {Enum, :"-map/2-lists^map/1-1-", 2, [file: ~c"lib/enum.ex", line: 1693]}, {Enum, :"-map/2-lists^map/1-1-", 2, [file: ~c"lib/enum.ex", line: 1693]}, {IEx.Evaluator, :load_dot_iex, 2, [file: ~c"lib/iex/evaluator.ex", line: 256]}, {IEx.Evaluator, :init, 5, [file: ~c"lib/iex/evaluator.ex", line: 28]}, {:proc_lib, :init_p_do_apply, 3, [file: ~c"proc_lib.erl", line: 240]}]}})
lib/iex/server.ex:89: IEx.Server.run_without_registration/3
Anyone else seen this?