Update blobber to storage v2 using cli that got deployed via chimney webapp

Steps to update blobber storage to v2.

Updating the Blobber storage to v2 is straightforward by running through provided script. Follow these steps:

  1. SSH into the blobber server using below command. Replace <SERVER-IP-ADDRESS> with ip address of blobber server. It will ask for password to ssh so, you need to input server password.

    ssh -o StrictHostKeyChecking=no root@<SERVER-IP-ADDRESS>
  2. Create a blobber delegate wallet file in json format with the name blob_wallet.json as given below:

    {
        "client_id": "Your_Wallet_Address",
        "client_key": "Your_Public_Key",
        "keys": [
            {
                "public_key": "Your_Public_Key",
                "private_key": "Your_Private_Key"
            }
        ],
        "mnemonics": "Your_Mneumonic",
        "version": "1.0",
        "date_created": "2023-05-01T18:40:02Z",
        "nonce": 0
    }

    To get the information that needs to replaced into above wallet template login into the chimney.software account. Navigate to Settings -> Wallet. Here you will get your Your_Wallet_Address, Your_Public_Key, Your_Private_Key & Your_Mneumonic. Kindly replace them into above wallet template and save the wallet to the blobber server at location /var/0chain/blobber/blob_wallet.json Steps to create delegate wallet on a server is given below. Scroll down to Steps to create blob_wallet.json on blobber server.

  3. Copy the below script to your local editor and edit it to change your existing url to new url.

    curl -fSsL https://raw.githubusercontent.com/0chain/zcnwebappscripts/main/blobber-ver-update-cli.sh | sed 's/0chainblobberid/<blobber_id>/;' | bash

    Replace <blobber_id with your blobber id(you can get the blobber id from your blobber url as shown in an image). For example:

    curl -fSsL https://raw.githubusercontent.com/0chain/zcnwebappscripts/main/blobber-ver-update-cli.sh | sed 's/0chainblobberid/0ea899010551b35525ba68387cd599110487fc670117866c93bd64a0d67a3a15/;' | bash

  4. Copy and paste the script you edited at step3 and press enter / return key in order to execute the script.

This process automatically updates the storage version to v2 and restarts the blobber after updating the pebble path into docker-compose file.

You can verify the updates by accessing the new Blobber URL in your browser.

Steps to create blob_wallet.json on blobber server.

  1. SSH into the blobber server using below command. Replace <SERVER-IP-ADDRESS> with ip address of blobber server. It will ask for password to ssh so, you need to input server password.

    ssh -o StrictHostKeyChecking=no root@<SERVER-IP-ADDRESS>
  2. Copy your delegate wallet that you edited above in step2. And paste it below after executing the below command. Here, we using the nano editor to create a blobber delegate wallet file in json format with the name blob_wallet.json using command given below:

    nano /var/0chain/blobber/blob_wallet.json
  3. To save the file press CTRL+X followed by pressing Y and press enter/return key.

Last updated