Error Reading Masternode Configuration File: Could Not Parse Masternode.conf

This is a setup guide for creating a Syscoin 3.0 Masternode. Y'all will demand a Virtual Individual Server (VPS) from hosting providers such every bit Amazon EC2, DigitalOcean Droplets, Google Compute Engine, Microsoft Azure, Choopa, OVH, or Vultr that meets the following specifications:

  • Ubuntu 16.04 LTS x64
  • 1+ CPU
  • 2GB+ memory
  • 40GB+ SSD hard drive
  • Static IP Accost – Elastic IP, etc

Guide: Masternode VPS Setup
If you need help setting upwardly your VPS see this guide past Syscoin customs fellow member JohnP, simply exist certain to return hither before running any commands on your server!

Earlier You Start

It's a good thought to read through whatever script you find on the Cyberspace before running it on a server with root privileges, including this 1. Annotation that to make information technology easier for beginners this script automatically installs additional firewall and DDOS protection that may interfere with other services if this is not a "fresh" Ubuntu xvi.04 LTS VPS.

SCRIPT: https://gist.github.com/doublesharp/bacf7f9ac1ff15dccc1acffe49f989e9#file-masternode-sh

All steps in Syscoin Core Qt should be performed on your local computer, just the automatic script should be run on your server. Do not transfer funds to the wallet on your masternode.

Network Configuration

Yous will need to allocate a static IP to your Syscoin masternode. If your hosting provider implements a firewall (such as Security Groups for Amazon EC2) you will demand to allow access to your masternode on TCP port 8369 from everywhere (inbound 0.0.0.0/0). Since we will be using SSH (Putty) to access to server you will need to allow TCP port 22 from everywhere as well.

Upgrading from 2.x to 3.x?

If you lot are upgrading your wallet from Syscoin 2.x to Syscoin 3.x you MUST run dumpwallet "/full/path/to/dump.txt" and and so importwallet "/total/path/to/dump.txt". You will likely want to delete "/full/path/to/dump.txt" after this process as information technology contains unprotected private keys.

If you lot are unable to open your wallet.dat with Syscoin-Qt 3.x with an error that your wallet is corrupted you will demand to open the wallet using Syscoin-Qt ii.1.6 and call dumpwallet then open up Syscoin-Qt 3.x to run importwallet.

WARNING: Your wallet dump file contains unprotected individual keys. Delight delete information technology later completing this step!

Windows users will need to accept an additional step to open Syscoin-Qt 2.x correctly. Locate the shortcut for Syscoin-Qt 2.x and right click it to select "Properties", then in the "Target" field add a space and then -datadir=%HOMEPATH%\AppData\Roaming\Syscoin to the end of the value and click "Ok". This will tell information technology to open using the legacy "Syscoin" directory instead of the new "SyscoinCore" directory.

PRO TIP: Backing up and encrypting your wallet is out of telescopic for this guide only if they are new concepts to you please look into how to do them!

Prepare & Transport 100k SYS Collateral

To stake your masternode yous volition need to provide exactly 100,000SYS in your masternode address. Use Syscoin Cadre Qt for your system to process this transaction.

To get started open Syscoin Core Qt on your estimator and from the menu select "Settings > Options" on Windows or "Syscoin Core > Preferences.." on a Mac. Select the "Wallet" tab and click the checkbox to "Enable coin control features" and "Show Masternodes Tab". Click the "Ok" button to save your settings, close Syscoin Core Qt then re-open it to view the new options, then wait for the blockchain to fully sync with the network.

Syscoin-Qt Masternode Options

Masternode Private Key & Address

One time your local Syscoin Core Qt has fully synced select "Tools > Debug" and enter masternode genkey to generate your masternode private key. Re-create this value as y'all will need it subsequently, it volition wait similar to the following:

7ra1rhngvNkhkiFE8STrmvH3LvYTCzLyRFHFsZvrJUBV6ZmWnc        

Side by side type getnewaddress to generate an address to use for collateral. Copy downwards this address equally well every bit you will demand to send your collateral to it in the side by side step. Note that using an alias is out of scope here, merely if you create an allonym you may use its address likewise.

Multiple Masternodes?

If you are configuring multiple masternodes y'all will need to create a unique masternode private key and unique collateral accost for each masternode using the steps above. One time the address is created for each masternode transport a collateral transaction of exactly 100,000SYS to the address for each masternode using the adjacent steps.

Alarm: If you lot use the same address for multiple masternodes your reward payouts cannot exist completed.

Transport Collateral to Address

Utilise Coin Control to ensure that yous ship your collateral from the correct address. Go to "Send" and then "Inputs" to select the input that y'all would like to send from. In the example beneath using tSYS, the "Principal" input will exist selected. Click "Ok" to return to the "Send" screen.

Syscoin-Qt 3.0 Coin Control

Next enter your masternode collateral accost from the previous pace into the "Pay To" field. Enter "100,000" exactly into the "Amount" field and do NOT subtract fees from the amount as it volition reduce your collateral total.

Press "Send" to ship your Syscoin to your masternode collateral accost. You lot will demand to look one block – approximately i minute – for the transaction to ostend.

Syscoin-Qt 3.0 Masternode Collateral Send

Next you lot will demand to get the transaction id for the collateral by selecting the "Transactions" tab to see the 100,000SYS sent to yourself. Right click this transaction to view the id, and copy it down as well for later employ.

