Chatops with Mattermost

(ivan) #1

Hi I tried use Mattermost with Chatops but can’t connect between them. I get the follow message on chatops logs:
[Fri Feb 22 2019 13:14:30 GMT+0000 (UTC)] INFO Attempting reconnect [Fri Feb 22 2019 13:14:30 GMT+0000 (UTC)] INFO Logging in... [Fri Feb 22 2019 13:14:30 GMT+0000 (UTC)] ERROR Login call failed [Fri Feb 22 2019 13:14:30 GMT+0000 (UTC)] INFO Reconnecting in 10000ms
My st2chatops.env:
export HUBOT_ADAPTER=matteruser export MATTERMOST_HOST=http://192.168.3.150 export MATTERMOST_GROUP=test export MATTERMOST_USER=bot export MATTERMOST_PASSWORD=skynet
st2 2.9.2, on Python 2.7.6
Mattermost 5.8.0

But if I use Rocketchat works fine, both Rocketchat and Mattermost run on the same VM.

(Lindsay Hill) #2

Since you’re seeing login failures, what do the Mattermost server logs say?

(ivan) #3

Thanks for your quickly answer, I found the problem on mattermost logs.

I use port 80 and not use TLS, so I set the follow optional parameters on st2chatops.env and works.

export MATTERMOST_WSS_PORT=80
export MATTERMOST_HTTP_PORT=80
export MATTERMOST_TLS_VERIFY=false
export MATTERMOST_USE_TLS=false