Update blobber/validator url using cli that got deployed via chimney webapp

Updating the Blobber and Validator URLs to your new domain is straightforward. Follow these steps:

  1. Create a New A Record with Your DNS Provider

    Creating a new A (Address) Record is an essential step in connecting your domain name to an IP address. This allows your domain name to directly point to the server where your website is hosted. Create a new A Record with your DNS provider, pointing your domain to your hosting server's IP address. Please ensure your domain/subdomain name you are creating should be valid.

  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

  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-host-update-cli.sh | sed 's/0chainblobberhostoldurl/<existing_blobber_url>/; s/0chainblobberhostnewurl/<new_blobber_url>/; s/0chainblobberid/<blobber_id>/;' | bash

    Replace <existing_blobber_url> with existing blobber url, <new_blobber_url> with new blobber url and <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-host-update-cli.sh
     | sed 's/0chainblobberhostoldurl/chimneyu7iup.zus.network/; s/0chainblobberhostnewurl/chimshahtest1.zus.network/; s/0chainblobberid/0ea899010551b35525ba68387cd599110487fc670117866c93bd64a0d67a3a15/;' | bash

  4. 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>
  5. 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 URL and restarts the blobber/validator..

You can verify the updates by accessing the new Blobber URL in your browser. Additionally, the domain will also reflect the recent changes on atlus.cloud.

Last updated