You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing monero-gui and p2pool from the official repositories on Arch/Manjaro Linux,
then p2pool will run into permission issues.
This happens because:
The monero-gui and p2pool packages are installed in the /usr/bin/ folder,
to which only the root user has write access, not the currently logged in user!
The P2PoolManager of monero-gui launches p2pool with the same working directory as what the monero-gui is using.
So /usr/bin/ is being used as the working directory for p2pool, see:
Alter the P2PoolManager to launch p2pool under a different working directory when running on Linux.
Reproduction steps
Install the monero, monero-gui and p2pool packages on Arch/Manjaro from the Official Repositories (community)
Run the monero-gui as the logged in user from CLI with:
QT_QPA_PLATFORMTHEME=qt5ct monero-wallet-gui %u
Start mining with p2pool through the monero-gui(Configured in the dropdown)
Monitor the permission issues in the CLI output
At the start:
After a while of running:
The monero-gui stays stuck with Network Status Connected + Mining and Mining Status Starting P2Pool
Note
When starting p2pool manually from CLI as following,
then none of these permission issues occur
# Move to a directory where the currently logged in user has write-permissionscd~# Run p2pool
p2pool
# Stop p2pool with CTRL+C and check if the p2pool.log file got created
ls -alh ~| grep p2pool.log
With above change,
the m_p2poold->setWorkingDirectory(m_p2poolPath); line of the P2PoolManager::start() function,
should initialize the p2pool process under a write-able p2pool directory,
inside the already existing ~/.bitmonero folder.
However I didn't check the other occurrences/usages of m_p2poolPath in the rest of the P2PoolManager thoroughly.
To prevent breaking anything, it might be good to introduce a new variable for this, e.g. m_p2poolWorkingDir,
Issue Description
When installing
monero-gui
andp2pool
from the official repositories on Arch/Manjaro Linux,then
p2pool
will run into permission issues.This happens because:
monero-gui
andp2pool
packages are installed in the/usr/bin/
folder,to which only the
root
user has write access, not the currently logged in user!P2PoolManager
ofmonero-gui
launchesp2pool
with the same working directory as what themonero-gui
is using.So
/usr/bin/
is being used as the working directory forp2pool
, see:monero-gui/src/p2pool/P2PoolManager.cpp
Line 235 in b7ba943
monero-gui/src/p2pool/P2PoolManager.cpp
Line 192 in b7ba943
Fix Proposal
Alter the
P2PoolManager
to launchp2pool
under a different working directory when running on Linux.Reproduction steps
monero
,monero-gui
andp2pool
packages on Arch/Manjaro from the Official Repositories (community)monero-gui
as the logged in user from CLI with:p2pool
through themonero-gui
(Configured in the dropdown)monero-gui
stays stuck with Network StatusConnected + Mining
and Mining StatusStarting P2Pool
Note
When starting
p2pool
manually from CLI as following,then none of these permission issues occur
Environment
Linked issues
The text was updated successfully, but these errors were encountered: