• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Restarted MN

naruby

Member
My VPS got restarted last night because of a problem with the host.
Dashd started (tx to monit) but wasn't running as masternode.

I need to start the MN via my cold wallet, this should be the case right ?

dash.conf in hot side
Code:
#---- dashd settings
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=256
#---- masternode settings
masternode=1
masternodeaddr=37.139.12.133:9999
masternodeprivkey=xxxxxxxx

2016-03-01 22:10:57 Dash version v0.12.0.56-7154cdf (2016-01-23 11:00:30 +0100)
2016-03-01 22:10:57 Using OpenSSL version OpenSSL 1.0.1k 8 Jan 2015
2016-03-01 22:10:57 Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)
2016-03-01 22:10:57 Default data directory /home/node/.dash
2016-03-01 22:10:57 Using data directory /home/node/.dash
2016-03-01 22:10:57 Using config file /home/node/.dash/dash.conf
2016-03-01 22:10:57 Using at most 256 connections (1024 file descriptors available)
2016-03-01 22:10:57 Using 0 threads for script verification
2016-03-01 22:10:57 Binding RPC on address :: port 9998 (IPv4+IPv6 bind any: 1)
2016-03-01 22:10:57 Creating backup of "/home/node/.dash/wallet.dat" -> "/home/node/.dash/backups/wallet.dat.2016-03-01-22-10"
2016-03-01 22:10:57 Old backup deleted: "/home/node/.dash/backups/wallet.dat.2016-02-21-19-01"
2016-03-01 22:10:57 Using wallet wallet.dat
2016-03-01 22:10:57 init message: Verifying wallet...
2016-03-01 22:10:57 CDBEnv::Open: LogDir=/home/node/.dash/database ErrorFile=/home/node/.dash/db.log
2016-03-01 22:10:57 Bound to [::]:9999
2016-03-01 22:10:57 Bound to 0.0.0.0:9999
2016-03-01 22:10:57 init message: Loading block index...
2016-03-01 22:10:57 Opening LevelDB in /home/node/.dash/blocks/index
2016-03-01 22:10:57 Opened LevelDB successfully
2016-03-01 22:10:57 Opening LevelDB in /home/node/.dash/chainstate
2016-03-01 22:10:58 Opened LevelDB successfully
2016-03-01 22:22:10 CMasternodePaymentWinner::IsValid - Masternode not in the top 10 (689)
2016-03-01 22:22:10 mnw - invalid message - Masternode not in the top 10 (689)
2016-03-01 22:22:10 receive version message: /Dash Core:0.12.0.55/: version 70103, blocks=429066, us=37.139.12.133:34112, peer=15
2016-03-01 22:22:10 Added time data, samples 15, offset -4 (+0 minutes)
2016-03-01 22:22:10 nTimeOffset = +0 (+0 minutes)
2016-03-01 22:22:10 CMasternodePaymentWinner::IsValid - Masternode not in the top 10 (934)
2016-03-01 22:22:10 mnw - invalid message - Masternode not in the top 10 (934)
2016-03-01 22:22:10 CMasternodePaymentWinner::IsValid - Masternode not in the top 10 (865)
2016-03-01 22:22:10 mnw - invalid message - Masternode not in the top 10 (865)
2016-03-01 22:22:10 CMasternodePaymentWinner::IsValid - Masternode not in the top 10 (27)
2016-03-01 22:22:10 mnw - invalid message - Masternode not in the top 10 (27)
2016-03-01 22:11:44 LoadBlockIndexDB: last block file = 10
2016-03-01 22:11:44 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=1588, size=12380254, heights=427425...429009, time=2016-02-27...2016-03-01)
2016-03-01 22:11:44 Checking all blk files are present...
2016-03-01 22:11:44 LoadBlockIndexDB(): transaction index enabled
2016-03-01 22:11:44 LoadBlockIndexDB(): hashBestChain=00000000000c2fb300a1bfc6f7cd801cc6fbd8d765ff03193245f63eb79c1366 height=429009 date=2016-03-01 20:01:32 progress=0.999741
2016-03-01 22:11:44 init message: Verifying blocks...
2016-03-01 22:11:44 Verifying last 288 blocks at level 3
2016-03-01 22:11:46 No coin database inconsistencies in last 289 blocks (1136 transactions)
2016-03-01 22:11:46 block index 49037ms
2016-03-01 22:11:46 init message: Loading wallet...
2016-03-01 22:11:46 nFileVersion = 120056
2016-03-01 22:11:46 Keys: 0 plaintext, 2002 encrypted, 2002 w/ metadata, 2002 total
2016-03-01 22:11:46 wallet 67ms
2016-03-01 22:11:46 init message: Loading masternode cache...
2016-03-01 22:11:47 Loaded info from mncache.dat 311ms
2016-03-01 22:11:47 Masternodes: 3560, peers who asked us for Masternode list: 0, peers we asked for Masternode list: 4, entries in Masternode list we asked for: 21, nDsqCount: 5470
2016-03-01 22:11:47 Masternode manager - cleaning....
2016-03-01 22:11:55 Masternode manager - result:
2016-03-01 22:11:55 Masternodes: 0, peers who asked us for Masternode list: 0, peers we asked for Masternode list: 0, entries in Masternode list we asked for: 0, nDsqCount: 5470
2016-03-01 22:11:55 init message: Loading budget cache...
2016-03-01 22:11:55 Loaded info from budget.dat 296ms
2016-03-01 22:11:55 Proposals: 31, Budgets: 0, Seen Budgets: 17, Seen Budget Votes: 15322, Seen Final Budgets: 0, Seen Final Budget Votes: 0
2016-03-01 22:11:55 Budget manager - cleaning....
2016-03-01 22:11:55 CBudgetManager::CheckAndRemove
2016-03-01 22:11:55 Budget manager - result:
2016-03-01 22:11:55 Proposals: 31, Budgets: 0, Seen Budgets: 17, Seen Budget Votes: 15322, Seen Final Budgets: 0, Seen Final Budget Votes: 0
2016-03-01 22:11:55 init message: Loading masternode payment cache...
2016-03-01 22:11:56 Loaded info from mnpayments.dat 245ms
2016-03-01 22:11:56 Votes: 44145, Blocks: 4459
2016-03-01 22:11:56 Masternode payments manager - cleaning....
2016-03-01 22:11:56 Masternode payments manager - result:
2016-03-01 22:11:56 Votes: 0, Blocks: 0
2016-03-01 22:11:56 IS DARKSEND MASTER NODE
2016-03-01 22:11:56 addr 37.139.12.133:9999
2016-03-01 22:11:56 Locking Masternodes:
2016-03-01 22:11:56 fLiteMode 0
2016-03-01 22:11:56 nInstantXDepth 5
2016-03-01 22:11:56 Darksend rounds 2
2016-03-01 22:11:56 Anonymize Dash Amount 2
2016-03-01 22:11:56 Budget Mode auto
2016-03-01 22:11:56 mapBlockIndex.size() = 429025
2016-03-01 22:11:56 chainActive.Height() = 429009
2016-03-01 22:11:56 setKeyPool.size() = 1000
2016-03-01 22:11:56 mapWallet.size() = 0
2016-03-01 22:11:56 mapAddressBook.size() = 1
2016-03-01 22:11:56 init message: Loading addresses...
2016-03-01 22:11:56 Loaded 19814 addresses from peers.dat 190ms
2016-03-01 22:11:56 AddLocal(37.139.12.133:9999,1)
2016-03-01 22:11:56 Discover: IPv4 eth0: 37.139.12.133
2016-03-01 22:11:56 init message: Done loading
2016-03-01 22:11:56 dumpaddr thread start
2016-03-01 22:11:56 msghand thread start
2016-03-01 22:11:56 opencon thread start
2016-03-01 22:11:56 addcon thread start
2016-03-01 22:11:56 net thread start
2016-03-01 22:11:56 upnp thread start
2016-03-01 22:11:56 dnsseed thread start
2016-03-01 22:11:56 socket recv error Connection reset by peer (104)
2016-03-01 22:11:57 receive version message: /Dash Core:0.12.0.55/: version 70103, blocks=429059, us=37.139.12.133:41187, peer=2
2016-03-01 22:11:57 Added time data, samples 2, offset +0 (+0 minutes)
 
