<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Use remote_console instead of attach.</div>
<div> </div>
<div id="sig19496053"><div class="signature">--<br></div>
<div class="signature">Tristan Sloughter<br></div>
<div class="signature">t@crashfast.com<br></div>
<div class="signature"> </div>
</div>
<div> </div>
<div> </div>
<div>On Wed, May 13, 2015, at 06:41 AM, Roberto Ostinelli wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>Hi,<br></div>
<div>Still experiencing weirdnesses though.<br></div>
<div> </div>
<div>My upstart script is:<br></div>
<div> </div>
<div><div><span class="font" style="font-family:monospace, ' monospace'">script</span><br></div>
<div><span class="font" style="font-family:monospace, ' monospace'"><span style="white-space:pre;"></span>export HOME=/root</span><br></div>
<div><span class="font" style="font-family:monospace, ' monospace'"><span style="white-space:pre;"></span>cd /usr/local/myapp</span><br></div>
<div><span class="font" style="font-family:monospace, ' monospace'">    exec bin/myapp foreground > /dev/null 2>&1</span><br></div>
<div><span class="font" style="font-family:monospace, ' monospace'">end script</span><br></div>
</div>
<div> </div>
<div> </div>
<div>When I start to attach to the app's node, I get:<br></div>
<div> </div>
<div><div><span class="font" style="font-family:monospace, ' monospace'">$ /usr/local/myapp/bin/myapp attach</span><br></div>
<div><span class="font" style="font-family:monospace, ' monospace'">pong</span><br></div>
<div><span class="font" style="font-family:monospace, ' monospace'">Can't access pipe directory /tmp//usr/local/myapp/: No such file or directory</span><br></div>
</div>
<div> </div>
<div> </div>
<div>However, if I start my app manually:<br></div>
<div> </div>
<div><span class="font" style="font-family:monospace, monospace">$ /usr/local/myapp/bin/myapp</span><span class="font" style="font-family:monospace, monospace"> start</span><br></div>
<div> </div>
<div>Then everything works fine:<br></div>
<div> </div>
<div><div><span class="font" style="font-family:monospace, ' monospace'">$ /usr/local/cometa/bin/cometa attach</span><br></div>
<div><span class="font" style="font-family:monospace, ' monospace'">pong</span><br></div>
<div><span class="font" style="font-family:monospace, ' monospace'">Attaching to /tmp//usr/local/myapp/erlang.pipe.1 (^D to exit)</span><br></div>
<div> </div>
<div><span class="font" style="font-family:monospace, ' monospace'">(myapp@</span><span class="font" style="font-family:monospace, monospace">myapp.example</span><span class="font" style="font-family:monospace, ' monospace'">.com)1></span><br></div>
</div>
<div> </div>
<div> </div>
<div>Can some kind soul explain to me what is going on?<br></div>
<div> </div>
<div>Thank you,<br></div>
<div>r.<br></div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
</div>
<div><div> </div>
<div><div>On Tue, May 12, 2015 at 8:44 PM, Roger Lipscombe <span dir="ltr"><<a href="mailto:roger@differentpla.net">roger@differentpla.net</a>></span> wrote:<br></div>
<blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex;">On 12 May 2015 at 18:45, Roberto Ostinelli<br> <span><<a href="mailto:roberto.ostinelli@widetag.com">roberto.ostinelli@widetag.com</a>> wrote:<br>
> Right. Unfortunately I can't find a way to oass this pid to the original script that starts it (using upstart).<br> <br></span>We use relx-generated releases with upstart. Simply run "bin/myapp<br>
foreground" from the upstart script.</blockquote></div>
<div> </div>
</div>
</blockquote></body>
</html>