SChernykh / p2pool

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

P2pool not working after upgrade to v2.2 on manjaro linux #184

Closed chasewallis closed 2 years ago

chasewallis commented 2 years ago

Was running v2.0 just fine. Monerod version: 0.17.2.2-release

Below is the command run and the output. p2pool hangs both with and without --mini

The output from v2.0 is identical, but it continues logging where V2.2 just hangs.

   ~/mining/p2pool-v2.2-linux-x64  ./p2pool --host 127.0.0.1 --wallet 4XXXX --mini │ │ 2022-07-05 00:34:59.9538 Log started │ │ 2022-07-05 00:34:59.9549 P2Pool v2.2 (built with GCC/10.3.1 on Jun 30 2022) │ │ 2022-07-05 00:34:59.9553 SideChain network type = mainnet │ │ 2022-07-05 00:34:59.9553 SideChain using default config │ │ 2022-07-05 00:34:59.9553 SideChain pool name = mini │ │ 2022-07-05 00:34:59.9553 SideChain block time = 10 seconds │ │ 2022-07-05 00:34:59.9553 SideChain min diff = 100000 │ │ 2022-07-05 00:34:59.9553 SideChain PPLNS window = 2160 blocks │ │ 2022-07-05 00:34:59.9553 SideChain uncle penalty = 20% │ │ 2022-07-05 00:34:59.9553 SideChain generating consensus ID │ │ 2022-07-05 00:34:59.9553 SideChain consensus ID = 3982c91a****35187ec4 │ │ 2022-07-05 00:34:59.9581 RandomX_Hasher couldn't allocate RandomX dataset using large pages │ │ 2022-07-05 00:34:59.9581 RandomX_Hasher couldn't allocate RandomX cache using large pages │ │ 2022-07-05 00:34:59.9582 RandomX_Hasher couldn't allocate RandomX cache using large pages │ │ 2022-07-05 00:34:59.9582 RandomX_Hasher allocated 2592 MB │ │ 2022-07-05 00:34:59.9583 ConsoleCommands started

bladedoyle commented 2 years ago

This may be related to issue #183. Same symptoms at least. Ensure that monerod is running and already listening on rpc port 18081 before starting p2pool and that may help work around the issue.

SChernykh commented 2 years ago

https://github.com/SChernykh/p2pool/commit/64baf660bb734942270cb711d9beca68c33a6ce2 should fix it, please test.

chasewallis commented 2 years ago

I was starting monero and p2pool in a script at the same time, so #183 does seem to be the same issue. I tested by making sure monerod was ready before running p2pool.

I tested out the suggested branch and it seems to work like before, if monero isn't ready yet, p2pool will wait until it is.

Thanks for the quick reply.