Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when trying to mine in the background #3

Open
ghost opened this issue Aug 21, 2017 · 10 comments
Open

error when trying to mine in the background #3

ghost opened this issue Aug 21, 2017 · 10 comments
Labels

Comments

@ghost
Copy link

ghost commented Aug 21, 2017

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
Copy link
Owner

xmrig commented Aug 21, 2017

Thank you, I confirm this issue.

@AndreaLanfranchi
Copy link

+1

@sfichera
Copy link

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

Thanks!!

@Maxattax97
Copy link

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
Copy link

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
Copy link

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
Copy link

clarabritt1 commented Feb 6, 2018

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
Copy link

knikulov commented Apr 26, 2018

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

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

@kuchaguangjie
Copy link

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

@afzl-wtu
Copy link

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

Thanks it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants