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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi, I am facing a very odd behaviour trying to deploy an Elixir umbrella using <code>conduit_amqp</code>:</p>
<ul>
<li>locally, everything runs fine, no issues there.</li>
<li>deploying my application (kubernetes pod wrapped in a  statefulset), I am unable to connect to the RabbitMQ instance, with the following logs:</li>
</ul>
<pre data-code-wrap="elixir"><code class="lang-elixir">22:24:34.317 [info] [supervisor: {#PID&lt;0.5632.0&gt;, :amqp_connection_sup}, started: [pid: #PID&lt;0.5633.0&gt;, name: :connection_type_sup, mfargs: {:amqp_connection_type_sup, :start_link, []}, restart_type: :transient, shutdown: :infinity, child_type: :supervisor]]
22:24:34.318 [info] [supervisor: {#PID&lt;0.5632.0&gt;, :amqp_connection_sup}, started: [pid: #PID&lt;0.5634.0&gt;, name: :connection, mfargs: {:amqp_gen_connection, :start_link, [#PID&lt;0.5633.0&gt;, {:amqp_params_network, "guest", "guest", "/", 'localhost', 5672, 0, 0, 10, 60000, :none, [&amp;:amqp_auth_mechanisms.plain/3, &amp;:amqp_auth_mechanisms.amqplain/3], [], []}]}, restart_type: :intrinsic, shutdown: :brutal_kill, child_type: :worker]]
22:24:34.321 [error] Cannot connect to RabbitMQ broker
22:24:48.128 [info] [supervisor: {#PID&lt;0.5635.0&gt;, :amqp_connection_sup}, started: [pid: #PID&lt;0.5636.0&gt;, name: :connection_type_sup, mfargs: {:amqp_connection_type_sup, :start_link, []}, restart_type: :transient, shutdown: :infinity, child_type: :supervisor]]
</code></pre>
<p>I am using <strong>Elixir 1.9.1</strong> releases, and for a reason that I do not understand, the runtime configuration is not applied. When running <code>Application.get_env(:my_app, MyBrokerModule)</code> inside my production node, the runtime configuration is correct, just like it’s defined in the <code>releases.exs</code> file. If I stop the application, and restart the app through the <code>Application</code> module functions, then the config applies and the broker connects to the RabbitMQ instance, creates the queues &amp; exchanges as it should.</p>
<p>I am really puzzled by this behaviour and I don’t even know if this is the right place to post this. Is it an issue with Elixir 1.9? Is is an issue with the boot sequence of Conduit? I am lost and I would love some help figuring this out <img src="https://forum.elixirforum.com/images/emoji/apple/folded_hands.png?v=15" title=":folded_hands:" class="emoji" alt=":folded_hands:" 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="141993" 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/conduit-a-framework-for-building-reliable-event-based-systems/16357/22">Post #21</a>
	                </div>
	            </div>
              <div id="likers-container-141993" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="141993"
                     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 #21"></div>
  </section>
</div>
    <div class="postbit" id="142007" data-post-id="142007">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="blatyo" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/blatyo/120/4554_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  blatyo
                    <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 class="user-title">
									<span>Conduit Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hey <a class="mention" href="/u/bdubaut" rel="nofollow">@bdubaut</a>,</p>
<p>That does seem odd. There’s nothing about Elixir 1.9.1 that I’m aware of that would cause configuration to load after the supervision tree has started. To double check though, you could log what the options are in your application start function. That should tell you whether the config is present for conduit.</p>
<p>Are you sure rabbit is running when you do the deploy?</p>
<p>Also, I don’t know where that logging comes from. ConduitAMQP would say <code>Connection failed via AMQP!</code>. What versions are you using for <code>conduit</code> and <code>conduit_amqp</code>?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="142007" 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/conduit-a-framework-for-building-reliable-event-based-systems/16357/23">Post #22</a>
	                </div>
	            </div>
              <div id="likers-container-142007" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="142007"
                     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 #22"></div>
  </section>
</div>
    <div class="postbit" id="142091" data-post-id="142091">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/blatyo" rel="nofollow">@blatyo</a> it’s my bad. The problem was coming from my configuration that was missing some stuff, <strong>and</strong> my broadway_rabbitmq configurations that were not connecting either, the log I shared comes from the broadway apps using the RabbitMQ as a producer.  <img src="https://forum.elixirforum.com/images/emoji/apple/man_facepalming.png?v=15" title=":man_facepalming:" class="emoji" alt=":man_facepalming:" loading="lazy" width="20" height="20"></p>
<p>Sorry about that. Thanks though!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="142091" 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/conduit-a-framework-for-building-reliable-event-based-systems/16357/24">Post #23</a>
	                </div>
	            </div>
              <div id="likers-container-142091" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="142091"
                     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>