My VPS got restarted last night because of a problem with the host.
Dashd started (tx to monit) but wasn't running as masternode.

I need to start the MN via my cold wallet, this should be the case right ?
Yes, if your VPS/dashd was down for more than ~60mins you need to issue a "masternode start" from your cold wallet. Otherwise the masternode dashd should catch up to where it stopped :)
 
Last edited by a moderator:
I think it was around 2 hours downtime :-<
I hope this was 'beginners luck", I really thought DigitalOcean was a solid provider.
 
I think it was around 2 hours downtime :-<
I hope this was 'beginners luck", I really thought DigitalOcean was a solid provider.
I can't comment on DigitalOcean, but my record downtime on one of my VPS providers is 16hrs - without any notification from their helpdesk :)
 
I think it was around 2 hours downtime :-<
I hope this was 'beginners luck", I really thought DigitalOcean was a solid provider.
I really haven't had any problems with DigitalOcean. Maybe you just had bad luck?

I've installed splawik's MN watch script and run it with cron every 10 minutes and at reboot and it's worked a charm. I haven't missed any payments for months.

Code:
# start dashd if not running
if [ -z `/bin/pidof dashd` ]; then
  /home/nmarley/current_dash/bin/dashd
fi

In my crontab:

Code:
@reboot /home/nmarley/mn-watch.sh
*/10 * * * * /home/nmarley/mn-watch.sh
 
Could you point me in the direction of splawik's MN watch script? Thanks!

Yep:

Code:
# start dashd if not running
if [ -z `/bin/pidof dashd` ]; then
  /home/nmarley/current_dash/bin/dashd
fi

That's it in it's entirety. Replace "/home/nmarley/current_dash/bin/dashd" with the full path to your dashd binary. Call it something like: mn-watch.sh and do as I explained above with the crontab. Replace paths as necessary (e.g. your server won't have an "nmarley" directory).
 
naruby: Just remembered something. Did you set up a swap partition on your DO droplet? They don't do it by default, and it will drop processes (like a modem drops packets) on a 512 MB node if you don't have a swap partition setup.
 
Back
Top