<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word;line-break:after-white-space"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br><div id="bloop_customfont" style="margin:0px">Using Erlang R18 and rebar3. This is an application, or release, built with rebar3 and using generated management script to start and stop the application. I see very strange, and random behavior at startup in that when I start the application with "../<app name> console" I will see erlang “PROGRESS REPORT” messages as included applications start, like amps_client. It appears my OTP supervisor and children start normally. In fact one of the children opens a socket and handshakes with an external system. Once the handshake completes I expect to start receiving data from the external system, but nothing else happens until I see the following in the terminal where I started the application:</div><div id="bloop_customfont" style="margin:0px"><br></div><div id="bloop_customfont" style="margin:0px"><div id="bloop_customfont" style="margin:0px">=PROGRESS REPORT==== <a href="http://airmail.calendar/2018-05-04%2012:00:00%20MDT">4-May-2018</a>::13:21:40 ===</div><div id="bloop_customfont" style="margin:0px"> supervisor: {local,kernel_safe_sup}</div><div id="bloop_customfont" style="margin:0px"> started: [{pid,<0.563.0>},</div><div id="bloop_customfont" style="margin:0px"> {id,timer_server},</div><div id="bloop_customfont" style="margin:0px"> {mfargs,{timer,start_link,[]}},</div><div id="bloop_customfont" style="margin:0px"> {restart_type,permanent},</div><div id="bloop_customfont" style="margin:0px"> {shutdown,1000},</div><div id="bloop_customfont" style="margin:0px"> {child_type,worker}]</div><div id="bloop_customfont" style="margin:0px"><br></div><div id="bloop_customfont" style="margin:0px">At this point the app receives messages on the tcp socket and everything appears completely normal. However, sometimes it is hours before I see this last “PROGRESS REPORT” and normal operation starts, other times maybe a minute or less. I have this feeling that a supervisor or child in another tree, not mine, is hung in an init() callback or something. I just am at a loss on how to debug this problem. I have never seen this type of behavior before.</div><div id="bloop_customfont" style="margin:0px"><br></div><div id="bloop_customfont" style="margin:0px">My release includes my application of course, but also lager, amqp_client and rabbit_common, and xmerl.</div><div id="bloop_customfont" style="margin:0px"><br></div><div id="bloop_customfont" style="margin:0px">Any suggestions would be greatly appreciated.</div><div id="bloop_customfont" style="margin:0px"><br></div><div id="bloop_customfont" style="margin:0px">Thanks,</div></div><div class="bloop_container" style="font-family:"helvetica Neue",helvetica;font-size:14px"><div class="bloop_frame"></div></div><br style="font-family:"helvetica Neue",helvetica;font-size:14px"><div id="bloop_sign_1525465080618701824" class="bloop_sign" style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-size:13.333333015441895px">Mark Geib</span><br style="font-size:13.333333015441895px"><span style="font-size:13.333333015441895px">Principal Engineer</span><br style="font-size:13.333333015441895px"><span style="font-size:13.333333015441895px">Cheyenne Software Engineering</span><br style="font-size:13.333333015441895px"><a href="mailto:mark.geib@dish.com" style="font-size:13.333333015441895px">mark.geib@dish.com</a><span style="font-size:13.333333015441895px"> / 335-215</span><br style="font-size:13.333333015441895px"><br style="font-size:13.333333015441895px"><span style="font-size:13.333333015441895px">"A long habit of not thinking a thing wrong gives it a superficial appearance of being right.”</span><br style="font-size:13.333333015441895px"><span style="font-size:13.333333015441895px">-Thomas Paine</span></div></div></body></html>