monero-project / monero-gui

Monero: the secure, private, untraceable cryptocurrency
Other
1.75k stars 770 forks source link

P2pool miner not working shows Connected+Mining(Linux Pop!_OS 22.04 LTS) #4022

Open XOverMindX opened 2 years ago

XOverMindX commented 2 years ago

Fresh install full chain all default settings no start up flags works when solo mining Hangs on Starting P2Pool while showing a Connected+Mining for network status but no hash rate is displayed and no CPU activity

image

selsta commented 2 years ago

How did you install monero-gui?

XOverMindX commented 2 years ago

through the pop store

selsta commented 2 years ago

Quite sure p2pool only works when downloading from getmonero.org, getting it to work with package managers will be complicated.

XOverMindX commented 2 years ago

copy if i get it to work i'll post a Pop user how to here.

selsta commented 2 years ago

monero-gui downloads the p2pool binary into the same dir as the monero-gui binary. So check if it is there and also check if the permission/owner is set correctly.

BigmenPixel0 commented 2 years ago

I think, you installed monero-gui via flatpak (pop store), so you should use --data-api option in the p2pool startup flags.

hsmalley commented 1 year ago

I think, you installed monero-gui via flatpak (pop store), so you should use --data-api option in the p2pool startup flags.

I'm using the flatpak version installed from flathub. Having the same problem as OP. According to the mouse over it says path to the p2pool JSON file? I can't seem to find the json to point --data-api at. Maybe I'm just missing something in the documentation? When I use the solo option everything works correctly

EDIT_1: I saw a closed issue (#4001) and tried doing the suggested user override to a folder in my home. So I created the path. After doing --data-api "/home/MYUSER/monero/api" on the p2pool startup flags. I didn't get anywhere with that. Looking over the monero documentation on the website relating to p2pool I did not see that option listed. Again, I could be missing something completely obvious.

EDIT_2: I gave the flatpak full access to my home. It started using $HOME/.bitmonero in my home rather than the flatpak. I symlinked the it to the flatpak path. Not sure if that's desired behavior or not.

I also set log level to 4 and I've been tailing the logs watching it come up. I 've also had a tail piped into grep looking for "p2p|fail|err|war" and I'm not seeing anything that would indicate a problem. If you want/need the logs let me know what level you want it set to and I'll upload them.

EDIT_3: Running p2pool manually seems works correctly. I tried the version bundled with the flatpak and downloading the latest version. I'm not seeing any logs produced for it when trying to start it from the monero gui though.