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
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
Popular in Questions
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
Hello all!
I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
As a follow up to my earlier question:
I have the code compiling and running but not getting a successful login from the rest server. ...
New
The Elixir Typespec docs show the following syntax for keyword lists in typespecs:
# ...
| [key: type] # keyword lis...
New
Hey,
I have a NanoPi-M3 and try to install Elixir on their Ubuntu image. I followed the Raspberry Pi installation instructions from the ...
New
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size?
Thanks
New
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
Other popular topics
Manning 2016 Halloween weekend sale via Deal of the Day
Friday, October 28 - Half off all MEAPs - code WM102816LT
Saturday, October 29 ...
New
Credo is smart enough to check for (something like) this:
assert length(the_list) == 0
with this response:
Checking if an enum is empt...
New
Hello all!
I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
Hi all,
Trying to get some more clarity over utc_datetime and naive_datetime for Ecto:
https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine)
This is a plugin that adds support for Elixir to JetBrains IntelliJ...
New
I have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I'm writing a test for one of t...
New
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this
"1000"
What is the ...
New
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
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New








