Cannot run `iex -S mix` on a production server
This makes it impossible to debug a production server with iex:
pleroma@gleasonator:/opt/pleroma$ MIX_ENV=prod iex -S mix
Erlang/OTP 23 [erts-11.2.2.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
02:01:56.726 [warn] !!!DEPRECATION WARNING!!!
Your config is using old namespaces for MRF configuration. They should work for now, but you are advised to change to new namespaces to prevent possible issues later:
* `config :pleroma, :instance, rewrite_policy` is now `config :pleroma, :mrf, policies`
02:01:57.020 [info] Application web_push_encryption exited: :stopped
02:01:57.023 [info] Application ex_aws exited: :stopped
02:01:57.024 [info] Application joken exited: :stopped
02:01:57.171 [error] Failed to start Ranch listener Pleroma.Web.Endpoint.HTTP in :ranch_tcp:listen([cacerts: :..., key: :..., cert: :..., port: 4000, ip: {127, 0, 0, 1}]) for reason :eaddrinuse (address already in use)
02:01:57.192 [info] Postgrex.Protocol (#PID<0.834.0>) disconnected: ** (DBConnection.ConnectionError) client #PID<0.955.0> exited
02:01:57.204 [info] Application pleroma exited: exited in: Pleroma.Application.start(:normal, [])
** (EXIT) an exception was raised:
** (RuntimeError) could not lookup Ecto repo Pleroma.Repo because it was not started or it does not exist
(ecto 3.4.6) lib/ecto/repo/registry.ex:19: Ecto.Repo.Registry.lookup/1
(ecto 3.4.6) lib/ecto/adapter.ex:127: Ecto.Adapter.lookup_meta/1
(ecto_sql 3.4.5) lib/ecto/adapters/sql.ex:333: Ecto.Adapters.SQL.query/4
(ecto_sql 3.4.5) lib/ecto/adapters/sql.ex:291: Ecto.Adapters.SQL.query!/4
(pleroma 2.3.0-60-g53b85835-nsfw-api-mrf) lib/pleroma/application.ex:122: Pleroma.Application.set_postgres_server_version/0
(pleroma 2.3.0-60-g53b85835-nsfw-api-mrf) lib/pleroma/application.ex:115: Pleroma.Application.start/2
(kernel 7.3.1.1) application_master.erl:277: :application_master.start_it_old/4
** (Mix) Could not start application pleroma: exited in: Pleroma.Application.start(:normal, [])
** (EXIT) an exception was raised:
** (RuntimeError) could not lookup Ecto repo Pleroma.Repo because it was not started or it does not exist
(ecto 3.4.6) lib/ecto/repo/registry.ex:19: Ecto.Repo.Registry.lookup/1
(ecto 3.4.6) lib/ecto/adapter.ex:127: Ecto.Adapter.lookup_meta/1
(ecto_sql 3.4.5) lib/ecto/adapters/sql.ex:333: Ecto.Adapters.SQL.query/4
(ecto_sql 3.4.5) lib/ecto/adapters/sql.ex:291: Ecto.Adapters.SQL.query!/4
(pleroma 2.3.0-60-g53b85835-nsfw-api-mrf) lib/pleroma/application.ex:122: Pleroma.Application.set_postgres_server_version/0
(pleroma 2.3.0-60-g53b85835-nsfw-api-mrf) lib/pleroma/application.ex:115: Pleroma.Application.start/2
(kernel 7.3.1.1) application_master.erl:277: :application_master.start_it_old/4
Interactive Elixir (1.11.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>
pleroma@gleasonator:/opt/pleroma$