<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div class="">
<div class="">
<div class="">
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div class="" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div class="">
<div class="">
<div class="">
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div class="" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span class="" style="font-variant-ligatures: no-common-ligatures;">> Error: on #<BASIC-CHARACTER-INPUT-STREAM UTF-8 (CHARACTER-SPECIAL/0) #x302000431CAD> : </span></div>
<div class="" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span class="" style="font-variant-ligatures: no-common-ligatures;">>        Bad file descriptor during read</span></div>
<div class="" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span class="" style="font-variant-ligatures: no-common-ligatures;">> While executing: #<CCL::STANDARD-KERNEL-METHOD CCL::STREAM-IO-ERROR (STREAM T T)>, in process listener(1).</span></div>
<div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class="">
</span></div>
<div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class="">
</span></div>
<div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;">I got tons (761) of these in the server log, right when the system starts up, ever since I moved my Clozure Common Lisp/hunchentoot-based web server from my Mac laptop to an AWS
 linux instance. </span></div>
<div class=""><br class="">
</div>
<div class="">The problem occurs <b class="">only </b>when I run my system using nohup:</div>
</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span><span style="font-family: "Helvetica Neue";" class="">nohup ./ccl/lx86cl64 -l ./system/Code/startup-aws.lisp</span><span style="font-family: "Helvetica Neue";" class=""> 
</span><span style="font-family: "Helvetica Neue";" class="">&> serverlog</span><span style="font-family: "Helvetica Neue";" class=""> 
</span><span style="font-family: "Helvetica Neue";" class="">&</span></div>
<div class=""><font face="Helvetica Neue" class=""><br class="">
</font></div>
<div class=""><font face="Helvetica Neue" class="">but <b class="">not</b> if I run it from the command line:</font></div>
<div class=""><font face="Helvetica Neue" class=""><br class="">
</font></div>
<div class=""><font face="Helvetica Neue" class=""><span class="Apple-tab-span" style="white-space:pre"></span></font><span style="font-family: "Helvetica Neue";" class="">./ccl/lx86cl64 -l ./system/Code/startup-aws.lisp</span></div>
<div class=""><font face="Helvetica Neue" class=""><br class="">
</font>
<div>
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div class="">
<div class="">
<div class="">
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div class="">But I need to use nohup so my system keep runnings even after I close the terminal window I use to access the AWS instance.</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
</div>
<div class="">
<div>
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div class="">
<div class="">
<div class="">
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div class="">Perhaps not unrelated: if I run the server under nohup, it hangs after a while (~1 hour), even if no one is using it at the time.</div>
</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
</div>
</div>
</div>
<div>Any thoughts on what nohup might be doing to create these errors?</div>
<div><br class="">
</div>
<div>   Thanks!</div>
<div><br class="">
</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>Mark</div>
<div><br class="">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 7, 2020, at 7:24 PM, Ron Garret <<a href="mailto:ron@flownet.com" class="">ron@flownet.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
This happens when a client closes an HTTP connection prematurely and Hunchentoot attempts to read from what is now a closed TCP socket.  It can also happen if you have a flaky network connection.  But neither of these explains why you’re getting more of these
 on AWS than before you moved there.
<div class=""><br class="">
</div>
<div class="">Where were you hosted before moving to AWS?<br class="">
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div class="">On Feb 7, 2020, at 9:20 AM, Mark Klein <<a href="mailto:m_klein@MIT.EDU" class="">m_klein@MIT.EDU</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">> Error: on #<BASIC-CHARACTER-INPUT-STREAM UTF-8 (CHARACTER-SPECIAL/0) #x302000431CAD> : </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">>        Bad file descriptor during read</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">> While executing: #<CCL::STANDARD-KERNEL-METHOD CCL::STREAM-IO-ERROR (STREAM T T)>, in process listener(1).</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">I got tons (hundreds) of these in the server log after I moved my hunchentoot-based web server to a AWS linux instance.</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Any suggestions re what it means and how I can fix it?</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">     Thanks!</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre"></span>Mark</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
----------------------<br class="">
Mark Klein, PhD<br class="">
Principal Research Scientist<br class="">
Massachusetts Institute of Technology<br class="">
<a href="http://cci.mit.edu/klein/" class="">http://cci.mit.edu/klein/</a><br class="">
<br class="">
<br class="">
</div>
</div>
</div>
<br class="">
</div>
_______________________________________________<br class="">
Openmcl-devel mailing list<br class="">
<a href="mailto:Openmcl-devel@clozure.com" class="">Openmcl-devel@clozure.com</a><br class="">
<a href="https://lists.clozure.com/mailman/listinfo/openmcl-devel" class="">https://lists.clozure.com/mailman/listinfo/openmcl-devel</a><br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
<div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
----------------------<br class="">
Mark Klein, PhD<br class="">
Principal Research Scientist<br class="">
Massachusetts Institute of Technology<br class="">
<a href="http://cci.mit.edu/klein/" class="">http://cci.mit.edu/klein/</a><br class="">
<br class="">
<br class="">
</div>
</div>
</div>
<br class="">
</div>
</body>
</html>