# Chatgpt bot Websocket error in Docker

**URL:** <https://forum.mattermost.com/t/chatgpt-bot-websocket-error-in-docker/16803>\
**Category:** Troubleshooting\
**Created:** [September 6, 2023, 10:27am UTC](https://forum.mattermost.com/t/chatgpt-bot-websocket-error-in-docker/16803 "2023-09-06T10:27:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![knkoisme](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/knkoisme/32/7176_2.png) [@knkoisme](https://forum.mattermost.com/u/knkoisme)\
**Post date:** [September 6, 2023, 10:27am UTC](https://forum.mattermost.com/t/chatgpt-bot-websocket-error-in-docker/16803/1 "2023-09-06T10:27:32Z")

</div>

**Summary**  
I’m running Mattermost in Docker on a Synology NAS, but I’m having trouble running the chatgpt-mattermost-bot container.

**Steps to reproduce**  
(First of all, I’m not an English speaker and I don’t know programming. I’ve just been thrown into this by accident, and I thank you in advance for your kind responses.)

I am using Mattermost as Self-hosted in Docker on a Synology NAS.  
and I saw a github and youtube video that said I could create a chatgpt bot and tried to follow it, but I keep failing to run the chatbot container.

I checked the logs of that container and it seems to have a problem with websocket.  
My Mattermost URL is a reverse proxy, and I’m wondering if that might be the reason.

I followed this manual :  
(Run Mattermost in Synology NAS)

> **[How to Install Mattermost on Your Synology NAS](https://mariushosting.com/how-to-install-mattermost-on-your-synology-nas/)**
>
> Trustworthy expert guide to your Synology NAS.

(Mattermost chatgpt bot)

> **[GitHub - yGuy/chatgpt-mattermost-bot: A very simple implementation of a...](https://github.com/yGuy/chatgpt-mattermost-bot)**
>
> A very simple implementation of a service for a mattermost bot that uses ChatGPT in the backend. - GitHub - yGuy/chatgpt-mattermost-bot: A very simple implementation of a service for a mattermost b...

**Expected behavior**  
The chatbot container is running without issues and the chatbot is working well.

**Observed behavior**

(1.container manager - mattermost)

 ![1.container manager - mattermost](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/2/21af35f737c1e24c7106bb69fc2799eb725fea0d.png)

(2.container manager - chatbot)

 ![2.container manager - chatbot](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/a/a351257df545070c8f0c5dd636261f26a54cb6ac.png)

(3.reverse proxy rules - mattermost 1)

 ![3.reverse proxy rules - mattermost 1](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/8/8ce57824ef6659f619cb8ec40c306df224d6f926.png)

(4.reverse proxy rules - mattermost 2)

 ![4.reverse proxy rules - mattermost 2](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/3/3af059a75ae8cbabaa35bd17b406b56d189ea759.png)

(5.mattermost - system console)

 ![5.mattermost - system console](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/a/aefe6d8ab9e1d66fbaa6841a154538037338a3c2.png)

(6.chatbot container run failed log)

 ![6.chatbot container run failed log](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/8/8ef38c96e2523338b318691e773286098193be06.png)

| 2023/09/04 19:47:11 | stderr | {level:ERROR,time:2023-09-04T10:47:10.999Z,name:bot,pid:1,hostname:b1cc31c09b39,diff:0} |
| --- | --- | --- |
| 2023/09/04 19:47:11 | stderr | {level:INFO,time:2023-09-04T10:47:10.998Z,name:bot-ws,msg:websocket closed,pid:1,hostname:b1cc31c09b39,diff:0} |
| 2023/09/04 19:47:11 | stderr | {level:INFO,time:2023-09-04T10:47:10.998Z,name:bot-ws,pid:1,hostname:b1cc31c09b39,diff:1} |

---

<div class="post-metadata">

**Author:** ![hwszilard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/hwszilard/32/8018_2.png) [@hwszilard](https://forum.mattermost.com/u/hwszilard)\
**Post date:** [July 8, 2024, 9:24am UTC](https://forum.mattermost.com/t/chatgpt-bot-websocket-error-in-docker/16803/2 "2024-07-08T09:24:24Z")

</div>

Hello.

Were you able to resolve the above issue?

Regards,  
Szilard

---

<div class="post-metadata">

**Author:** ![john.oliver](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/john.oliver/32/6436_2.png) [@john.oliver](https://forum.mattermost.com/u/john.oliver)\
**Post date:** [July 9, 2024, 2:30pm UTC](https://forum.mattermost.com/t/chatgpt-bot-websocket-error-in-docker/16803/3 "2024-07-09T14:30:15Z")

</div>

[Integrations configuration settings - Mattermost documentation](https://docs.mattermost.com/configure/integrations-configuration-settings.html#integrate-allowcorsfrom) may help with WebSocket issues.
