Comment on Matrix coturn issues
ludicolo@lemmy.ml 3 days agoSorry I jusy recently updated my comment. I was able to get it to say “relay” when using the regular public ip and port for my vps. It doesn’t work if I use the domain I created for it though “turn.domainexample.com”
The domain name should be pointed to the vps public ip type A
Paid subscription? No I only have the cloudflare domain and the vps subscription. Do I need the subscription to get this working? 😮💨
hendrik@palaver.p3x.de 3 days ago
Try filling out the turn section in
config/dendrite.yaml
with that. It should be something liketurn:turn.domainexample.com?transport=udp
. And make sure the TURN testing tools I linked work with the same URI. Or maybe your DNS isn't pointing to the correct IP? You could try pinging it, or dodig A turn.domainexample.com
and see if it returns the correct IP for the VPS.ludicolo@lemmy.ml 3 days ago
I did fill that out, anytime I do matrix crashes and I think the logs say something along the lines of not being able to find the turn server. I just tried it now with the vps ip and port and it still caused matrix to crash.
The turn tesying tools don’t work with the URI at all its only the ip and port they work with.
When I use the dig A command it gives me different ips than the vps ip.
hendrik@palaver.p3x.de 3 days ago
Alright. I believe that means you need to fix your DNS.
"turn.domainexample.com" is pointing to a different server, and not the one running coturn.
Do you use Cloudflare as a DNS provider? I mean I don't know how that works, since I've never used it... But judging by the following documentation: https://developers.cloudflare.com/dns/manage-dns-records/reference/proxied-dns-records/
I believe you need a dedicated record for the turn subdomain that's not "Proxied", but "DNS only".
ludicolo@lemmy.ml 3 days ago
Progress has been made!
So I got it working with the domain name. The turn testing tools now respond with relay and pin point the vps server! Nice!
However when I put the info into the matrix dendrite.yaml it still crashes. The logs say
“Invalid config file: yaml: line 210: did not find expected key”
“Invalid config file: yaml: line 206: did not find expected " - " indicator”
Line 210 and 206 refer to the turn section which is formatted:
turn: turn_user_lifetime: “5m” turn_uris: - turn:turn.exampledomain.com?transport=udp - turn:turn.exampledomain.com?transport=tcp