Masternode Instability After 2-4 Weeks of Running
Masternode only stays running for about 2-4 weeks at a time and then becomes unstable. Each time it starts throwing this and then eventually debug logs just stop:
2018-03-15 00:18:56 AcceptToMemoryPoolWorker(),fCheckInputs=true, tx.IsZerocoinSpend()=false, fTestNet=false 2018-03-15 00:18:56 CheckTransaction nHeight=2147483647, isVerifyDB=false, isCheckWallet=true, txHash=99bf26983083790d23eca19c065ff03183a1361525b4907b690b8f87bd0c032c 2018-03-15 00:18:56 txin=CTxIn(COutPoint(ce4b081b02180d799a50c4eeb378c8641d29c0bd682767171fb05e026a5cb02f, 0), scriptSig=4730440220068a6104bd57c1, nSequence=4294967294) 2018-03-15 00:18:56 IsFinalTx tx=99bf26983083790d23eca19c065ff03183a1361525b4907b690b8f87bd0c032c --> FAILED 2018-03-15 00:18:56 AcceptToMemoryPoolWorker --> FAILED 2018-03-15 00:19:13 CZnodeMan::CheckAndRemove 2018-03-15 00:19:13 CZnodeMan::CheckAndRemove -- Znodes: 2683, peers who asked us for Znode list: 0, peers we asked for Znode list: 0, entries in Znode list we asked for: 86, znode index size: 2753, nDsqCount: 0 2018-03-15 00:19:13 CZnodePayments::CheckAndRemove -- Votes: 55695, Blocks: 5013 2018-03-15 00:19:23 AcceptToMemoryPool(), fCheckInputs=true 2018-03-15 00:19:23 AcceptToMemoryPoolWorker(),fCheckInputs=true, tx.IsZerocoinSpend()=false, fTestNet=false 2018-03-15 00:19:23 CheckTransaction nHeight=2147483647, isVerifyDB=false, isCheckWallet=true, txHash=02e8992db1701d006b9f8159ed00c275ee341d188239a2e18e7d66d69a182cdd 2018-03-15 00:19:23 txin=CTxIn(COutPoint(8394d68a59079a11dfba19ec9677ac0b00f2e0b4e2057e149bd65e5bcf347177, 0), scriptSig=483045022100d3a453c50ffd, nSequence=4294967294) 2018-03-15 00:19:23 IsFinalTx tx=02e8992db1701d006b9f8159ed00c275ee341d188239a2e18e7d66d69a182cdd --> FAILED 2018-03-15 00:19:23 AcceptToMemoryPoolWorker --> FAILED 2018-03-15 00:20:14 CZnodeMan::CheckAndRemove 2018-03-15 00:20:14 CZnodeMan::CheckAndRemove -- Znodes: 2683, peers who asked us for Znode list: 0, peers we asked for Znode list: 0, entries in Znode list we asked for: 86, znode index size: 2753, nDsqCount: 0 2018-03-15 00:20:14 CZnodePayments::CheckAndRemove -- Votes: 55695, Blocks: 5013 2018-03-15 00:21:14 CZnodeMan::CheckAndRemove 2018-03-15 00:21:14 CZnodeMan::CheckAndRemove -- Znodes: 2683, peers who asked us for Znode list: 0, peers we asked for Znode list: 0, entries in Znode list we asked for: 86, znode index size: 2753, nDsqCount: 0 2018-03-15 00:21:14 CZnodePayments::CheckAndRemove -- Votes: 55695, Blocks: 5013 2018-03-15 00:21:42 AdvertiseLocal: advertising address 45.32.166.53:8168 2018-03-15 00:22:09 connect() to [2600:8800:2c86:4e00:18e9:569d:243e:8a25]:8168 failed: Network is unreachable (101) 2018-03-15 00:22:09 AcceptToMemoryPool(), fCheckInputs=true 2018-03-15 00:22:09 AcceptToMemoryPoolWorker(),fCheckInputs=true, tx.IsZerocoinSpend()=false, fTestNet=false 2018-03-15 00:22:09 CheckTransaction nHeight=2147483647, isVerifyDB=false, isCheckWallet=true, txHash=b2f5e33392a94d7cbe2209dd9ce87ab5eec3cb6fa818fa632c6fecda2a2031ab 2018-03-15 00:22:09 txin=CTxIn(COutPoint(ee375d7829c44b74d672e2344ae4f91657cd532bbe792b6dc2427a19cbc9c442, 1), scriptSig=483045022100c2e3195dbf19, nSequence=4294967294) 2018-03-15 00:22:09 IsFinalTx tx=b2f5e33392a94d7cbe2209dd9ce87ab5eec3cb6fa818fa632c6fecda2a2031ab --> FAILED 2018-03-15 00:22:09 AcceptToMemoryPoolWorker --> FAILED
This wouldn't be a huge issue if it were a regular node, but every time this happens it take another week or so to get the masternode re-activated which results in a substantial payout loss.
Is anything else seeing this and is there a solution?
Let me know if you need any additional information.
i got the same actually which throw me out auf the queue twice already, so i already lost two payments. Super annoying.
Im just curious - if this happens, what does wallet or "cli znode status" say? Is there anything that indicates that the znode went out, or is it just logs?
Hi @oti-dev ,
The status seems to be alright:
{
"vin": "CTxIn(COutPoint(xxxxx, 1), scriptSig=)",
"service": "x.x.x.x:8168",
"payee": "xxxxx",
"status": "Znode successfully started"
}
Although, if i check through znodestatus.privex.io it says not qualified for payout. This happened already two times within the past weeks and i always needed to restart / resync the node to get it working again, which unfortunately causes a loss of its position in the queue.
It's interesting.. I'd like to know how privex judges if a node is qualified or not then.
@oti-dev so would i, more interesting is that the wallet also said new restart required but the node was still in "znode successfully started" mode!
@outragedhuman are you still facing the same issue?
There also are 'last seen' timestamp and 'active' time (IIRC any znode can be queried for a full list of all znodes and these informations) - perhaps your znode becomes invisible to the network, and other znodes stop talking to it. I guess that might be the way privex (and other such sites) decide whether the znode is qualified or not.
Personally I'd recommend live polling the state of the znodes you're maintaining - watch the active time, number of blocks, last seen timestamp, rank and the status. I've been doing this with several znodes for 2 months now and it's been accurate so far. The more data you collect the more up to date you are.
@oti-dev thanks for the detailed input - highly appreciated! This data you are pulling through the RPC API over HTTP, right?
Also it is a good idea to keep an eye on the debug.log file
Actually I'm using ssh to invoke cli locally on the znode server - it's generally not advisable to accept RPC calls from external IP's (e.g. other than localhost).
You're right - I don't watch the debug.log right now, but perhaps I should. I just didn't implement that because I found it difficult to filter out the messages not related to znode 'health'. I guess I'd look there once something goes wrong (hasn't yet).
@oti-dev I see, make sense. Any idea how websites such like masternodes.online are receiving the status then? Or do they run their own node per coin so they are able to check?
Thank You!
@oti-dev actually processing the debug.log file and filtering it makes sense.. you can just listen on certain log levels such like failure
Yeah I guess they actually run a regular nodes of each cryptocurrency and thus are able to query list of all masternodes and their state - I don't see any other viable way of doing this.
I'm no expert though
@soerenmartius Yes, these sites do run their own nodes. Privex certainly does. You can check what exactly they are doing in their GitHub repo: https://github.com/Privex/znode-status
@outragedhuman Does this problem persist? It seems to me it could have been related to the block stuck issues we've been seeing in versions <0.13.5.8
Can this be closed now . . @outragedhuman ?
Closing first. If still an issue, please reopen.