Bitcoin Forum
May 06, 2024, 09:05:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Miners terminate after about a day  (Read 790 times)
vvarrior (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 13, 2015, 11: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.
1714986348
Hero Member
*
Offline Offline

Posts: 1714986348

View Profile Personal Message (Offline)

Ignore
1714986348
Reply with quote  #2

1714986348
Report to moderator
1714986348
Hero Member
*
Offline Offline

Posts: 1714986348

View Profile Personal Message (Offline)

Ignore
1714986348
Reply with quote  #2

1714986348
Report to moderator
1714986348
Hero Member
*
Offline Offline

Posts: 1714986348

View Profile Personal Message (Offline)

Ignore
1714986348
Reply with quote  #2

1714986348
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714986348
Hero Member
*
Offline Offline

Posts: 1714986348

View Profile Personal Message (Offline)

Ignore
1714986348
Reply with quote  #2

1714986348
Report to moderator
witch
Sr. Member
****
Offline Offline

Activity: 616
Merit: 250



View Profile
August 13, 2015, 10: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.
philipma1957
Legendary
*
Offline Offline

Activity: 4116
Merit: 7851


'The right to privacy matters'


View Profile WWW
August 14, 2015, 02:24:41 AM
 #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

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
MarkAz
Hero Member
*****
Offline Offline

Activity: 687
Merit: 511



View Profile
August 14, 2015, 03:01:15 AM
 #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).
vvarrior (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 14, 2015, 04:55:39 PM
 #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.
vvarrior (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 17, 2015, 03:27:59 PM
 #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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!