Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665534 - net-p2p/xmr-stak-{2.4.5,2.4.7} anomalous interaction with systemd failure
Summary: net-p2p/xmr-stak-{2.4.5,2.4.7} anomalous interaction with systemd failure
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-09 04:50 UTC by Dillon
Modified: 2022-05-23 23:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patching fixing unit file (xmr-stak.service.patch,927 bytes, patch)
2018-09-09 04:51 UTC, Dillon
Details | Diff
xmr-stak cpu config (cpu.config,654 bytes, text/x-csrc)
2018-09-09 04:52 UTC, Dillon
Details
xmr-stak gpu config (nvidia.config,227 bytes, text/plain)
2018-09-09 04:52 UTC, Dillon
Details
xmr-stak main config (main.config,354 bytes, text/plain)
2018-09-09 04:53 UTC, Dillon
Details
xmr-stak pool config (pools.txt,325 bytes, text/plain)
2018-09-09 04:55 UTC, Dillon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dillon 2018-09-09 04:50:01 UTC
The xmr-stak ebuild creates a sandbox for xmr-stak using systyemd. In the default configuration the xmr-stak.service unit file creates an error (amdgpu,nvidia). When the sandboxing features are disabled, and xmr-stak is instead given it's own user, then it's able to initialize the cuda/opencl drivers. 

Upon repeat invocations(even after clearing and reloading the unit file) xmr-stak.service will continue to operate properly until the nvidia driver is removed and reinserted.

Reproducible: Always

Steps to Reproduce:
1.systemctl start xmr-stak
2.see failure
3.patch systemd unit to give xmr-stak it's own user/remove extra sandboxing
4.normal behaviour
Actual Results:  
Sep 09 00:35:24 undyne xmr-stak[15634]: WARNING: NVIDIA Unable to query number of CUDA devices!
Sep 09 00:35:24 undyne xmr-stak[15634]: WARNING: NVIDIA no device found
Sep 09 00:35:24 undyne xmr-stak[15634]: [2018-09-09 00:35:24] : WARNING: backend NVIDIA disabled.

Expected Results:  
Sep 09 00:31:04 undyne xmr-stak[3471]: [2018-09-09 00:31:04] : Starting NVIDIA GPU thread 0, no affinity.

I've tried individually individually disabling each of the options in the unit file and I can't seem to narrow it down to a single option that's causing the failure. The only thing that seems consistent is replacing DynamicUsers with User=foo is required for this to work
Comment 1 Dillon 2018-09-09 04:51:04 UTC
Created attachment 546320 [details, diff]
Patching fixing unit file
Comment 2 Dillon 2018-09-09 04:52:05 UTC
Created attachment 546322 [details]
xmr-stak cpu config
Comment 3 Dillon 2018-09-09 04:52:42 UTC
Created attachment 546324 [details]
xmr-stak gpu config
Comment 4 Dillon 2018-09-09 04:53:15 UTC
Created attachment 546326 [details]
xmr-stak main config
Comment 5 Dillon 2018-09-09 04:55:05 UTC
Created attachment 546328 [details]
xmr-stak pool config

Demonstration purposes, you would have to enter your address before this file would work
Comment 6 Dillon 2022-05-23 23:13:27 UTC
removed from portage