Error in github action - (DBConnection.OwnershipError) cannot find ownership process for #PID<0.16961.0>

Hello, greetings to all, I need your support. When doing a push in git the tests are executed, but when uploading it throws me the following error … locally the tests are executed without any error, I have understood that it could be a bad configuration in my repository in git but I don’t know what could be. I show you the error it throws at me. Your comments would be very helpful for a feedback and thus find the error.

** (DBConnection.OwnershipError) cannot find ownership process for #PID<0.16961.0>.

(https://github.com/.../checks?check_run_id=3165274328#step:7:556)

(https://github.com/.../checks?check_run_id=3165274328#step:7:557) When using ownership, you must manage connections in one

(https://github.com/.../checks?check_run_id=3165274328#step:7:558) of the four ways:

(https://github.com/.../checks?check_run_id=3165274328#step:7:559)

(https://github.com/.../checks?check_run_id=3165274328#step:7:560) * By explicitly checking out a connection

(https://github.com/.../checks?check_run_id=3165274328#step:7:561) * By explicitly allowing a spawned process

(https://github.com/.../checks?check_run_id=3165274328#step:7:562) * By running the pool in shared mode

(https://github.com/.../checks?check_run_id=3165274328#step:7:563) * By using :caller option with allowed process

(https://github.com/.../checks?check_run_id=3165274328#step:7:564)

(https://github.com/.../checks?check_run_id=3165274328#step:7:565) The first two options require every new process to explicitly

(https://github.com/.../checks?check_run_id=3165274328#step:7:566) check a connection out or be allowed by calling checkout or

(https://github.com/.../checks?check_run_id=3165274328#step:7:567) allow respectively.

(https://github.com/.../checks?check_run_id=3165274328#step:7:568)

(https://github.com/.../checks?check_run_id=3165274328#step:7:569) The third option requires a {:shared, pid} mode to be set.

(https://github.com/.../checks?check_run_id=3165274328#step:7:570) If using shared mode in tests, make sure your tests are not

(https://github.com/.../checks?check_run_id=3165274328#step:7:571) async.

(https://github.com/.../checks?check_run_id=3165274328#step:7:572)

(https://github.com/.../checks?check_run_id=3165274328#step:7:573) The fourth option requires [caller: pid] to be used when

(https://github.com/.../checks?check_run_id=3165274328#step:7:574) checking out a connection from the pool. The caller process

(https://github.com/.../checks?check_run_id=3165274328#step:7:575) should already be allowed on a connection.

(https://github.com/.../checks?check_run_id=3165274328#step:7:576)

(https://github.com/.../checks?check_run_id=3165274328#step:7:577) If you are reading this error, it means you have not done one

(https://github.com/.../checks?check_run_id=3165274328#step:7:578) of the steps above or that the owner process has crashed.

(https://github.com/.../checks?check_run_id=3165274328#step:7:579)

(https://github.com/.../checks?check_run_id=3165274328#step:7:580) See Ecto.Adapters.SQL.Sandbox docs for more information.

(https://github.com/.../checks?check_run_id=3165274328#step:7:581) stacktrace:

(https://github.com/.../checks?check_run_id=3165274328#step:7:582) (ecto_sql 3.6.2) lib/ecto/adapters/sql.ex:757: Ecto.Adapters.SQL.raise_sql_call_error/1

(https://github.com/.../checks?check_run_id=3165274328#step:7:583) (ecto 3.6.2) lib/ecto/repo/schema.ex:725: Ecto.Repo.Schema.apply/4

(https://github.com/.../checks?check_run_id=3165274328#step:7:584) (ecto 3.6.2) lib/ecto/repo/schema.ex:350: anonymous fn/15 in Ecto.Repo.Schema.do_insert/4

(https://github.com/.../checks?check_run_id=3165274328#step:7:585) (ecto 3.6.2) lib/ecto/repo/schema.ex:252: Ecto.Repo.Schema.insert!/4

(https://github.com/.../checks?check_run_id=3165274328#step:7:586) (self_care 0.1.5) test/support/fixtures/accounts_fixtures.ex:37: SelfCare.AccountsFixtures.user_crm_account/1

(https://github.com/.../checks?check_run_id=3165274328#step:7:587) (self_care 0.1.5) test/support/fixtures/accounts_fixtures.ex:21: SelfCare.AccountsFixtures.user_fixture/1

(https://github.com/.../checks?check_run_id=3165274328#step:7:588) test/self_care/accounts_test.exs:469: SelfCare.AccountsTest.__ex_unit_setup_10/1

(https://github.com/.../checks?check_run_id=3165274328#step:7:589) test/self_care/accounts_test.exs:1: SelfCare.AccountsTest.__ex_unit__/2

After several attempts the solution was to add the checkout of my missing repo.
The detail is that I have two repositories, one repository had a checkout while the other did not.

3 Likes