KlausT / ccminer

Software for mining various cryptocoins
GNU General Public License v3.0
403 stars 312 forks source link

[Neoscrypt] Miner stops share submission after several hours #62

Open YetAnotherRussian opened 7 years ago

YetAnotherRussian commented 7 years ago

Hi. I'm using your Windows build 8.13 on Win10 and driver ver. 385.41 (and several previous ones).

Launch params: ccminer -a neoscrypt -d 0 -o stratum+tcp://... -u ... -p ...

H/w: several 1080Ti rigs and several 1050 rigs (non-Ti).

After several hours of work (5-6 hours I guess) miner stops to recieve new blocks, and just logs hashrate. No shares, no stratum info. Pool stats show I'm not there. Miner doesn't crash or display any errors. Yes, I've tried several different pools (Yiimp and non-Yiimp), but this doesn't make sense.

I gues it's your version issue possibly, as there's no issues with tpruvot versions (2.1/2.2 releases and CUDA9 2.2.1 builds). Thanks.

KlausT commented 7 years ago

This happens when your connection is interrupted. ccminer doesn't always recognize the connection loss. I will see what I can do about it.

dangitsdavid commented 7 years ago

You can add

:loop start ccminer ... the rest of your ccminer batch file timeout /t 3600 (the 3600 is in seconds, so that would be 3600 = 3600 seconds = 1 hour) taskkill /f /im ccminer.exe >nul goto loop

That will restart your miner every hour and temporarily fix the connection dropping issue. Sometimes my miner disconnects after 15 minutes due to connection being interrupted, so I set it at 1800 (30 minutes).

FuSeNoob13 commented 7 years ago

I have the same problem after 1 hour or less it's stops sending shares and I tried what dangitsdavid suggested but or I failed to do it right or it doesn't work. coul you guys help me?

dangitsdavid commented 7 years ago

@FuSeNoob13

Try adding

:loop start ccminer -a youralgorithm -o stratum+tcp://yourpool.yourpoolsite.org:4560 -u YOURUSERNAME.MINER -p x timeout /t 1200 taskkill /f /im ccminer.exe >nul goto loop

To your batch file. This should restart your miner every 20 minutes. What does not work for you? I had a cheap USB wifi stick, but I switched to a TP-Link PowerLine and ethernet to help improve my network connection stability and prevent any network interruptions.

FuSeNoob13 commented 7 years ago

it seems to work now thanks

kiLLeen commented 7 years ago

I use YIIMP and I would like to use your ccminer for my multi-algorithm script. Unfortunately, I cannot put it in my script. The YIIMP pool sends a FIN packet when another algorithm is more profitable for me. When this happens, this miner does not close and just continues without submitting shares. I have a pretty good feeling this is related.

kiLLeen commented 7 years ago

Also related: #57

lyolyalya commented 7 years ago

yiimp doesn't support multialgo switching.

kiLLeen commented 7 years ago

You must be referring to yiimp.eu. I'm referring to yiimp the webapp based on yaamp

kiLLeen commented 7 years ago

The reproduction steps are in the ticket I linked

KlausT commented 7 years ago

Looks like I have found the bug that has prevented a reconnect after a connection loss. https://github.com/KlausT/ccminer/commit/3596c1c5dd46675cd54ddd1c33de60cb4d2a566e New binaries for Windows will come soon, I think.

kazdim commented 7 years ago

Waiting on new CUDA 9 build with impatience. I have the same proplem on myr-gr algo.