> For the complete documentation index, see [llms.txt](https://unitynodes.gitbook.io/unity-nodes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unitynodes.gitbook.io/unity-nodes/mainnet-network/story-story-1/upgrade.md).

# 🆙 Upgrade

<details>

<summary>💡 How it works?</summary>

<mark style="color:red;">**Manual Upgrade**</mark> - simply copy and paste the code into the terminal.

<mark style="color:red;">**Planned Upgrade**</mark> - set up tmux with the provided code, copy the planned upgrade code, paste it into the terminal, after which a tmux session will automatically start counting down to the required block for the upgrade, after which the session will end. At this point, you can detach the session or log out of your server, everything will continue to work in the background. Upon running the script, you will receive all the necessary prompts for exiting, attaching, and viewing active tmux sessions.\
\
**Useful commands TMUX:**

<mark style="color:red;">**tmux ls**</mark> - view tmux sessions\ <mark style="color:red;">**tmux attach -t "session\_name"**</mark>**&#x20;-** connect to an existing session\ <mark style="color:red;">tmux kill-session -t "session\_name"</mark> - close the tmux session\
Press <mark style="color:red;">**Ctrl + b**</mark>, release and <mark style="color:red;">**press D**</mark> to collapse the session you are in.

</details>

## ⚙️ Story binary 1.4.2 <a href="#v1.2.0" id="v1.2.0"></a>

### 🔧  Manual Upgrade

Update manually only if your node has reached the specified block above.

```sh
cd $HOME
rm -rf story
git clone https://github.com/piplabs/story
cd story
git checkout v1.4.2
go build -o story ./client 
sudo mv $HOME/story/story $(which story)
sudo systemctl restart story story-geth && sudo journalctl -u story story-geth-f
```

## ⚙️ Story-Geth v1.2.0 <a href="#v1.2.0" id="v1.2.0"></a>

### 🔧  Manual Upgrade

```sh
sudo systemctl stop story story-geth
wget -O $(which geth) https://github.com/piplabs/story-geth/releases/download/v1.2.0/geth-linux-amd64
chmod +x $(which geth)
sudo systemctl start story story-geth
```

***
