CastLouis

CastLouis

Postgres DBConnection.ConnectionError - timed out

i have a process that i want to modify the conection timeout in ecto, but it still wit the same conection time out this is the error:

[error] Postgrex.Protocol (pid<0.319.0>) disconnected: ** (DBConnection.ConnectionError) owner pid<0.481.0> timed out because it owned the connection for longer than 15000ms

(DBConnection.ConnectionError) tcp send: closed

Most Liked

josevalim

josevalim

Creator of Elixir

Thanks @Eiji.

Keep in mind that the ownership timeout is controlled by the :ownership_timeout configuration. I think we improve the error message for it in more recent versions as well.

Eiji

Eiji

@CastLouis: so it’s a sub application in umbrella project. Make sure that other application does not override it’s configuration, for example:
File: umbralla_app/apps/a:

config :my_app, :something, true

could be overwritten by umbreall_app/apss/b:

config :my_app, :something, false

Please also update your post with proper markdown:

Please use this syntax:
```elixir
# your code goes here …
```

Last Post!

romenigld

romenigld

I have now a similiar DBConnection.ConnectionError with PostgreSQL but was after the computer fronzen the system and complains an error System on my Mac OS.
So I was reading here and what I do and now worked for me was Update the PostgreSQL.
So check for the Updates and try.

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
bsollish-terakeet
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
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New

Other popular topics Top

vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42576 114
New

We're in Beta

About us Mission Statement