Skip to main content
Before beginning the upgrade, create and store backups on another machine:
  • Back up the SGXWallet sgx_data directory and sgx_wallet_backup_key.txt.
  • Back up the node:
    skale node backup .
    

Upgrade steps for the SGX server

  1. Confirm that the SGXWallet sgx_data directory and backup key are backed up.
  2. Open the SGXWallet configuration directory.
    cd sgxwallet/run_sgx
    
  3. In docker-compose.yml, set the SGXWallet image to skalenetwork/sgxwallet_release:1.10.2.
  4. Pull and start the updated SGXWallet container.
    docker compose down && docker compose pull && docker compose up -d
    

Upgrade steps for the node server

  1. Download node-cli v3.2.0.
    curl -L https://github.com/skalenetwork/node-cli/releases/download/3.2.0/skale-3.2.0-Linux-x86_64 > /usr/local/bin/skale
    
  2. Verify the node-cli binary checksum.
    sha512sum /usr/local/bin/skale
    
    Expected checksum:
    ccc2ae7a8694d75ed3f4cbc1d36dbfc4b55561fc41daecd30b52c97da6e122164333719b432fe246bc89f47737d743c2cf33b0f718070d4658789af817ee52d0
    
  3. Make node-cli executable.
    chmod +x /usr/local/bin/skale
    
  4. Update .env option names and values. Replace each legacy option with its new option; do not keep both names in .env.
    Legacy optionNew option
    DISK_MOUNTPOINTBLOCK_DEVICE
    DOCKER_LVMPY_STREAMDOCKER_LVMPY_VERSION
    CONTAINER_CONFIGS_STREAMNODE_VERSION
    MANAGER_CONTRACTS_ABI_URLMANAGER_CONTRACTS
    IMA_CONTRACTS_ABI_URLIMA_CONTRACTS
    SGX_SERVER_URLSGX_URL
    Set NODE_VERSION to 5.0.0, and MANAGER_CONTRACTS and IMA_CONTRACTS to production:
    NODE_VERSION=5.0.0
    MANAGER_CONTRACTS=production
    IMA_CONTRACTS=production
    
  5. Stop docker-lvmpy service.
    systemctl stop docker-lvmpy
    
  6. Run the update procedure.
    skale node update .env --yes