> For the complete documentation index, see [llms.txt](https://docs.konsortech.xyz/node/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.konsortech.xyz/node/mainnet/orai/upgrade.md).

# Update to ASA-2024-007 security patch For Non Docker Users and Non Cosmovisor

Please Backup your node first including oraid binary and data to prevent Apphash error

## Download libwasmvm v1.5.2

```
wget https://github.com/oraichain/wasmvm/raw/v1.5.2/internal/api/libwasmvm.x86_64.so -O /usr/local/lib/libwasmvm.x86_64.so
```

## Download orai binary

```
cd $HOME
wget -O oraid https://github.com/oraichain/orai/releases/download/v0.41.7-ASA-2024-007/oraid-amd64
chmod +x oraid
sudo mv oraid $(which oraid)
```

## Stop Your Node

```
sudo service oraid stop
```

## Add new Enviroment variable for libwasmvm multilple version on Oraichain Services

nano /etc/systemd/system/oraid.service

For Non Cosmovisor Services

```
[Unit]
Description=Orai Node
After=network.target
[Service]
Type=simple
User=USER
ExecStart=/home/USER/go/bin/oraid start --home /home/USER/.oraid
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="LD_LIBRARY_PATH=/usr/local/lib"
[Install]
WantedBy=multi-user.target
```

For Cosmovisor Services

```
[Unit]
Description="orai node"
After=network-online.target

[Service]
User=USER
ExecStart=/home/USER/go/bin/cosmovisor run start --home /home/USER/.oraid
Restart=always
RestartSec=3
LimitNOFILE=4096
Environment="DAEMON_NAME=oraid"
Environment="DAEMON_HOME=/home/USER/.oraid"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="LD_LIBRARY_PATH=/usr/local/lib"
[Install]
WantedBy=multi-user.target
```

## Reload Deamon Services

```
sudo systemctl daemon-reload
```

## Start Oraichain Services

```
sudo service oraid restart && journalctl -fu oraid -o cat
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.konsortech.xyz/node/mainnet/orai/upgrade.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
