Summary
It’s unable to start voice call from web version as well from any mobile client
Steps to reproduce
I’m using self-hosted version on hetzner VPS server, no docker involved
Mattermost Version: 7.10.2
Database Schema Version: 108
Database: postgres
Observed behavior
when I’m trying to start call from web version it results in infinite “connecting to the call message”
and there is an error in logs:
{
"caller": "app/plugin_api.go:976",
"level": "error",
"msg": "callback failed: call state is missing from channel state",
"origin": "main.(*Plugin).handleLeave websocket.go:454",
"plugin_id": "com.mattermost.calls",
"timestamp": "2023-06-29 13:09:26.987 Z"
}
if I’ll try from mobile app - “timed out waiting for peer connection”
with two errors going together:
{
"caller": "web/context.go:115",
"err_where": "",
"error": ": api endpoint requires a license",
"http_code": 501,
"ip_addr": "XXX.XXX.XXX.XXX",
"level": "info",
"method": "GET",
"msg": "api endpoint requires a license",
"path": "/api/v4/users/1qgj5f6ieif69m884ymirxjbgh/groups",
"request_id": "d8wz3p9uu3rhig3w4yq9ymar6e",
"timestamp": "2023-06-29 13:10:31.984 Z",
"user_id": "1qgj5f6ieif69m884ymirxjbgh"
}
and then
{
"caller": "app/plugin_api.go:976",
"level": "error",
"msg": "callback failed: call state is missing from channel state",
"origin": "main.(*Plugin).handleLeave websocket.go:454",
"plugin_id": "com.mattermost.calls",
"timestamp": "2023-06-29 13:10:42.664 Z"
}
ss -ntlup | grep '8443'
udp UNCONN 0 0 <local_IP1>:8443 0.0.0.0:* users:(("plugin-linux-am",pid=31649,fd=20))
udp UNCONN 0 0 <local_IP1>:8443 0.0.0.0:* users:(("plugin-linux-am",pid=31649,fd=17))
udp UNCONN 0 0 <local_IP2>:8443 0.0.0.0:* users:(("plugin-linux-am",pid=31649,fd=18))
udp UNCONN 0 0 <local_IP2>:8443 0.0.0.0:* users:(("plugin-linux-am",pid=31649,fd=15))
udp UNCONN 0 0 <public_IP>:8443 0.0.0.0:* users:(("plugin-linux-am",pid=31649,fd=16))
udp UNCONN 0 0 <public_IP>:8443 0.0.0.0:* users:(("plugin-linux-am",pid=31649,fd=13))
udp UNCONN 0 0 127.0.0.1:8443 0.0.0.0:* users:(("plugin-linux-am",pid=31649,fd=14))
udp UNCONN 0 0 127.0.0.1:8443 0.0.0.0:* users:(("plugin-linux-am",pid=31649,fd=12))
the same from lsof command
lsof -n -i :8443 | grep -v "COMMAND" | wc -l
8
iptables -L -n -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
in addition:
ps ax | grep calls
31649 ? Sl 0:02 plugins/com.mattermost.calls/server/dist/plugin-linux-amd64
/opt/mattermost/bin/mmctl --local config get PluginSettings.Plugins.com.mattermost.calls
{
"allowscreensharing": true,
"defaultenabled": true,
"enablerecordings": false,
"enablesimulcast": false,
"icehostoverride": "<public_IP>",
"iceserversconfigs": "",
"jobserviceurl": null,
"maxcallparticipants": 0,
"maxrecordingduration": 60,
"recordingquality": "medium",
"rtcdserviceurl": null,
"serversideturn": true,
"turncredentialsexpirationminutes": 1436,
"turnstaticauthsecret": "",
"udpserveraddress": "<public_IP>",
"udpserverport": 8443
}
Could you please help with further diagnostics?
thank you in advance,
Pavlos