Update Lighthouse client

One-page interactive complete guide to update Lighthouse client.

Disclaimer

This guide is for informational purposes only. The author nor website owner does not guarantee accuracy of the information in this guide and is not responsible for any damages or losses incurred by following the guide.

Lighthouse client can be used for staking on various supported chains. Client installation is always only one, used by services with an individual configuration (different service name, data path and ports in use).

Check current version of Lighthouse running on the server:

lighthouse --version
curl "http://127.0.0.1:5052/eth/v1/node/version"
  1. Find the latest stable version of Lighthouse on Github

  2. Download Lighthouse version 5.3.0 to your node

    cd ~/downloads && curl -LO https://github.com/sigp/lighthouse/releases/download/v5.3.0/lighthouse-v5.3.0-x86_64-unknown-linux-gnu.tar.gz

    Extract downloaded file

    $ tar xvf lighthouse-v5.3.0-x86_64-unknown-linux-gnu.tar.gz
  3. Stop Lighthouuse services

    Stop Lighthouse Beacon service and all validators-based services

    sudo systemctl stop lighthousebeacon
    sudo systemctl stop lighthouse-vi...
    sudo systemctl stop lighthouse-vi...
    ...

    Stop cosnsensus services

    /usr/local/bin/staking.sh stop consensus

    Check cosnsensus services status

    /usr/local/bin/staking.sh check consensus
  4. Replace old Lighthouse client for new
    $ sudo cp ~/downloads/lighthouse /usr/local/bin
  5. Start the Lighthouse services

    Start Lighthouse Beacon service and all validators-based services

    sudo systemctl start lighthousebeacon
    sudo systemctl start lighthouse-vi...
    sudo systemctl start lighthouse-vi...
    ...
    /usr/local/bin/staking.sh start consensus
  6. Monitor

    • systemctl status lighthousebeacon lighthouse-vi.. lighthouse-vi..
    • journalctl -fu lighthousebeacon
    • journalctl -f -u lighthouse-vi.. -u lighthouse-vi...
    /usr/local/bin/staking.sh check consensus
    /usr/local/bin/staking.sh monitor consensus
  7. Remove downloaded files
    $ cd ~/downloads && rm lighthouse-v5.3.0-x86_64-unknown-linux-gnu.tar.gz && rm -r lighthouse