> For the complete documentation index, see [llms.txt](https://services.rpcdot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://services.rpcdot.com/chasm/chasm-node-setup/for-handshake-failed-error.md).

# FOR "HANDSHAKE FAILED ERROR"

#### &#x20;ERROR :&#x20;

<figure><img src="/files/kpHwVqH4HmG0z7r2mNjm" alt=""><figcaption></figcaption></figure>

### Install Screen :&#x20;

```
apt-get install screen -y
```

### Install Ngrok :&#x20;

```
 curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok
```

#### Sing Up Ngrok : <https://dashboard.ngrok.com/signup>

#### Get Your Auth Code :&#x20;

<figure><img src="/files/9mxtYwnFGoDgMuypyrDg" alt=""><figcaption></figcaption></figure>

```
ngrok config add-authtoken yourauthtoken
```

```
ngrok http http://localhost:8080
```

CTRL C

```
screen ngrok http 3001
```

<figure><img src="/files/y56VbT2RJcGRUwBJOIOb" alt=""><figcaption></figcaption></figure>

#### Copy This Url And Save - After saving, exit the screen with CTRL A + D. ( Do not exit with CTRL C, it closes completely. )

```
nano .env
```

<figure><img src="/files/1fDfjR0uc00lNUEgYxXf" alt=""><figcaption></figcaption></figure>

#### Paste the url you copied into the webhook url section and CTRL X CTRL Y ENTER . Saved.

```
docker stop scout && docker rm scout
```

<pre><code><strong>sudo ufw allow 3001
</strong></code></pre>

```
docker pull johnsonchasm/chasm-scout .
docker run -d --restart=always --env-file ./.env -p 3001:3001 --name scout johnsonchasm/chasm-scout

source ./.env
curl -X POST \
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer $WEBHOOK_API_KEY" \
     -d '{"body":"{\"model\":\"gemma-7b-it\",\"messages\":[{\"role\":\"system\",\"content\":\"You are a helpful assistant.\"}]}"}' \
     $WEBHOOK_URL
```

#### 99% of your problem will be solved.
