Bitcoin Forum
May 13, 2024, 07:02:27 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: cgminer 2.8.5 always crash when internet goes down. Script to restart cgminer?  (Read 2369 times)
chungenhung (OP)
Legendary
*
Offline Offline

Activity: 1134
Merit: 1005


View Profile
October 31, 2012, 03:06:07 AM
 #1

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,
1715583747
Hero Member
*
Offline Offline

Posts: 1715583747

View Profile Personal Message (Offline)

Ignore
1715583747
Reply with quote  #2

1715583747
Report to moderator
BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715583747
Hero Member
*
Offline Offline

Posts: 1715583747

View Profile Personal Message (Offline)

Ignore
1715583747
Reply with quote  #2

1715583747
Report to moderator
-ck
Legendary
*
Offline Offline

Activity: 4102
Merit: 1633


Ruu \o/


View Profile WWW
October 31, 2012, 03:22:06 AM
 #2

Upgrade cgminer

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
chungenhung (OP)
Legendary
*
Offline Offline

Activity: 1134
Merit: 1005


View Profile
November 01, 2012, 03:02:28 PM
 #3

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.
juhakall
Sr. Member
****
Offline Offline

Activity: 657
Merit: 250


View Profile WWW
November 02, 2012, 11:39:36 PM
 #4

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.

I'm currently developing an experimental social AI platform
pintycar
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
December 04, 2012, 01:11:54 PM
 #5

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..
bitcoindaddy
Hero Member
*****
Offline Offline

Activity: 481
Merit: 500


View Profile
December 04, 2012, 02:28:40 PM
 #6

Kano posted a script in the cgminer thread that will restart the software.
chewie
Member
**
Offline Offline

Activity: 75
Merit: 10


View Profile
December 06, 2012, 12:38:37 PM
 #7

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.
SistaS0uljah
Newbie
*
Offline Offline

Activity: 43
Merit: 0



View Profile
December 28, 2012, 12:29:58 AM
 #8

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.
crazyates
Legendary
*
Offline Offline

Activity: 952
Merit: 1000



View Profile
December 28, 2012, 02:11:21 AM
 #9

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

Tips? 1crazy8pMqgwJ7tX7ZPZmyPwFbc6xZKM9
Previous Trade History - Sale Thread
SistaS0uljah
Newbie
*
Offline Offline

Activity: 43
Merit: 0



View Profile
December 28, 2012, 11:49:02 PM
 #10

Updated to cgminer 2.10.3 and now all is stable!  No more "SICK" shares, and no re-starts needed!  Thanks a million ckolivas!!
-ck
Legendary
*
Offline Offline

Activity: 4102
Merit: 1633


Ruu \o/


View Profile WWW
December 29, 2012, 12:51:12 AM
 #11

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

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
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!