Syscoin-Qt 3.0 Masternode Transaction

Get Masternode Outputs

In Syscoin Core Qt over again open the "Tools > Debug" menu and enter masternode outputs. Yous will get a long string that is a hash of the transaction id from the previous step followed by a "0" or "one" to signal the output index. The outcome should resemble the following:

{ "06e38868bb8f9958e34d5155437d009b72dff33fc87fd42e51c0f74fdb" : "0", }        

Configure Masternode via Syscoin Core Qt

From the Syscoin-Qt menu select "Tools > Open Masternode Configuration File". You will demand to enter your masternode information using a text editor in the following format and utilise the public IP address of your server not your local computer. Brand sure that the line does non start with a # as this will comment out the line! If you lot don't see your masternode listed in the "Masternode" tab please double bank check this configuration.

# Masternode config file # Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output_index mn1 123.123.123.123:8369 7ra1rhngvNkhkiFE8STrmvH3LvYTCzLyRFHFsZvrJUBV6ZmWnc 06e38868bb8f9958e34d5155437d009b72dff33fc87fd42e51c0f74fdb 0        

Relieve this file and close Syscoin-Qt.

Configure Masternode

Finally we are ready to work on your server. Connect to your VPS via SSH (Putty) and enter the post-obit command to outset the automated install:

fustigate <(curl -sL doublesharp.com/sysmasternode)        

Default values are found in brackets and pressing enter will selected the [default] value. For entries with a [Y/n] the capital letter is the default. Enter [Y] to choose "yes" or [Due north] to choose "no". Likely the just value you volition need to enter is your masternode individual cardinal.

Syscoin Cadre Github Branch [master]:  Masternode Individual Fundamental []: 7ra1rhngvNkhkiFE8STrmvH3LvYTCzLyRFHFsZvrJUBV6ZmWnc External IP Address [123.123.123.123]:  Masternode Port [8369]:   Press any fundamental to continue or Ctrl+C to exit...        

Once the build procedure and configuration have completed blazon source ~/.bashrc to admission the syscoind and syscoin-cli executables via the new syscoin user.

Enable Masternode

Back on your local estimator restart Syscoin Core Qt and wait for it to sync up to the network. Cull the "Masternodes" tab, select your masternode, and so click "Initialize allonym". Merely click this push once and if your "Status" ever changes it's recommended to confer with the #masternodes Slack channel before restarting your node – if you restart you will demand to re-qualify for rewards and won't receive any rewards during this time. Read on for more than information.

Syscoin-Qt 3.0 Masternode Start

Eligibility for Rewards

Continue in mind that your masternode will not immediately be eligible for rewards. The eligibility period is adamant by the formula [number of masternodes] * 2.6 * 60 seconds.

Note, if you restart your masternode by pressing "Initialize" in Qt this counter will reset and you will not receive rewards until your masternode is eligible again.

Masternode Server Commands

Now that syscoind is running under the syscoin user you volition need to access it differently. The cron job for sentinel ping is also installed under this user. The post-obit commands may be useful to run on your server.

# view your syscoin.conf sudo cat /home/syscoin/.syscoincore/syscoin.conf  # view your sentinel.conf sudo cat /home/syscoin/lookout man/spotter.conf  # view the syscoin user crontab which should contain:  # */10 * * * * /usr/local/bin/sentinel-ping sudo crontab -u syscoin -fifty  # run a sentinel ping to speed up Qt syncing? why non! sudo su -c "sentinel-ping" syscoin  # view the sentinel-ping cron log, look for errors sudo less /home/syscoin/picket/sentinel-cron.log  # view the syscoind debug log, look for errors sudo less /home/syscoin/.syscoincore/debug.log  # start and stop the syscoind systemd service sudo service syscoind stop sudo service syscoind outset sudo service syscoind restart  # check that the syscoind process is running at the proper user ps aux | grep [s]yscoind  # log out and back in or run the post-obit to alias syscoind and syscoin-cli source ~/.bashrc  # at present the commands run as the syscoin user syscoin-cli getinfo syscoin-cli mnsync condition syscoin-cli masternode status  # it is aliased to this shorter function  syscli getinfo syscli mnsync status syscli masternode status  # if you actually desire to log in as the syscoin user sudo su - syscoin        

Summary

This script installs the necessary dependencies to build the Syscoin Core from source. Information technology creates a user named "syscoin" and uses a systemd service to outset the syscoind process equally the "syscoin" user, and information technology set to start on boot subsequently the necessary networking services take started.

Updates and reconfigurations tin be performed past entering the control sysmasternode or the initial car install control fustigate <(curl -sL doublesharp.com/sysmasternode).

Tips!

This automatic install script was written past demesm and doublesharp. If it saved you time setting you your masternode please consider sending a tip. Thanks!

doublesharp @ allonym doublesharp / address SjaXL2hXfpiuoPZrRFEPawUSHVjwkdu5az"
demesm @ address SkSsc5DDejrXq2HfRf9B9QDqHrNiuUvA9Y

craighanty1976.blogspot.com

Source: https://www.justinsilver.com/technology/cryptocurrency/syscoin-3-0-masternode-configuration/

0 Response to "Error Reading Masternode Configuration File: Could Not Parse Masternode.conf"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel