Author

Topic: cgminer 2.8.5 always crash when internet goes down. Script to restart cgminer? (Read 2387 times)

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Updated to cgminer 2.10.3 and now all is stable!  No more "SICK" shares, and no re-starts needed!  Thanks a million ckolivas!!
You're welcome Smiley
newbie
Activity: 43
Merit: 0
Updated to cgminer 2.10.3 and now all is stable!  No more "SICK" shares, and no re-starts needed!  Thanks a million ckolivas!!
legendary
Activity: 952
Merit: 1000
Besides upgrading CGMiner, here's what I did:

I ran 2 .bat files side by side, one ran CGMiner in a loop, and the other would kill cgminer in a loop. When Bitcoinkill.bat would force close CGMiner every hour, the Bitcoin.bat would wait 10 seconds, and then restart it. If everything ran smooth, I'd only lose 10 seconds of mining every hour. If everything went to shit, I'd only lose an hour of mining max.

Bitcoin.bat
Code:
:loop
C:\cgminer\cgminer-fpgaonly.exe -c C:\Users\Crazyates\cgminer.conf
timeout /T 10
goto loop

Bitcoinkill.bat
Code:
:loop
timeout /T 3600
TASKKILL /F /IM "cgminer.exe"
goto loop
newbie
Activity: 43
Merit: 0
I've got the latest cgminer (2.9.6) and in many different machines with different cards it crashes randomly every 24-48 h or so... so there is a problem there. This never happened with the good old 2.4.x ones..
I am using cgminer 2.10.1 and am having exactly the same problem, only mine crashes after about 2 hours an I have to re-start it.  I never had this problem before when using the Phoenix miner, which was rock solid, but when the two pools I use encouraged miners to switch to the stratum protocol, it only made sense to change miners, but I am very frustrated with cgminer due to this instability.
member
Activity: 75
Merit: 10
Anyone one happen to know the link for the script?  I just tried to search for it and it doesn't show.  Thanks in advance.
hero member
Activity: 481
Merit: 500
Kano posted a script in the cgminer thread that will restart the software.
newbie
Activity: 59
Merit: 0
I've got the latest cgminer (2.9.6) and in many different machines with different cards it crashes randomly every 24-48 h or so... so there is a problem there. This never happened with the good old 2.4.x ones..
sr. member
Activity: 658
Merit: 250
Maybe you have ULPS enabled on your graphics card? That can cause the crashes you describe, because the GPU will be powered off when there's no load or display activity. There are plenty of posts about it here.
legendary
Activity: 1134
Merit: 1005
Upgraded to 2.8.7. Will keep an eye on it. But somehow I have a feeling that it will crash too.
I've upgraded from 2.7.5 era, all the way up to 2.8.5. Upgrading on almost every release, and never solved the issue.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
legendary
Activity: 1134
Merit: 1005
Cgminer 2.8.5 always crash for me when internet connection got lost.
This is not 100% sure yet, but I am fairly sure. 3 machines always have cgminer crashing at the same time. Those 3 machines are plugged in at different places.
I read somewhere that someone wrote a script that checks if cgminer has crashed. And if it crashed, close it, and restart it.
The script need to be able to run in Windows.

Thanks,
Jump to: