Hi,
Everything was fine yesterday. I tried to turn my program today and I am getting this error when I am trying to run mix phx.server
. I am not sure what’s happening. I will be greatfull for help.
** (Mix) Could not start application calorie: Calorie.Application.start(:normal, []) returned an error: shutdown: failed to start child: CalorieWeb.Endpoint
** (EXIT) shutdown: failed to start child: Phoenix.PubSub.PG2
** (EXIT) shutdown: failed to start child: Phoenix.PubSub.PG2Server
** (EXIT) an exception was raised:
** (UndefinedFunctionError) function :pg2.create/1 is undefined or private
(kernel 8.0.1) :pg2.create({:phx, Calorie.PubSub})
(phoenix_pubsub 1.1.2) lib/phoenix/pubsub/pg2_server.ex:43: Phoenix.PubSub.PG2Server.init/1
(stdlib 3.15.1) gen_server.erl:423: :gen_server.init_it/2
(stdlib 3.15.1) gen_server.erl:390: :gen_server.init_it/6
(stdlib 3.15.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3