Pleroma Q:

I'm getting:
13:38:47.821 [info] Postgrex.Protocol (#PID<0.928.0>) disconnected: ** (DBConnection.ConnectionError) client #PID<0.1040.0> exited

and then a crash running `mix phx.server`

Connection to postgres works, postgres says:

STATEMENT: SELECT sum(u0."note_count") FROM "users" AS u0 WHERE (NOT (u0."nickname" IS NULL)) AND (NOT (u0."nickname" LIKE 'internal.%')) AND (u0."local" = $1)

Then:

DEBUG: unexpected EOF on client connection

Ideas ?

Hmm, now it's still crashing but without the ConnectionError.

Just this:

13:44:37.240 [notice] 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

@cjd could it be a migration issue? (though i think it's done automatically, not sure)
@helene
New db so there's really no reason it should be having migration issues...

@cjd not specific to pleroma but here’s your error in an elixir discussion with a proposed solution that worked for the app on question. I haven’t taken the dive to learn elixir, but seems maybe related.

https://elixirforum.com/t/runtimeerror-could-not-lookup-ecto-repo-repo-because-it-was-not-started-or-it-does-not-exist/27935

We just solved this problem. In our case, the test database had unexpected data. (!!) It might have had a slightly different schema than expected.

The fix was to recreate the test database with MIX_ENV=test mix ecto.reset.

It was a frustrating experience

This seems to have helped the OP but not everyone but if maybe there is unexpected data in the db this could help. Are you able to run queries on the db via psql?

** (RuntimeError) could not lookup Ecto repo Repo because it was not started or it does not exist

Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the secon one is an app, which uses some functions from the Database app to check information from the database. I am getting the next error when trying to run tests for functions in the second one which uses functions from the Database app: ** (RuntimeError) could not lookup Ecto repo Repo because it was not started or it does not exist and this is the setup that ...

Elixir Programming Language Forum