Author

Topic: Automatic RESTART script when GPU fails - NVIDIA EWFB miner (Read 712 times)

full member
Activity: 265
Merit: 100
Ow damn what a noob mistake, thanks for clearing that up.
I don't use the config file. I'm using a .bat file.

I have another question, whats the purpose of the Solver option? And should i use this in my .bat file ?

full member
Activity: 258
Merit: 100
If you are using a config file in EWBF miner then you will need to set the eexit Parameters in the config file. Because settings in config file takes precedence than the setttjng in bat file.
full member
Activity: 405
Merit: 136
If i'm using above codes, i get ERROR CANNOT CONNECT TO POOL on both of them?
This is my setting

Code:
setx GPU_FORCE_64BIT_PTR 1
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100
echo off
timeout /t 10
:startmnr
echo %date% - %time% start mining >> log.txt
miner --server btg.suprnova.cc --port 3333 --user Pr0ph3t.1 --pass x --cuda_devices 0 1 2 3 4 5 --eexit 3 --log 2
echo %date% - %time% miner error >> log.txt
echo %date% - %time% restart miner... >> log.txt
goto startmnr
pause

you use incorrect port for btg.suprnova. Port 3333 is for flypool zcash. check correcet settings at suprnove getting started page. It should be port 8816 for Bitcoin gold.
Also you don't need to setx environment variables each time you start miner. 'setx' command set variables forever (in contrast 'set' command set variables till reboot)
full member
Activity: 265
Merit: 100
If i'm using above codes, i get ERROR CANNOT CONNECT TO POOL on both of them?
This is my setting

Code:
setx GPU_FORCE_64BIT_PTR 1
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100
echo off
timeout /t 10
:startmnr
echo %date% - %time% start mining >> log.txt
miner --server btg.suprnova.cc --port 3333 --user Pr0ph3t.1 --pass x --cuda_devices 0 1 2 3 4 5 --eexit 3 --log 2
echo %date% - %time% miner error >> log.txt
echo %date% - %time% restart miner... >> log.txt
goto startmnr
pause
full member
Activity: 405
Merit: 136
The examples will only help if the miner crash.
I'm also use the similar code (EWBF examplee):
Code:
echo off
timeout /t 45
:startmnr
echo %date% - %time% start mining >> log.txt
miner --server SERVER --port PORT --user YOUR_WALLET --pass YOUR_PASSWORD --cuda_devices DEVICES --eexit 3 OTHER_MINING_SETTINGS
echo %date% - %time% miner error >> log.txt
echo %date% - %time% restart miner... >> log.txt
goto startmnr
pause
But It could happened the issue when only rig reboot is required. In this case the following opensource utility will help: https://github.com/Dimasin/fermtools/releases
Simple settings alows to soft reboot your rig if a GPU hung
full member
Activity: 378
Merit: 135
I have this problem too. I followed steps mentioned in below blog. Tried first in the command line, didn’t work. Then I just configured the same in config file and monitoring if that works.

You may want to go thru below link

https://steemit.com/mining/@ploh/mining-zcash-guide-gtx-1070-44x-sol-s-with-restart-stopped-gpu-code-46


Code:
:restart
TIMEOUT 8

miner --server eu1-zcash.flypool.org --port 3333 --user t1UecXTCCwJ7JqbQDL2SqzmRGQeNYvXT2Zr.rig0 --pass x --eexit 3 --log 2 --logfile ZCASH.%date:~6,4%%date:~3,2%%date:~0,2%.ewbf.log --pec

goto :restart


I was also looking for this exact string the other day. Thank you for posting it.  Looks like it should work fine just changhing the pool and address to your own.  What is the ~0,2%.ewbf.log --pec command?
full member
Activity: 258
Merit: 100
Original bat file that you use to mine. Basically eexit terminates the miner program in case of an error. Hence next command I.e goto command executed and transfer control back to the label which is in the top of the bat file. So it’s goes on a loop.
full member
Activity: 265
Merit: 100
Is this put in a seperate .bat file, named reboot or restart?
Or to put in your original miner.bat file ?
full member
Activity: 258
Merit: 100
I have this problem too. I followed steps mentioned in below blog. Tried first in the command line, didn’t work. Then I just configured the same in config file and monitoring if that works.

You may want to go thru below link

https://steemit.com/mining/@ploh/mining-zcash-guide-gtx-1070-44x-sol-s-with-restart-stopped-gpu-code-46


Code:
:restart
TIMEOUT 8

miner --server eu1-zcash.flypool.org --port 3333 --user t1UecXTCCwJ7JqbQDL2SqzmRGQeNYvXT2Zr.rig0 --pass x --eexit 3 --log 2 --logfile ZCASH.%date:~6,4%%date:~3,2%%date:~0,2%.ewbf.log --pec

goto :restart

full member
Activity: 265
Merit: 100
Which settings should i use to make a .bat file, that gets executed when GPU fails or with 0 kh/s and restart in miner won't work?
Thank you
Jump to: