SChernykh / p2pool

Decentralized pool for Monero mining
GNU General Public License v3.0
1.03k stars 123 forks source link

Various P2Pool questions #290

Closed nemomaximus closed 7 months ago

nemomaximus commented 7 months ago

I have my P2Pool service up and running, but I have some questions to be able to fine tune my installation.

SChernykh commented 7 months ago

--data-api /p2pool/data Double check that you provide the correct absolute path to the folder. When you start P2Pool as a service, it's not guaranteed that it will be in the correct working folder. You have to run some web-server to display the contents of JSON files. You can check https://github.com/SChernykh/p2pool/tree/master/docs/html

P2Pool can run with restricted RPC.

SChernykh commented 7 months ago

Huge pages = 3072 should be enough to run both monerod and p2pool. If there are not enough huge pages, they will still run, but a bit slower.

status command only prints what's already available in JSON files, so you can use JSON files to get this information.

nemomaximus commented 7 months ago
SChernykh commented 7 months ago

p2pool.log is created in the current directory. You can create a script that changes directory to what you want and then starts p2pool. Regarding /p2pool/data issues, it's something wrong with file permissions. You should run something like chown -R p2pool:p2pool /p2pool and then chmod -R 0644 /p2pool

nemomaximus commented 7 months ago

I finally got it to work and all files/directories created by the service for --data-api is now there as they should :)

These are the commands that made it all work:

mkdir /p2pool
mkdir /p2pool/bin
mkdir /p2pool/data
chown -R p2pool:p2pool /p2pool
chmod -R 0644 /p2pool
chmod 0744 /p2pool
chmod 0744 /p2pool/bin
chmod 0744 /p2pool/data 
chmod u+x /p2pool/bin/p2pool

Thanks for the help!

nemomaximus commented 7 months ago

Another question :) What is the difference between the log levels (0-6)?

Is there any documentation what to expect in the log file depending on the setting?

Currently have it set to 3 and there is a lot of output from that.

SChernykh commented 7 months ago

Lower log level shows only the most important messages and errors. The higher log level is, the more messages you will get in the log.