Author

Topic: Miners terminate after about a day (Read 795 times)

newbie
Activity: 3
Merit: 0
August 17, 2015, 10:27:59 AM
#6
I created a script to check for the cgminer process, checkminer.sh:
Code:
#!/bin/bash
ps cax | grep cgminer > /dev/null
if [ $? -eq 1 ]; then
/bin/bash /root/launchminer.sh
fi

Then created launchminer.sh:
Code:
#!/bin/bash
screen -dmS cgminer sudo /root/cgminer/cgminer --bmsc-options 115200:0.57 -o stratum+tcp://solo.ckpool.org:3333 -u [mybtcaddress] -p x  --bmsc-voltage 0800 --bmsc-freq 1286

then using crontab run the script every minute:
Code:
1 * * * * /bin/bash /root/checkminer.sh

Seems to be working to keep the miners online.
newbie
Activity: 3
Merit: 0
August 14, 2015, 11:55:39 AM
#5
cd /root/cgminer
screen -dmS cgminer sudo ./cgminer --bmsc-options 115200:0.57 -o stratum+tcp://solo.ckpool.org:3333 -u btcaddress.0 -p x --bmsc-voltage 0800 --bmsc-freq 1286

in rc.local

I'm wondering if minera would be a better Raspberry Pi platform to use instead of raspbian and using the auto-reconnect/reboot feature. I tried loading minera but I didn't spend enough time on it to get it running.
hero member
Activity: 687
Merit: 511
August 13, 2015, 10:01:15 PM
#4
Although it's a dirty hack - if your shell script waits on the exit of cgminer, you could just add a "sudo reboot" to it, and your PI will automatically restart and get going again.  Or you could change your shell script to look for the cgminer process, and respawn it when it disappears (this is what the S5 does, and the next version of my A2 firmware).
legendary
Activity: 4326
Merit: 8899
'The right to privacy matters'
August 13, 2015, 09:24:41 PM
#3
I am a new miner, FYI.
Will the screen command time out after a certain amount of time or is my controller shutting down the process?

I managed to get two U3 miners online controlled by a raspberry pi b+ with the screen command. It's happened twice where both miners go offline after about a day of mining. I've set the miners to execute from command line with screen in rc.local using cgminer.
Yesterday I executed screen -x cgminer and left it on in the terminal only to find later both were offline. The terminal window said screen cgminer terminated. I rebooted and both miners came back on.

this is a common u3 issue
sr. member
Activity: 616
Merit: 250
August 13, 2015, 05:34:01 PM
#2
I am a new miner, FYI.
Will the screen command time out after a certain amount of time or is my controller shutting down the process?

I managed to get two U3 miners online controlled by a raspberry pi b+ with the screen command. It's happened twice where both miners go offline after about a day of mining. I've set the miners to execute from command line with screen in rc.local using cgminer.
Yesterday I executed screen -x cgminer and left it on in the terminal only to find later both were offline. The terminal window said screen cgminer terminated. I rebooted and both miners came back on.
I have a U3 and it is on a windows Desktop, I have to unplug the USB for it to start hashing again. Shutting cgminer down does not get it Hashing again.
newbie
Activity: 3
Merit: 0
August 13, 2015, 06:28:02 AM
#1
I am a new miner, FYI.
Will the screen command time out after a certain amount of time or is my controller shutting down the process?

I managed to get two U3 miners online controlled by a raspberry pi b+ with the screen command. It's happened twice where both miners go offline after about a day of mining. I've set the miners to execute from command line with screen in rc.local using cgminer.
Yesterday I executed screen -x cgminer and left it on in the terminal only to find later both were offline. The terminal window said screen cgminer terminated. I rebooted and both miners came back on.
Jump to: