xmrig-nvidia icon indicating copy to clipboard operation
xmrig-nvidia copied to clipboard

error when trying to mine in the background

Open ghost opened this issue 6 years ago • 10 comments

Hello, On ubuntu 16.04 Miner works fine only when 'background:false' in the config file. when changing to 'background:true' I get the following error: GPU 0: initialization error /home/user/xmrig-nvidia/src/nvidia/cuda_extra.cu line 342 Setup failed for GPU 0. Exitting.

ghost avatar Aug 21 '17 15:08 ghost

Thank you, I confirm this issue.

xmrig avatar Aug 21 '17 16:08 xmrig

+1

AndreaLanfranchi avatar Oct 05 '17 12:10 AndreaLanfranchi

Same problem here... Do you have any news about this one?

Thanks!!

sfichera avatar Oct 27 '17 17:10 sfichera

Mine is very similar. Also occurs only when adding the -B flag.

GPU 0: initialization error
cuda_get_deviceinfo line 302
Setup failed for GPU 0. Exitting.

Any updates on this?

Maxattax97 avatar Dec 07 '17 21:12 Maxattax97

Same problem here. And I don't want to keep my shell open all the time when mining just to keep running. Any update on this issue?

j0hnw0rk3r avatar Dec 12 '17 13:12 j0hnw0rk3r

Well, since no update at all. I did a tweak that works: xmrig-nvidia -B -l log-file-name -o stratum_url -u wallet_address -p x 2>&1 1> /dev/null

Notice in the last portion I added 2>&1 1> /dev/null - this will run the code in the background thus keeping all the logs on the log-file-name specified

j0hnw0rk3r avatar Dec 12 '17 13:12 j0hnw0rk3r

nano run.sh and insert ./xmrig-nvidia save and close chmod +x run.sh

and use nohup ~/xmrig-nvidia/build/run.sh

alternatively you can use ./run.sh & disown

for me its working

clarabritt1 avatar Feb 06 '18 06:02 clarabritt1

My solution is to write /etc/rc.local as follows:

(
  cd /path/to/miner
  nohup ./xmrig-nvidia > /dev/null 2>&1 & disown
)

knikulov avatar Apr 26 '18 19:04 knikulov

My solution is to specify the config file explicitly. e.g ./xmrig -c config.json -B

kuchaguangjie avatar May 25 '21 21:05 kuchaguangjie

My solution is to specify the config file explicitly. e.g ./xmrig -c config.json -B

Thanks it worked

afzl-wtu avatar Nov 12 '23 15:11 afzl-wtu