How to Keep Your Smartnode Updated

in #smartnodes7 years ago (edited)

Now that your smartnode is up and running, it's advisable to ensure that the software (Ubuntu and Smartcash) is kept updated, for both optimal performance and to reduce the risk of the exploitation of security vulnerabilities. This guide will help you keep your node purring along.

1. Backup Your Smartnode

Before attempting an upgrade ensure you node is backed up. On of the easiest way to do this is to take a cold snapshot. To perform a snapshot:

  • Shut down the server.
    Login to your smartnode using your SSH client (Putty or Bitvise) on Windows or Terminal on OSX. Use your smartadmin account. Once logged in type the following
    sudo shutdown

This will safely shutdown your smartdown

  • Create a snapshot
    Login in to your VPS dashboard and create a snapshot. The steps vary slightly depending on your provider:

Digital Ocean
https://www.digitalocean.com/community/tutorials/how-to-use-digitalocean-snapshots-to-automatically-backup-your-droplets

Vultr
https://www.vultr.com/docs/how-to-restore-a-snapshot

  • Power On Server
    Once the snapshot has completed, power on the smartnode server from your VPS dashboard.

2. Perform a manual update

Login to your smartnode using your SSH client (Putty or Bitvise) on Windows or Terminal on OSX. Use your smartadmin account.

To perform the upgrade type:

sudo apt-get upgrade

You will be prompted for your password, so please enter it.

Screen Shot 2018-02-09 at 20.27.12.png

The system will then display any available updates. Press Y to confirm the updates and the software will be downloaded and installed.

If no updates are required, then the following message will be displayed.
Screen Shot 2018-02-09 at 20.27.57.png

There is no need to follow the steps below if no updates were made.

3. Reboot the server

Once the software has been installed it is recommended to restart your server. To do this type the following command:

sudo reboot

This will restart the server, and your SSH connection will be disconnected.

4. Verify Updates

Once the server is updated, it's advisable to check all is working.

  • Login to your smartnode
    Use your SSH client (Putty or Bitvise) on Windows or Terminal on OSX to login. Use your smartadmin account.

  • Verify smartcashd is running
    Type the following command to check that smarcashd is running.

smartcash-cli smartnode status

Ensure the the status says 'Smartnode successfully started'

Screen Shot 2018-02-09 at 20.49.26.png

  • Verify Smartnode software version
    It's always best to ensure the latest software is running. To do this type the following command:
    smartcash-cli --version

This will display the software version. Ensure it is the current version.
Screen Shot 2018-02-09 at 20.43.19.png

5. Donations

If you found this article useful please feel free to donate smarts to SkbXDz8FDc6L9kGv6o4f96EAibrrGmZktu

Sort:  

Golden rule in cli world... always backup your before do anything.

Coin Marketplace

STEEM 0.16
TRX 0.13
JST 0.027
BTC 58921.34
ETH 2593.61
USDT 1.00
SBD 2.43