miningcore icon indicating copy to clipboard operation
miningcore copied to clipboard

ETH payout bug

Open SsNiPeR1 opened this issue 1 year ago • 7 comments

I can't payout my mined ethers on a private chain [2022-07-11 22:05:49.3346] [I] [PayoutManager] Processing payments for pool resin, block 16124 [2022-07-11 22:05:49.3390] [E] [PayoutManager] [resin] Payment processing failed System.ArgumentNullException: Value cannot be null. (Parameter 'source') at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) at System.Linq.Enumerable.Where[TSource](IEnumerable1 source, Func2 predicate) at Miningcore.Payments.PayoutHandlerBase.UpdateBlockRewardBalancesAsync(IDbConnection con, IDbTransaction tx, IMiningPool pool, Block block, CancellationToken ct) in /root/miningcore/src/Miningcore/Payments/PayoutHandlerBase.cs:line 90 at Miningcore.Blockchain.Ethereum.EthereumPayoutHandler.UpdateBlockRewardBalancesAsync(IDbConnection con, IDbTransaction tx, IMiningPool pool, Block block, CancellationToken ct) in /root/miningcore/src/Miningcore/Blockchain/Ethereum/EthereumPayoutHandler.cs:line 229 at Miningcore.Payments.PayoutManager.<>c__DisplayClass17_1.<<UpdatePoolBalancesAsync>b__4>d.MoveNext() in /root/miningcore/src/Miningcore/Payments/PayoutManager.cs:line 185 --- End of stack trace from previous location --- at Miningcore.Extensions.ConnectionFactoryExtensions.RunTx(IConnectionFactory factory, Func3 action, Boolean autoCommit, IsolationLevel isolation) in /root/miningcore/src/Miningcore/Extensions/ConnectionFactoryExtensions.cs:line 61 at Miningcore.Payments.PayoutManager.UpdatePoolBalancesAsync(IMiningPool pool, PoolConfig poolConfig, IPayoutHandler handler, IPayoutScheme scheme, CancellationToken ct) in /root/miningcore/src/Miningcore/Payments/PayoutManager.cs:line 164 at Miningcore.Payments.PayoutManager.ProcessPoolsAsync(CancellationToken ct) in /root/miningcore/src/Miningcore/Payments/PayoutManager.cs:line 104 at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) at System.Linq.Enumerable.Where[TSource](IEnumerable1 source, Func2 predicate) at Miningcore.Payments.PayoutHandlerBase.UpdateBlockRewardBalancesAsync(IDbConnection con, IDbTransaction tx, IMiningPool pool, Block block, CancellationToken ct) in /root/miningcore/src/Miningcore/Payments/PayoutHandlerBase.cs:line 90 at Miningcore.Blockchain.Ethereum.EthereumPayoutHandler.UpdateBlockRewardBalancesAsync(IDbConnection con, IDbTransaction tx, IMiningPool pool, Block block, CancellationToken ct) in /root/miningcore/src/Miningcore/Blockchain/Ethereum/EthereumPayoutHandler.cs:line 229 at Miningcore.Payments.PayoutManager.<>c__DisplayClass17_1.<<UpdatePoolBalancesAsync>b__4>d.MoveNext() in /root/miningcore/src/Miningcore/Payments/PayoutManager.cs:line 185 --- End of stack trace from previous location --- at Miningcore.Extensions.ConnectionFactoryExtensions.RunTx(IConnectionFactory factory, Func3 action, Boolean autoCommit, IsolationLevel isolation) in /root/miningcore/src/Miningcore/Extensions/ConnectionFactoryExtensions.cs:line 61 at Miningcore.Payments.PayoutManager.UpdatePoolBalancesAsync(IMiningPool pool, PoolConfig poolConfig, IPayoutHandler handler, IPayoutScheme scheme, CancellationToken ct) in /root/miningcore/src/Miningcore/Payments/PayoutManager.cs:line 164 at Miningcore.Payments.PayoutManager.ProcessPoolsAsync(CancellationToken ct) in /root/miningcore/src/Miningcore/Payments/PayoutManager.cs:line 104

SsNiPeR1 avatar Jul 11 '22 19:07 SsNiPeR1

ok now it says npgsql error transaction has completed and no longer usable

SsNiPeR1 avatar Jul 11 '22 20:07 SsNiPeR1

    "persistence": {
        "postgres": {
            ...
            "commandTimeout": 600,

Try adding the commandTimeout and restart the pool.

oliverw avatar Jul 11 '22 21:07 oliverw

    "persistence": {
        "postgres": {
            ...
            "commandTimeout": 600,

Try adding the commandTimeout and restart the pool.

the same. image

SsNiPeR1 avatar Jul 12 '22 08:07 SsNiPeR1

got this fixed by adding more ram.

SsNiPeR1 avatar Jul 14 '22 13:07 SsNiPeR1

got this fixed by adding more ram.

Interesting 🤔

oliverw avatar Jul 14 '22 13:07 oliverw

REOPEN: RAM was not the issue

SsNiPeR1 avatar Jul 14 '22 15:07 SsNiPeR1

The issue is in the database

SsNiPeR1 avatar Jul 14 '22 15:07 SsNiPeR1

Tracked in linked issue.

oliverw avatar Sep 19 '22 11:09 oliverw