📛FOR "HANDSHAKE FAILED ERROR"

ERROR :

Install Screen :

apt-get install screen -y

Install Ngrok :

 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

Get Your Auth Code :

ngrok config add-authtoken yourauthtoken
ngrok http http://localhost:8080

CTRL C

screen ngrok http 3001

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

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

docker stop scout && docker rm scout
sudo ufw allow 3001
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.

Last updated