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


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="sbuttgereit" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sbuttgereit/120/30162_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  sbuttgereit
                    <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>So I figured out the issue: it was a naming collision in the supervisory tree.</p>
<p>I had a regular <code>Supervisor</code> created in an early step and given a certain name.  Later, in a different module, I accidentally created a <code>DynamicSupervisor</code> with the same name.</p>
<aside class="quote no-group" data-username="al2o3cr" data-post="10" data-topic="65170">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/al2o3cr/48/3457_2.png" class="avatar"> al2o3cr:</div>
<blockquote>
<p>The only way I could see this happening is calling <code>DynamicSupervisor.start_child</code> with a name or PID that’s actually running <code>:supervisor</code> code.</p>
</blockquote>
</aside>
<p>This is exactly what was happening.  Because I was calling <code>DynamicSupervisor.start_child/2</code> while using a name that was also associated (and associated first) with a regular <code>Supervisor</code>.</p>
<p>The <code>extrace</code> utility eventually got me to the code that Matt had called out, and that was where things were failing.  It wasn’t clear that there was a naming collision, but stepping back with all of the information I traced through the whole process and across modules and with fresh eyes I saw the collision.  This is all test/development support code that wouldn’t be running in production and so I’ve taken liberties and short-cuts here and there… and in this case it bit me.  <code>&lt;sigh/&gt;</code></p>
<p>I wish I could mark two solutions because both <a class="mention" href="/u/lostkobrakai" rel="nofollow">@LostKobrakai</a> and <a class="mention" href="/u/al2o3cr" rel="nofollow">@al2o3cr</a> really contributed to getting me across the finish line with this.</p>
<p>Thanks to all that commented!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="335835" data-batch-url="/posts/batch_likers">
                        2
                      </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/difficulty-figuring-out-dynamicsupervisor-invalid-child-spec-error/65170/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-335835" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="335835"
                     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>