Hi, I am having trouble installing a phoenix umbrella app on a new machine.
I’ve run mix deps.get
and also mix ecto.migrate
(I had previously created
the database but have not populated it.) . I have also logged into the database
using psql -d koko_dev -U postgres
. However, when I run
iex -S mix phx.server
, I get the error message below. What to do???.
=ERROR REPORT==== 9-Jul-2017::00:48:43 ===
** Generic server <0.364.0> terminating
** Last message in was nil
** When Server state == 'Elixir.Postgrex.Protocol'
** Reason for termination ==
** {{noproc,
{'Elixir.GenServer',call,
['Elixir.Postgrex.TypeManager',
{get,'Elixir.Ecto.Adapters.Postgres.TypeModule',
{"localhost",5432,<<"koko_dev">>}},
5000]}},
[{'Elixir.GenServer',call,3,[{file,"lib/gen_server.ex"},{line,596}]},
{'Elixir.Postgrex.Protocol',bootstrap,3,
[{file,"lib/postgrex/protocol.ex"},{line,621}]},
{'Elixir.Postgrex.Protocol',handshake,2,
[{file,"lib/postgrex/protocol.ex"},{line,475}]},
{'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}]}]}
** (Mix) Could not start application koko_web: Koko.Web.Application.start(:normal, []) returned an error: shutdown: failed to start child: Koko.Web.Endpoint
** (EXIT) shutdown: failed to start child: Phoenix.Endpoint.Handler
** (EXIT) shutdown: failed to start child: {:ranch_listener_sup, Koko.Web.Endpoint.HTTP}