https://netmaker.org logo
I can t figure out how I have
i

important-pager-78326

05/18/2023, 4:02 PM
I can't figure out how I have misconfigured the TURN server, all ports/hosts/domains, etc are correct, but i keep getting errors like this on netmaker container: [netclient] 2023-05-18 15:57:52 Failed to allocate: all retransmissions failed for GtM3X8T+egZihfsA [netclient] 2023-05-18 15:57:52 failed to allocate addr on turn: all retransmissions failed for GtM3X8T+egZihfsA But the TURN server container doesn't even register a call, as far as i can tell from the logs
b

boundless-ability-97383

05/18/2023, 4:03 PM
how did you deploy? with script?
i

important-pager-78326

05/18/2023, 4:04 PM
No, due to how I've set things up, i need to manually set the compose myself, otherwise the script would not work or break the rest of my stuff (such as reverse-proxy)
b

boundless-ability-97383

05/18/2023, 4:04 PM
how do you have your reverse proxy setup for the turn subdomain
i

important-pager-78326

05/18/2023, 4:06 PM
I use SWAG (nginx) as my reverse proxy, and my turn subdomain is configured like so: server { listen 443 ssl; listen [::]:443 ssl; server_name turnapi.*; include /config/nginx/ssl.conf; client_max_body_size 0; location / { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app 192.168.1.25; set $upstream_port 3480; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } }
sorry, that was for the API, but it's the same for regular turn, i just change the port
b

boundless-ability-97383

05/18/2023, 4:08 PM
I assume you set those ports in your docker compose
i

important-pager-78326

05/18/2023, 4:08 PM
yep
turnserver uses host networking and I changed the ports environment variables
I actually just activated debug mode on turn and the API is receiving calls
2023/05/18 16:04:38 ----> REG: {HostID:d1966e16-21cf-464b-97f3-ff636a81bb46 HostPassHash:e068bf01bdcdda4b7d72a764e491c3f8} [GIN] 2023/05/18 - 16:04:38 | 200 | 2.08285ms | my.ip | POST "/api/v1/host/register" 2023/05/18 16:04:39 ----> REG: {HostID:d1966e16-21cf-464b-97f3-ff636a81bb46 HostPassHash:e068bf01bdcdda4b7d72a764e491c3f8} [GIN] 2023/05/18 - 16:04:39 | 200 | 221.979µs | my.ip | POST "/api/v1/host/register"
I fixed the connectivity problem by changing the folder where the turn server settings were store (and regenerating them) I must have started out with wrong settings which did not get corrected with the environment variables