I am very novice to Phoenix/Elixir as I recently inherited a project where I was assigned to fix a bug. I’ve been successfully fixing bugs, rebuilding and restarting my elixir application on our production server but one day the start
service stopped working.
Now after successfully compiling and building my elixir proj, when I try and start the application by running _build/prod/rel/my_elixir_proj/bin/my_elixir_proj start
I am getting the following RPC error which I am clueless about.
RPC to 'my_elixir_proj@127.0.0.1' failed: {'EXIT',
{{#{'__exception__' => true,
'__struct__' => 'Elixir.KeyError',
key => username,
term => [{types,true},
{hostname,<<"localhost">>},
{types,true},
{name,
'Elixir.MyElixirProj.Repo.Pool'},
{otp_app,my_elixir_proj},
{repo,
'Elixir.MyElixirProj.Repo'},
{adapter,
'Elixir.Ecto.Adapters.Postgres'},
{database,
<<"barcode_manager_prod">>},
{pool_size,20},
{pool_timeout,5000},
{timeout,15000},
{adapter,
'Elixir.Ecto.Adapters.Postgres'},
{database,
<<"barcode_manager_prod">>},
{pool_size,20},
{pool,
'Elixir.DBConnection.Poolboy'},
{extensions,
[{'Elixir.Ecto.Adapters.Postgres.DateTime',
[]},
{'Elixir.Postgrex.Extensions.JSON',
[{library,
'Elixir.Poison'}]}]},
{port,5432}]},
[{'Elixir.Keyword','fetch!',2,
[{file,"lib/keyword.ex"},
{line,333}]},
{'Elixir.Postgrex.Protocol',
startup,2,
[{file,
"lib/postgrex/protocol.ex"},
{line,411}]},
{'Elixir.Postgrex.Protocol',
handshake,2,
[{file,
"lib/postgrex/protocol.ex"},
{line,361}]},
{'Elixir.DBConnection.Connection',
connect,2,
[{file,
"lib/db_connection/connection.ex"},
{line,134}]},
{'Elixir.Connection',
enter_connect,5,
[{file,"lib/connection.ex"},
{line,622}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},
{line,247}]}]},
{gen_server,call,
[<7269.2652.0>,
{checkout,#Ref<7269.0.4.1836>,
true,infinity},
5000]}}}```
Any help would be great, thanks!