Karemy

Karemy

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

Most Liked

Karemy

Karemy

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.

Where Next?

Popular in Questions Top

ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New

Other popular topics Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44139 214
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement