<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="31005" data-post-id="31005">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="CastLouis" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  CastLouis
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This are the modules that are in the tutorial, the database is create before<br>
the mix.exs:<br>
defmodule NA.DB.Mixfile do  use Mix.Project<br>
def project do    [app: :na_db,     version: “0.1.0”,     build_path: “../../_build”,     config_path: “../../config/config.exs”,     deps_path: “../../deps”,     lockfile: “../../mix.lock”,     elixir: “~&gt; 1.4”,     build_embedded: Mix.env == :prod,     start_permanent: Mix.env == :prod,     deps: deps()]  end<br>
def application do    [      extra_applications: [:logger],      mod: {NA.DB, <span class="chcklst-box fa fa-square-o"></span>}    ]  end<br>
defp deps do    [      {:postgrex, “~&gt; 0.13”},      {:ecto, “~&gt; 2.1”},    ]  endend</p>
<p>the repo.ex:<br>
defmodule NA.DB.Repo do  use Ecto.Repo, otp_app: :na_dbend</p>
<p>the na_db.ex start function:<br>
def start(_type, _args) do    import Supervisor.Spec, warn: false<br>
children = [      supervisor(NA.DB.Repo, [get_opts()]),    ]<br>
opts = [strategy: :one_for_one, name: NA.DB.Supervisor]<br>
Supervisor.start_link(children, opts)  end</p>
<p>The test.config:<br>
config :na_db, NA.DB.Repo,  adapter: Ecto.Adapters.Postgres,  database: “nadb”,  username: “dadmin”,  password: “d@dm!n”,  ownership_timeout: 60_000,  hostname: “127.0.0.1”,  pool: Ecto.Adapters.SQL.Sandbox,  port: “5432”,  timeout: 450000</p>
<p>The config/config.exs<br>
import_config “#{Mix.env}.exs”</p>
<p>after that in the tutorial is on creating the tables. could you please help me, it all the information that i have it.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="31005" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/postgres-dbconnection-connectionerror-timed-out/4774/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-31005" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="31005"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="31006" data-post-id="31006">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Eiji" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Eiji/120/36743_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Eiji
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/castlouis" rel="nofollow">@CastLouis</a>: so it’s a sub application in umbrella project. Make sure that other application does not override it’s configuration, for example:<br>
File: <code>umbralla_app/apps/a</code>:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">config :my_app, :something, true
</code></pre>
<p>could be overwritten by <code>umbreall_app/apss/b</code>:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">config :my_app, :something, false
</code></pre>
<p>Please also update your post with proper markdown:</p>
<p>Please use this syntax:<br>
```elixir<br>
# your code goes here …<br>
```</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="31006" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/postgres-dbconnection-connectionerror-timed-out/4774/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-31006" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="31006"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="31009" data-post-id="31009">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Eiji" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Eiji/120/36743_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Eiji
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/castlouis" rel="nofollow">@CastLouis</a>: ahh, I see what you have missed:</p>
<blockquote>
<p>The config/config.exs<br>
import_config “#{Mix.env}.exs”</p>
</blockquote>
<p>after that in the tutorial is on creating the tables. could you please help me, it all the information that i have it.</p>
<p>After that yes it’s about create example table and work on it, but <strong>after</strong> it there is chapter called: <strong>Tests and functionality</strong>! Please read whole article and not only copy and paste code. <img src="https://forum.elixirforum.com/images/emoji/apple/smiley.png?v=15" title=":smiley:" class="emoji" alt=":smiley:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="31009" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/postgres-dbconnection-connectionerror-timed-out/4774/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-31009" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="31009"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #13"></div>
  </section>
</div>
    <div class="postbit" id="31014" data-post-id="31014">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="CastLouis" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  CastLouis
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Jaja, no i am not just copy i try to understand this error, i follow your instructions and i add this line of code in my config/config.exs and it looks like this:</p>
<p>config :na_db, :ecto_repos, [NA.DB.Repo]<br>
import_config “#{Mix.env}.exs”</p>
<p>and the problem still, now it throws this information:</p>
<p>test read my claim (NA.Claims.ClaimHistoryLoaderTest)<br>
test/na_claims/claim_history_loader_test.exs:3<br>
** (exit) exited in: GenServer.call(<a class="hashtag-cooked" href="/tag/pid/2279" data-type="tag" data-slug="pid" data-id="2279" data-style-type="icon" data-icon="tag" rel="nofollow"><span class="hashtag-icon-placeholder"><svg class="fa d-icon d-icon-square-full svg-icon svg-node"><use href="#square-full"></use></svg></span><span>pid</span></a>&lt;0.489.0&gt;, {:checkout, <a class="hashtag-cooked" href="/tag/reference/1562" data-type="tag" data-slug="reference" data-id="1562" data-style-type="icon" data-icon="tag" rel="nofollow"><span class="hashtag-icon-placeholder"><svg class="fa d-icon d-icon-square-full svg-icon svg-node"><use href="#square-full"></use></svg></span><span>reference</span></a>&lt;0.0.2.28900&gt;, true, 450000}, 5000)<br>
** (EXIT) shutdown: “owner <a class="hashtag-cooked" href="/tag/pid/2279" data-type="tag" data-slug="pid" data-id="2279" data-style-type="icon" data-icon="tag" rel="nofollow"><span class="hashtag-icon-placeholder"><svg class="fa d-icon d-icon-square-full svg-icon svg-node"><use href="#square-full"></use></svg></span><span>pid</span></a>&lt;0.483.0&gt; timed out because it owned the connection for longer than 15000ms”</p>
<p>450000 and 5000 i don’t know where are those values, one question after doing the change i need to restart something?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="31014" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/postgres-dbconnection-connectionerror-timed-out/4774/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-31014" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="31014"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #14"></div>
  </section>
