<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">I also found running on an external USB connected hard disk delivered much better I/O performance than running on the SD card. <div><br></div><div>Andy, G4PIQ<br><br><div id="AppleMailSignature" dir="ltr">Sent from my iPhone</div><div dir="ltr"><br>On 7 Mar 2019, at 13:44, gu6efb--- via Dxspider-support <<a href="mailto:dxspider-support@tobit.co.uk">dxspider-support@tobit.co.uk</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The most likely reason is that the memory card holding the OS has worn out as it is only good for a limited amount of read/write cycles. DXspider puts a high read/write load on the card<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I had the same issue here with odd unexplainable  cluster failures and it was all down to the card.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I now use a hard disk connected to the PI which has solved my issues .<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">73 Keith GU6EFB<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Dxspider-support [<a href="mailto:dxspider-support-bounces@tobit.co.uk">mailto:dxspider-support-bounces@tobit.co.uk</a>] <b>On Behalf Of </b>Andy Scott via Dxspider-support<br><b>Sent:</b> 07 March 2019 11:36<br><b>To:</b> <a href="mailto:dxspider-support@tobit.co.uk">dxspider-support@tobit.co.uk</a><br><b>Cc:</b> Andy Scott<br><b>Subject:</b> [Dxspider-support] 1. Cluster started hanging several times a day. (David Spoelstra)<o:p></o:p></span></p><p class="MsoNormal"><o:p> </o:p></p><div><div><div><p class="MsoNormal">I cannot offer any conclusive feedback, but I have found, on raspberry pi, that a<o:p></o:p></p></div><div><p class="MsoNormal">symptom of failure on my Pi is that the cluster service fails to communicate with clients on the user port. I have set a cron task to see if a login: prompt is received when telneting into the user port (note that you cannot rely on a telnet timeout, as communication with the port still works fine).  If it times out waiting for the login prompt, I kill the dxcluster process and restart the service - the cron script runs one minute before the normal dxspider cron to reconnect to the upstream server.<o:p></o:p></p></div><div><p class="MsoNormal"><o:p> </o:p></p></div><div><p class="MsoNormal">In doing so, I haven't needed to reboot the server, although this may still be needed from time to time if a different symptom presents.<o:p></o:p></p></div><div><p class="MsoNormal"><o:p> </o:p></p></div><div><p class="MsoNormal">The cron script is as follows, in case it helps anyone (the  /var/tmp folder should exist and be writeable):<br><br>#!/bin/bash<br>#<br># First, capture the process ID for the dxspider server<br>#<br>PID=`pgrep <a href="http://cluster.pl">cluster.pl</a>` ;<br>#<br># Test that we get a login prompt - not just that the telnet port is open<br># We're going to send  a login of _quit_  which will cause the cluster<br># to reject the login and close the session after writing a trace to<br># a temporary file that we can test later, checking its file length<br>#<br>echo "quit" | nc -w 2 [your server address] 7300 &> /var/tmp/dxtest<br>grep -i "login" /var/tmp/dxtest<br>test=$(cat < /var/tmp/dxtest)  || exit  #      exit if the file doesn't exist<br>#<br>#  If the tested file length is long enough to include "login" then all is working<br>#<br>if [ "${#test}" -lt 5 ]<br>        then<br>        # echo "The DXCluster has falledn over..."<br>        kill -9 $PID ;<br>        sleep 3<br>        # echo 'reset by checkcluster.sh' | system-cat -t DXCluster -p warning ;<br>        /etc/rc.d/rc.spider<br>        sleep 1<br>        logger "DXCluster reset -p warning"<br>fi<br>exit<o:p></o:p></p></div><div><p class="MsoNormal"># The End<o:p></o:p></p></div><div><p class="MsoNormal"><o:p> </o:p></p></div><div><p class="MsoNormal"><o:p> </o:p></p></div></div></div></div></div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>Dxspider-support mailing list</span><br><span><a href="mailto:Dxspider-support@tobit.co.uk">Dxspider-support@tobit.co.uk</a></span><br><span><a href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a></span><br></div></blockquote></div></body></html>