Sentinel Easy Installation Guide – For VIVO Masternodes
You must install Sentinel. Sentinel is a watchdog for your node which communicates to the network that your node is working properly.
Before starting the steps make sure to restart your masternode with reindex so you are using the fresh blockchain. Delete mncache.dat and mnpayments.dat from your vivocore folder before reindexing.
cd .vivocore // Your Vivocore folder
./vivod -daemon -reindex
Wait for the full resync to the latest block. You can check regularly with
Once your wallet is fully synced you are now ready to follow the steps below. If you are running your masternodes on Linux you can now skip to Step 1) and start installing prerequisites.
sudo apt-get update
sudo apt-get install -y git python-virtualenv
git clone https://github.com/vivocoin/sentinel.git
Step 3) Create virtual python environment
If this command fails try installing this package:
sudo apt-get install -y virtualenv
Step 4) Install sentinel dependencies
venv/bin/pip install -r requirements.txt
Step 5) Test sentinel is alive and talking to the still syncing wallet
Uncomment the #vivo_conf line at the top and add the path to your MN’s vivo.conf. Save the file then close it.
You should see: “vivod not synced with network! Awaiting full sync before running Sentinel.”
This is exactly what we want to see at this stage
Step 6) Wait until the reindex has complete and the wallet has sync’d
cd .. (you should now be back in .vivocore)
./vivo-cli mnsync status
This is what you’re waiting to see:
AssetId 999, all trues, one false, and a FINISHED. Keep issuing ./vivo-cli mnsync status until it looks like this:
At this point, your remote masternode is synchronized and chatting with the network
but is not accepted as a masternode because it hasn’t been introduced to the network
by your collateral.
Step 7) You may now start your masternode! Go back to your local wallet, open the debug console, and run these commands (LABEL is the name you used for your MN in the masternode.conf):
walletpassphrase <YOURPASSPHRASE> 120
masternode start-alias <LABEL>
to (hopefully ) start your masternode.
Step 8) Test sentinel has nothing bad to say
You’re needed back in Sentinel directory!
At this point, running
should return nothing but silence. This is how you know it’s working, and your masternode is working.
Step 9) Create a crontab entry to wake sentinel every five minutes
Choose Joe as your editor. Add this line to the end of the file.
* * * * * cd /home/YOURUSERNAME/.vivocore/sentinel && ./venv/bin/python bin/sentinel.py 2>&1 >> sentinel-cron.log
Make sure you:
1) Change USERNAME to your username.
2) Hit enter to create another line at the end after this line, or the file will not work.
Press Control-K-X to save and exit.
Step 10) Check for start, try, try, again
You should be back in .vivocore.
./vivo-cli masternode debug
Did it work? You should see the message “Masternode successfully started.”. Congratulations!