jtgrassie / monero-pool

A Monero mining pool server written in C
BSD 3-Clause "New" or "Revised" License
344 stars 125 forks source link

pool.c:1615: Request failure. Aborting. #119

Closed msgol closed 2 years ago

msgol commented 2 years ago

Hi

I did follow the guide, built everything, both Daemon and Wallet-RPC, disabled restricted mode. Yet i get pool.c:1615: Request failure. Aborting. What did i do wrong? version miss match?

Thanks

OlMi1 commented 2 years ago

How'd you fix it? Same problem.

msgol commented 2 years ago

Wallet-RPC was not working right, the service would start and show running but later on the service would die. I think changing walletRPC port back to rpc-bind-port=28088 fixed it.

OlMi1 commented 2 years ago

Can confirm that. The issue is not really that it does not work but rather that it takes ages to start, making the pool throw errors I fixed that by creating a start bash file which waits 10s;

  1. Start node
  2. Wait 10s
  3. Start wallet
  4. Wait 10s
  5. Start pool
msgol commented 2 years ago

Yes that too, you could also do Restart=always in your systemctl config file if you hate wait like me. also use After=monerod.service. Here my working one if it helps:

[Unit] Description=Monero wallet rpc After=monerod.service

[Service] User=monero Group=monero WorkingDirectory=~ RuntimeDirectory=monero

Type=forking PIDFile=/run/monero/monerowallet.pid

ExecStartPre=/bin/sleep 30 #restart always fixed it no need for this

ExecStart=/usr/local/bin/monero-wallet-rpc --config-file /etc/monerowallet.conf --pidfile /run/monero/monerowallet.pid

Restart=always

[Install] WantedBy=multi-user.target