# Step-by-step guide for upgrading the Chainbase AVS Operator

By [Dego](https://paragraph.com/@dego) · 2024-10-23

---

![](https://storage.googleapis.com/papyrus_images/42f114411172869dbd922d8d3d8c26a2f869084f4421bb50119da81b5cc061d1.png)

**🚀 Chainbase AVS Operator Upgrade - Step-by-Step Guide**

**Step 1: Make sure you have installed all required prerequisites**

**Docker**

![](https://storage.googleapis.com/papyrus_images/7c1ef1211306d7b54735c3c9d43771f983bd7f412f93747658fe8aaa62d32094.png)

**Docker-Compose**

![](https://storage.googleapis.com/papyrus_images/38cb96aa6b102f50351adacc640f391f20a241d8212b3ba5747bd01541eb8516.png)

**Go language**

![](https://storage.googleapis.com/papyrus_images/de0620581f4c57c8c5096f42cc5122e35a1d01e1d4ea38632a08543e4ecf9f7d.png)

**Linux Environment**: Eigenlayer’s CLI only runs in a Linux environment.

**Eigenlayer**

![](https://storage.googleapis.com/papyrus_images/1ad5dd220da142ca3fadb13fd355e4ad8b17e5b5cf3acb8381230cec9264d142.png)

**If you’ve previously run a Chainbase AVS Operator**

**Step 2**: Delete old version `chainbase-avs-setup` directory on your server, **back up** your encrypted **ECDSA** and **BLS** keys

`rm -rf chainbase-avs-setup`

**Step 3: Clone the Chainbase avs repo**

`git clone https://github.com/chainbase-labs/chainbase-avs-setup && cd chainbase-avs-setup/holesky`

**Step 4: Set up the environment file:**

![](https://storage.googleapis.com/papyrus_images/b882af1075f02b7320bdea54943a0ed2e2f124119349530394fc3dc8d02bd432.png)

`cp .env.example .env`

Update your **.env** file with the required fields

`nano .env`

![](https://storage.googleapis.com/papyrus_images/fdfbceea0f6772c4c927683ae48ce0aa748bb42a5c3cb8edb944b77022934d6e.png)

Use the command `eigenlayer operator keys list` to find your **ECDSA** and **BLS** key paths and operator address.

![](https://storage.googleapis.com/papyrus_images/8e857a7924494ec4396c4af637142f97313c0f8f475eac045c4215b61adace7b.png)

Notes to update your .env file:

*   _Operator Address: Must match your ECDSA key address._
    
*   _Node\_Socket: Set as_ `<your_server_public_ip>:8011.`
    
*   _To find your public IP, run:_ `curl -s ifconfig.me` or [whatismyipaddress.com](http://whatismyipaddress.com)\*
    
*   _Ensure your server's public IP is accessible, and that port 8011 is open in your firewall settings:_ `sudo ufw status | grep 8011`
    
*   _if port 8011 is not listed as "ALLOW", you can open it with the following command:_`sudo ufw allow 8011`
    
*     
    

**_Note: If you don’t have backup ECDSA/BLS key, you can create both keys as follows:_**

`eigenlayer operator keys create --key-type ecdsa your_key_name`

![](https://storage.googleapis.com/papyrus_images/3899a5f7da0a05b49939d28e7a4c8c759078b7adedfa0c0135bb42663be007ff.png)

`eigenlayer operator keys create --key-type bls your_key_name`

![](https://storage.googleapis.com/papyrus_images/bdc9f41083f39a7c3e778a198d46a7bab74c66c4826220eb5fd8bd3d87311717.png)

_Note: make sure you save/backup the both keys password and private keys_

**Step 5:** **Grant executable permissions to the bash script**

`chmod +x ./chainbase-avs.sh`

![](https://storage.googleapis.com/papyrus_images/4b6e61dde8aac68b33580e51718f886fe190473920e81e9b2e40893eda6bbe34.png)

**Step 6: Register and Run Chainbase AVS your operator**

`./chainbase-avs.sh register`

![](https://storage.googleapis.com/papyrus_images/1f10784ee1813c7e5be8afeaa1989e3b4672c5bfbae114d4ed57b005d69027e0.png)

`./chainbase-avs.sh run`

![](https://storage.googleapis.com/papyrus_images/6bfc39fe31dac9d636b58b5e601e2929c8dcf997d9da5b1b25a4fb85448c50e3.png)

**Step 7: Run the following command to test node:**

`./chainbase-avs.sh test`

![](https://storage.googleapis.com/papyrus_images/d6a726809451545aae12141d67aed2c20b9401b99fae4c85e00f1803419bd920.png)

If you see the output `All systems are working for your manuscript node` in the command line output, it indicates that your node is running correctly.

![](https://storage.googleapis.com/papyrus_images/15eec6a017a838f21aa43bb525fcc376add7c3dfd9eaf2e8618b2046364ed24e.png)

**Step 8) Update & Monitoring**

**Dashboard**

Access the dashboard by visiting **:3010 in your browser. If it doesn't load, ensure port 3010 is open and configured in your server's firewall.** **Update the node socket:** Configure NODE\_SOCKET in the .env file, then run the command: `./chainbase-avs.sh socket` **Update Node Update the AVS node:** `./chainbase-avs.sh update` **Monitor Logs Check your Docker and container logs:** `docker ps` `docker-compose logs -f` `docker-compose logs -f <container_name>` `docker logs -f <container_id>` **_Refer to the official documentation if necessary._** [https://docs.chainbase.com/node/operator](https://docs.chainbase.com/node/operator) [https://docs.eigenlayer.xyz/eigenlayer/operator-guides/operator-installation](https://docs.eigenlayer.xyz/eigenlayer/operator-guides/operator-installation)

---

*Originally published on [Dego](https://paragraph.com/@dego/step-by-step-guide-for-upgrading-the-chainbase-avs-operator)*
