Every once in awhile my Antminer S1's will stop hashing.
I am not sure why there is no rhyme or reason or pattern.
I just know that I have to babysit them and reboot or power cycle when they stop hashing.
This seems to be a common problem. The reason has yet to be identified.
I don't have time to be a babysitter and I also need to sleep.
So I wrote a small script to check for hashing and set it to run every minute. If the S1 has stopped hashing it will automatically reboot.
1. SSH into your miner. I use putty (
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)
2. enter your login credentials
3. type cd /bin
4. type vi hashcheck
5. type the following code (shown below in bold) into the vi editor
#!/bin/ash
var=$(cat /proc/loadavg | grep . | cut -c 1)
if [ $var -lt 1 ]
then
/sbin/reboot
else
fi6. Press the Esc key
7. Type :x and then press enter
8. Close putty
9. Now access your miner via the web interface
10. Click the system tab
11. Click Scheduled Tasks
12. Under
*/3 * * * * /usr/bin/cgminer-monitor add the following on the next line
*/5 * * * * /usr/bin/hashcheck13. Click Submit in the bottom right hand corner
That's it. Now your miner will run this script every 5 minutes. If the miner has stopped hashing the script will return a value of 0 causing the miner to reboot automatically.
As long as the miner is hashing the script will return the number 2 and nothing will happen and she will keep chugging away.
To see if the script is running, wait 10 minutes or so then go back to the Status Tab then System Log. Scroll way to the bottom.
You should see a line like this:
Mon Apr 28 16:58:01 2014 cron.info crond[576]: crond: USER root pid 3223 cmd /usr/bin/hashcheck
If you see this at the bottom of the System Log then you know the cron job is running correctly.
I know this has helped me tremendously. I hope it helps you too.
As always if this helped you and you feel so inclined send me a
BTC donation.
I can help anyone too on a personal basis if needed. Send me a PM. I will talk you through it.
MODS This might be one worth pinning. :0)