Hi Community,
I am currently running the following:
- Ubuntu 22.0.4.3 Jammy
- Docker
- Portainer CE 2.19.1
- NGinX pointing to point 8065
My docker stack file consists of:
- mattermost:
image: mattermost/mattermost-team-edition:latest - db:
image: postgres:latest - chatgpt-bot:
image: blackvoidclub/chatgpt-mattermost-bot:latest
I am getting the following error in my Mattermost console log:
WRN app/plugin_api.go:983 > timestamp=2023-09-29 14:41:36.055 Z msg=failed to get public IP address for local interface plugin_id=com.mattermost.calls origin=main.(*logger).Warn log.go:99 localAddr=127.0.0.1 error=failed to get public address: write udp4 127.0.0.1:8443->52.72.139.62:3478: sendto: invalid argument
And then in my ChatGPT console log I get this:
2023-09-29T14:41:33.751Z INFO name=bot-ws msg=websocket connecting to wss://RemovedForPrivacy/api/v4/websocket pid=1 hostname=da2a872b12a7 diff=0
/app/node_modules/@mattermost/client/lib/client4.js:1765
throw new ClientError(this.getUrl(), {
^
ClientError: Received invalid response from the server.
at Client4. (/app/node_modules/@mattermost/client/lib/client4.js:1765:23)
at Generator.throw ()
at rejected (/app/node_modules/@mattermost/client/lib/client4.js:8:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
url: ‘https://RemovedForPrivacy/api/v4/users/me’,
server_error_id: undefined,
status_code: undefined
}
2023-09-29T14:41:36.692Z INFO name=bot-ws msg=websocket connecting to wss://RemovedForPrivacy/api/v4/websocket pid=1 hostname=da2a872b12a7 diff=0
2023-09-29T14:41:36.727Z INFO name=bot-ws msg=websocket error pid=1 hostname=da2a872b12a7 diff=35
2023-09-29T14:41:36.727Z INFO name=bot-ws pid=1 hostname=da2a872b12a7 diff=0
2023-09-29T14:41:36.728Z INFO name=bot-ws msg=websocket closed pid=1 hostname=da2a872b12a7 diff=1
2023-09-29T14:41:36.729Z ERROR name=bot pid=1 hostname=da2a872b12a7 diff=0
2023-09-29T14:41:41.658Z INFO name=bot-ws msg=websocket connecting to wss://mattermost.gewspecmon.co.za/api/v4/websocket pid=1 hostname=da2a872b12a7 diff=0
I would appreciate any help or guidance. Any pointers on missing config in stack would help.
Thankyou to anyone willing to help and speculate.
See full stack below:
version: ‘3’
services:
mattermost:
image: mattermost/mattermost-team-edition:latest
container_name: mattermost
volumes:
- mattermost_data:/mattermost/data
- mattermost_config:/mattermost/config
- mattermost_logs:/mattermost/logs
- mattermost_plugins:/mattermost/plugins
environment:
- MM_USERNAME=RemovedForPrivacy
- MM_PASSWORD=RemovedForPrivacy
- MM_SITEURL=RemovedForPrivacy
- MM_SQLSETTINGS_DRIVERNAME=postgres
- MM_SQLSETTINGS_DATASOURCE=postgres://RemovedForPrivacy:RemovedForPrivacy@db:5432/mattermost?sslmode=disable&connect_timeout=10
- MM_EMAILSETTINGS_SMTPSERVER=mail.RemovedForPrivacy
- MM_EMAILSETTINGS_SENDERADDRESS=RemovedForPrivacy
ports:
- “8065:8065”
healthcheck:
test: [“CMD”, “curl”, “–fail”, “http://localhost:8065/”]
interval: 30s
timeout: 10s
retries: 5
logging:
driver: “json-file”
options:
max-size: “10m”
max-file: “7”
# … other configurations …
depends_on:
- chatgpt-bot
- db
restart: always
db:
image: postgres:latest
container_name: mattermost_db
volumes:
- mattermost_db_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=RemovedForPrivacy
- POSTGRES_PASSWORD=RemovedForPrivacy
- POSTGRES_DB=mattermost
ports:
- “5432:5432”
restart: always
chatgpt-bot:
image: blackvoidclub/chatgpt-mattermost-bot:latest
container_name: chatgpt-bot
environment:
- MATTERMOST_URL=https://RemovedForPrivacy
- MATTERMOST_TOKEN=RemovedForPrivacy
- OPENAI_API_KEY=sk-RemovedForPrivacy
restart: always
volumes:
mattermost_data:
driver: local
mattermost_config:
driver: local
mattermost_logs:
driver: local
mattermost_db_data:
driver: local
mattermost_plugins:
driver: local