dashpay / dash

Dash - Reinventing Cryptocurrency
https://www.dash.org
MIT License
1.49k stars 1.2k forks source link

mn freeze #557

Closed poiuty closed 9 years ago

poiuty commented 9 years ago

sometimes MN get freeze => in htop no use cpu https://poiuty.com/img/7b76310c604f81ad50de0d8711a9.png

dash-cli stop or kill -15 => not work only kill -9 => off dashd

2015-08-21 06:33:45 Masternode payment enforcement is disabled, accepting block
2015-08-21 06:33:45 UpdateTip: new best=000000000002261889603a2648bbf0f7ef68a3141e9138a1648db2a1f7e3e3cb  height=322895  log2_work=61.655972  tx=1304340  date=2015-08-21 06:31:43 progress=0.999994  cache=2123
2015-08-21 06:33:45 ProcessNewBlock : ACCEPTED
2015-08-21 06:34:06 CheckBlock() : skipping transaction locking checks
2015-08-21 06:34:06 CMasternodePayments::IsTransactionValid - Missing required payment - XbRhYEyZgHVfyg1QW5SrnD69mPLVWMSfVn
2015-08-21 06:34:06 Invalid mn payment detected CTransaction(hash=fbe60361ae, ver=1, vin.size=1, vout.size=2, nLockTime=0)
    CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 0350ed04062f503253482f04c1c6d65508280000c8000000000d2f6e6f64655374726174756d2f, nSequence=0)
    CTxOut(nValue=4.67421849, scriptPubKey=OP_DUP OP_HASH160 3509b70d6d5e)
    CTxOut(nValue=4.67421830, scriptPubKey=OP_DUP OP_HASH160 bd107665fad2)

2015-08-21 06:34:06 Masternode payment enforcement is disabled, accepting block
2015-08-21 06:34:06 CheckBlock() : skipping transaction locking checks
2015-08-21 06:34:06 CMasternodePayments::IsTransactionValid - Missing required payment - XbRhYEyZgHVfyg1QW5SrnD69mPLVWMSfVn
2015-08-21 06:34:06 Invalid mn payment detected CTransaction(hash=fbe60361ae, ver=1, vin.size=1, vout.size=2, nLockTime=0)
    CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 0350ed04062f503253482f04c1c6d65508280000c8000000000d2f6e6f64655374726174756d2f, nSequence=0)
    CTxOut(nValue=4.67421849, scriptPubKey=OP_DUP OP_HASH160 3509b70d6d5e)
    CTxOut(nValue=4.67421830, scriptPubKey=OP_DUP OP_HASH160 bd107665fad2)

2015-08-21 06:34:06 Masternode payment enforcement is disabled, accepting block
2015-08-21 06:34:06 CheckBlock() : skipping transaction locking checks
2015-08-21 06:34:06 CMasternodePayments::IsTransactionValid - Missing required payment - XbRhYEyZgHVfyg1QW5SrnD69mPLVWMSfVn
2015-08-21 06:34:06 Invalid mn payment detected CTransaction(hash=fbe60361ae, ver=1, vin.size=1, vout.size=2, nLockTime=0)
    CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 0350ed04062f503253482f04c1c6d65508280000c8000000000d2f6e6f64655374726174756d2f, nSequence=0)
    CTxOut(nValue=4.67421849, scriptPubKey=OP_DUP OP_HASH160 3509b70d6d5e)
    CTxOut(nValue=4.67421830, scriptPubKey=OP_DUP OP_HASH160 bd107665fad2)

2015-08-21 06:34:06 Masternode payment enforcement is disabled, accepting block
2015-08-21 06:34:06 UpdateTip: new best=000000000013a073f05526cb3680f2572f5f00edd6e03438fa64f98d5f5e16a0  height=322896  log2_work=61.655975  tx=1304345  date=2015-08-21 06:33:48 progress=0.999999  cache=2128
2015-08-21 06:34:06 CBudgetManager::NewBlock - incremental sync startedCBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::Sync - sent 0 items
2015-08-21 06:34:06 CBudgetManager::CheckAndRemove 
2015-08-21 06:34:06 ProcessNewBlock : ACCEPTED
2015-08-21 06:34:16 CActiveMasternode::ManageStatus() - Checking inbound connection to '---IP---:9999'
2015-08-21 06:42:12 opencon thread interrupt
2015-08-21 06:42:12 addcon thread interrupt
2015-08-21 06:42:12 dumpaddr thread stop
2015-08-21 06:42:21 AppInit2 : parameter interaction: -bind or -whitebind set -> setting -listen=1
2015-08-21 06:42:31 Error: Cannot obtain a lock on data directory /home/dash/data/---IP---. Dash Core is probably already running.
2015-08-21 06:42:31 PrepareShutdown: In progress...
2015-08-21 06:42:31 StopNode()
2015-08-21 06:42:31 Shutdown: done
2015-08-21 07:30:49 AppInit2 : parameter interaction: -bind or -whitebind set -> setting -listen=1
2015-08-21 07:30:59 Error: Cannot obtain a lock on data directory /home/dash/data/---IP---. Dash Core is probably already running.
2015-08-21 07:30:59 PrepareShutdown: In progress...
2015-08-21 07:30:59 StopNode()
2015-08-21 07:30:59 Shutdown: done
2015-08-21 07:49:23 AppInit2 : parameter interaction: -bind or -whitebind set -> setting -listen=1
2015-08-21 07:49:33 Error: Cannot obtain a lock on data directory /home/dash/data/---IP---. Dash Core is probably already running.
2015-08-21 07:49:33 PrepareShutdown: In progress...
2015-08-21 07:49:33 StopNode()
2015-08-21 07:49:33 Shutdown: done
UdjinM6 commented 9 years ago

@poiuty @schinzelh can you guys try this pls and see if it helps or not?

diff --git a/src/activemasternode.cpp b/src/activemasternode.cpp
index 6050a04..3eb23fc 100644
--- a/src/activemasternode.cpp
+++ b/src/activemasternode.cpp
@@ -66,7 +66,7 @@ void CActiveMasternode::ManageStatus()
             return;
         }

-        if(!ConnectNode((CAddress)service, service.ToString().c_str())){
+        if(!ConnectNode((CAddress)service, NULL, true)){
             notCapableReason = "Could not connect to " + service.ToString();
             LogPrintf("CActiveMasternode::ManageStatus() - not capable: %s\n", notCapableReason);
             return;
poiuty commented 9 years ago

Ok. I test it. If dashd freeze => get log https://github.com/poiuty/dashpay.org.ru/commit/5948a22c6bafb9c36377316892082808dfffa57a

poiuty commented 9 years ago

I think => it`s work, no freeze ~1day.

UdjinM6 commented 9 years ago

Should be fixed now