forknote / forknote-pool

Mining pool for Bytecoin/Forknote based coins such as Bytecoin and Dashcoin.
https://github.com/forknote/forknote-pool
GNU General Public License v2.0
123 stars 185 forks source link

Internal Node Error -4 (Error with send_transaction RPC request to wallet daemon) #42

Open cycleworm opened 6 years ago

cycleworm commented 6 years ago

Hi Guys,

after a few days of running all services fine. (forknote daemon, simplewallet rpc, and the nodejs pool) i get an error when the pool wants to make a payout to the clients. (see error below) The max amount should be ok as it is only 1000 coins.

2017-11-19 17:33:31 Error with send_transaction RPC request to wallet daemon {"code":-4,"message":"Internal node error"} 2017-11-19 17:33:31 Payments failed to send to {"amount":1000000000000000,"address":"ErHbYf6zSmdDJni9Zi97u51B4r8u7XAqGibXq83oNgHFHhXBkD3N9qVGRfRmgsRefseXTHXuZdfJ6PSjZENkTyPh65Kov42"}

any ideas why this error occurs and how to solve it? Restarting of all 3 services did not solve the problem.

pmitchev commented 6 years ago

What is the error you got in the daemon?

cycleworm commented 6 years ago

i think that should be the corresponding log of the forknote daemon. (see file)

messages that i read in there. Transaction ... is not valid Transaction uses spent key image ...

RPC Error.txt

pmitchev commented 6 years ago

You probably have this misconfigured in the pool config:

(in blockUnlocker) / Block depth required for a block to unlocked/mature. Found in daemon source as the variable CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW / "depth": 60,

If that's not the problem - if you sync your wallet file in another simplewallet instance, are you seeing the same balance?

cycleworm commented 6 years ago

the depth in my pool config is 10 grafik

and the CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW in my coin config is 40. should i match these two numbers to be the same?

i did not have troubles with auto payouts since the pool is running. which is about 10 days or so. Why does it occur now?

not every payout is failing. maybe about every third time it does the job. the confirmed amount of coins in the wallet is enough. so the payouts should be no problem.

yes a separate insance of simplewallet shows the same balance.

pmitchev commented 6 years ago

depth >= CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW

cycleworm commented 6 years ago

changed the depth. but the error still occurs. only every third or fourth payout works.

cycleworm commented 6 years ago

i stopped the simplewallet on the pool server with was running in rpc mode. then i started the simplewallet manually (no rpc mode) then i typed reset. waited till it was done. saved the wallet and exited it.

then i restarted the daemon, simplewallet in rpc and pool. now pool payouts are working normal again.

it is working now. but thats no solution. i cannot reset the pool wallet every week.

do you have an idea how the wallet got in this bad state in the first place. how can i make sure that the wallet in rpc mode does not get corrupted?

thanks.

pmitchev commented 6 years ago

the problem most likely is related to using the wrong debt. You will not have this problem anymore

PS: if you didn't restarted the pool after you changed the config that must be the problem

cycleworm commented 6 years ago

ok great thx. what is the best way to every now and then save the state of the simplewallet in rpc mode and save the db of the daemon? pipes with commands? or how are you doing that?

madradio commented 6 years ago

@cycleworm I'm getting the same error after sending a few payments. I tried deleting the db, wallet reset and restarted the daemon and pool, but still get the same error.

Did you manage to find any solution to it?

bobbieltd commented 6 years ago

Running simplewallet (no argument) + reset helps me. Thanks cycleworm. For long term solution, I don’t know.

madradio commented 6 years ago

@bobbieltd which version of simplewallet, daemon are you using?

aejontargaryen commented 5 years ago

i hit this error once from config's minimum fee being accidentally set below DRGL network min.