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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Still struggling with the migration to ecto 3.</p>
<p>getting the error saying that it can’t find :database</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">olivetree-server | 
olivetree-server | 04:33:07.686 [error] GenServer #PID&lt;0.1832.0&gt; terminating
olivetree-server | ** (RuntimeError) connect raised KeyError exception: key :database not found.The exception details are hidden, as they may contain sensitive data such as database credentials. You may set :show_sensitive_data_on_connection_error to true if you wish to see all of the details
olivetree-server |     (elixir) lib/keyword.ex:386: Keyword.fetch!/2
olivetree-server |     (postgrex) lib/postgrex/protocol.ex:90: Postgrex.Protocol.connect/1
olivetree-server |     (db_connection) lib/db_connection/connection.ex:66: DBConnection.Connection.connect/2
olivetree-server |     (connection) lib/connection.ex:622: Connection.enter_connect/5
olivetree-server |     (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
olivetree-server | Last message: nil
</code></pre>
<p>How can I debug this? not sure where to set the <code>:show_sensitive_data_on_connection_error</code></p>
<aside class="onebox githubgist" data-onebox-src="https://gist.github.com/mazz/a822d1b684e12da7c383856e6923e540">
  <header class="source">

      <a href="https://gist.github.com/mazz/a822d1b684e12da7c383856e6923e540" target="_blank" rel="noopener nofollow ugc">gist.github.com</a>
  </header>

  <article class="onebox-body">
    <h4><a href="https://gist.github.com/mazz/a822d1b684e12da7c383856e6923e540" target="_blank" rel="noopener nofollow ugc">https://gist.github.com/mazz/a822d1b684e12da7c383856e6923e540</a></h4>

  <h5>.env</h5>
  <pre><code class="Dotenv">HOST=localhost
DATABASE_URL=ecto://nevermind:nevermind@olivetree-db/olivetree_prod?pool_size=15
PORT=5000

POSTGRES_USER=nevermind
POSTGRES_PASSWORD=nevermind
POSTGRES_DB=olivetree_prod
POSTGRES_HOST=postgres</code></pre>
  <h5>docker-compose.yml</h5>
  <pre><code class="YAML">version: "3"
services:
  db:
    image: postgres:10.4-alpine
    container_name: olivetree-db
    networks:
      - nginx-network
  admin:
    image: olivetree-release
    container_name: olivetree-admin</code></pre>
   This file has been truncated. <a href="https://gist.github.com/mazz/a822d1b684e12da7c383856e6923e540" target="_blank" rel="noopener nofollow ugc">show original</a>
  <h5>prod.exs</h5>
  <pre><code class="Elixir">use Mix.Config

# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# OlivetreeWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don't forget to configure the url host to something meaningful,
# Phoenix uses this information when generating URLs.</code></pre>
   This file has been truncated. <a href="https://gist.github.com/mazz/a822d1b684e12da7c383856e6923e540" target="_blank" rel="noopener nofollow ugc">show original</a>

  <p>
    There are more than three files. <a href="https://gist.github.com/mazz/a822d1b684e12da7c383856e6923e540" target="_blank" rel="noopener nofollow ugc">show original</a>
  </p>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="103376" 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/flexible-dockerized-phoenix-deployments-1-2-1-3/12477/73">Post #72</a>
	                </div>
	            </div>
              <div id="likers-container-103376" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="103376"
                     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 #72"></div>
  </section>
</div>
    <div class="postbit" id="110393" data-post-id="110393">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Also make sure to increase the pool size in your <code>ReleaseTasks</code> Module, see this <a href="http://blog.tap349.com/elixir/ecto/2018/11/15/ecto-upgrading-to-3.0/#increase-connection-pool-size-to-at-least-2" rel="noopener nofollow ugc">blog post</a> (which helped me fix the same error).<br>
TL;DR in <code>YourApp.ReleaseTasks</code> search for this line:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">Enum.each(@repos, &amp; &amp;1.start_link(pool_size: 1))
</code></pre>
<p>and increase <code>pool_size</code> to at least 2</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="110393" 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/flexible-dockerized-phoenix-deployments-1-2-1-3/12477/74">Post #73</a>
	                </div>
	            </div>
              <div id="likers-container-110393" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="110393"
                     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 #73"></div>
  </section>
</div>
    <div class="postbit" id="274491" data-post-id="274491">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This looks like a very interesting repo. I wonder if it is still relevant and up to date in January 2023?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="274491" 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/flexible-dockerized-phoenix-deployments-1-2-1-3/12477/75">Post #74</a>
	                </div>
	            </div>
              <div id="likers-container-274491" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="274491"
                     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 #74"></div>
  </section>
</div>
    <div class="postbit" id="275019" data-post-id="275019">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jswny" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jswny/120/18428_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jswny
                    <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>I haven’t worked on Phoenix apps in a long time, so this hasn’t been updated in a while unfortunately.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="275019" 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/flexible-dockerized-phoenix-deployments-1-2-1-3/12477/76">Post #75</a>
	                </div>
	            </div>
              <div id="likers-container-275019" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="275019"
                     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>