xmrig / xmrig-nvidia

Monero (XMR) NVIDIA miner
GNU General Public License v3.0
700 stars 260 forks source link

error when trying to mine in the background #3

Open ghost opened 7 years ago

ghost commented 7 years ago

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.

xmrig commented 7 years ago

Thank you, I confirm this issue.

AndreaLanfranchi commented 6 years ago

+1

sfichera commented 6 years ago

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

Thanks!!

Maxattax97 commented 6 years ago

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?

j0hnw0rk3r commented 6 years ago

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 commented 6 years ago

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

clarabritt1 commented 6 years ago

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

knikulov commented 6 years ago

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

(
  cd /path/to/miner
  nohup ./xmrig-nvidia > /dev/null 2>&1 & disown
)
kuchaguangjie commented 3 years ago

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

afzl-wtu commented 10 months ago

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

Thanks it worked