</div>
    <div class="postbit" id="31016" data-post-id="31016">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Eiji" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Eiji/120/36743_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Eiji
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/castlouis" rel="nofollow">@CastLouis</a>: you do not need to restart anything - just run tests by <code>mix test</code> one more time after you change configuration - or in case you are changing for example ports then you need to be sure that 3rd party application is already runned on that port and if not reconfigure and restart it, but simple change any <code>timeout</code> variable do not need to restart any 3rd party applications.</p>
<p>Starting from my previous comment you answered that you modified only: <code>config/config.exs</code> - please make sure that you read whole article. Last chapter is focusing on tests - there are more changes to do than modify only one file.</p>
<p>And you still do not using special markup <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
<p>Sometimes helpful practise is to create new project and start from 0, so:</p>
<ol>
<li>create new elixir project</li>
<li>setup credo</li>
<li>merge your code part by part and test it<br>
It’s possible to make a typo like: <code>:timaout</code> which is not easy to notice <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></li>
</ol> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="31016" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/postgres-dbconnection-connectionerror-timed-out/4774/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-31016" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="31016"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #15"></div>
  </section>
</div>
    <div class="postbit" id="31019" data-post-id="31019">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="CastLouis" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  CastLouis
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Excuse me</p>
<pre><code>config :na_db, :ecto_repos, [NA.DB.Repo]
import_config "#{Mix.env}.exs"

StackTrace:

1) test read my claim (NA.Claims.ClaimHistoryLoaderTest)
     test/na_claims/claim_history_loader_test.exs:3
     ** (exit) exited in: GenServer.call(#PID&lt;0.489.0&gt;, {:checkout, #Reference&lt;0.0.2.33413&gt;, true, 450000}, 5000)
         ** (EXIT) shutdown: "owner #PID&lt;0.483.0&gt; timed out because it owned the connection for longer than 15000ms"
       (elixir) lib/enum.ex:1768: Enum."-each/2-anonymous-3-"/3
       (elixir) lib/stream.ex:1385: anonymous fn/3 in Enumerable.Stream.reduce/3
       (elixir) lib/stream.ex:1259: Stream.do_resource/5
       (elixir) lib/stream.ex:1405: Enumerable.Stream.do_each/4
       (elixir) lib/enum.ex:1767: Enum.each/2
       test/na_claims/claim_history_loader_test.exs:4: (test)
</code></pre>
<p>Loader:</p>
<pre><code>`defp store_claim(pid) do    
NA.DB.Repo.Claims.insert_claim(make_claim(pid), NA.Claims.ClaimAgent.get_claim_fields(pid)                                                     |&gt; Enum.map(fn(x) -&gt; struct(NA.DB.Schema.ClaimField, Map.from_struct(x)) end))  end`
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="31019" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/postgres-dbconnection-connectionerror-timed-out/4774/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-31019" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="31019"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #16"></div>
  </section>
</div>
    <div class="postbit" id="31021" data-post-id="31021">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Eiji" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Eiji/120/36743_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Eiji
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/castlouis" rel="nofollow">@CastLouis</a>: You have still a problem with 2nd code, but not I see better your problem (syntax highlighting is really helpful <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"><br>
Look at <a href="https://hexdocs.pm/ecto/Ecto.Adapters.SQL.Sandbox.html" rel="noopener nofollow ugc">docs</a> - it have more description. Hope you will better understand your error.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="31021" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/postgres-dbconnection-connectionerror-timed-out/4774/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-31021" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="31021"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #17"></div>
  </section>
</div>
    <div class="postbit" id="192079" data-post-id="192079">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="romenigld" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/romenigld/120/6200_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  romenigld
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>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.<br>
So I was reading here and what I do and now worked for me was Update the PostgreSQL.<br>
So check for the Updates and try.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="192079" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/postgres-dbconnection-connectionerror-timed-out/4774/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-192079" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="192079"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>