Coturn relay HA error: turn is Unavailable, reason: allocate: attribute not found #831

Closed
opened 2025-11-20 05:18:15 -05:00 by saavagebueno · 5 comments
Owner

Originally created by @debin-ge on GitHub (Apr 28, 2024).

Describe the problem

I want to get HA relay service. after i checked some information and code, i stripped coturn from the container and deployed it separately. At this point, the connection between turn and stun on peers is Available. everything seems to be working fine.
When I added the --alternate-server parameter to the coturn configuration, turn is unavailable.
image
I didn't find any error messages in clinet.log

But I tested the turnserver using the turnutils_uclient tool and it shows that everything is fine
image

To Reproduce

I modified the management.json file to get the configuration information from the environment variable
image

Start the turnserver service in the coturn-master device:

turnserver --syslog -a -L 0.0.0.0 -E xxx.xxx.xxx.xxx --allow-loopback-peers --max-bps=3000000 -f -m 3 --min-port=32355 --max-port=65535 --user=admin:admin@1234 -r xxxx.com --log-file=stdout -v --no-dtls --no-tls --alternate-server=SLAVE-1-IP:3478 --alternate-server=SLAVE-2-IP:3478  --cli-password=secret $@

Start the service in coturn-slave-1 and coturn-slave-2 in the simplest way possible, which is not described in detail here
Finally I started all the netbird services and they all work fine!

Are you using NetBird Cloud?

self-host NetBird

NetBird version

netbird version:0.27.3

Originally created by @debin-ge on GitHub (Apr 28, 2024). **Describe the problem** I want to get HA relay service. after i checked some information and code, i stripped coturn from the container and deployed it separately. At this point, the connection between turn and stun on peers is Available. everything seems to be working fine. When I added the `--alternate-server` parameter to the coturn configuration, turn is unavailable. ![image](https://github.com/netbirdio/netbird/assets/21329997/74fe3651-508b-4337-9070-4095702bad76) I didn't find any error messages in clinet.log But I tested the turnserver using the turnutils_uclient tool and it shows that everything is fine ![image](https://github.com/netbirdio/netbird/assets/21329997/480b85fe-b951-43d6-8119-cf5389591744) **To Reproduce** I modified the management.json file to get the configuration information from the environment variable ![image](https://github.com/netbirdio/netbird/assets/21329997/10de2b9b-1180-4bc5-b8f6-11f7925698ba) Start the turnserver service in the coturn-master device: ``` turnserver --syslog -a -L 0.0.0.0 -E xxx.xxx.xxx.xxx --allow-loopback-peers --max-bps=3000000 -f -m 3 --min-port=32355 --max-port=65535 --user=admin:admin@1234 -r xxxx.com --log-file=stdout -v --no-dtls --no-tls --alternate-server=SLAVE-1-IP:3478 --alternate-server=SLAVE-2-IP:3478 --cli-password=secret $@ ``` Start the service in coturn-slave-1 and coturn-slave-2 in the simplest way possible, which is not described in detail here Finally I started all the netbird services and they all work fine! **Are you using NetBird Cloud?** self-host NetBird **NetBird version** `netbird version:0.27.3`
saavagebueno added the triage-needed label 2025-11-20 05:18:15 -05:00
Author
Owner

@debin-ge commented on GitHub (Apr 29, 2024):

I have communicated with @braginini and learned that netbird supports HA relay configurations and I will close this issue.
This configuration:
https://netbirdio.slack.com/archives/C05T5K65X7U/p1714393315451359?thread_ts=1714358203.066829&cid=C05T5K65X7U

@debin-ge commented on GitHub (Apr 29, 2024): I have communicated with @braginini and learned that netbird supports HA relay configurations and I will close this issue. This configuration: https://netbirdio.slack.com/archives/C05T5K65X7U/p1714393315451359?thread_ts=1714358203.066829&cid=C05T5K65X7U
Author
Owner

@dkrhodes commented on GitHub (Jul 7, 2024):

I have communicated with @braginini and learned that netbird supports HA relay configurations and I will close this issue. This configuration: https://netbirdio.slack.com/archives/C05T5K65X7U/p1714393315451359?thread_ts=1714358203.066829&cid=C05T5K65X7U

can you please tell what the configuration is? Can't visit the page in slack. Than you

@dkrhodes commented on GitHub (Jul 7, 2024): > I have communicated with @braginini and learned that netbird supports HA relay configurations and I will close this issue. This configuration: https://netbirdio.slack.com/archives/C05T5K65X7U/p1714393315451359?thread_ts=1714358203.066829&cid=C05T5K65X7U can you please tell what the configuration is? Can't visit the page in slack. Than you
Author
Owner

@netandreus commented on GitHub (Jan 13, 2025):

I also can't open this page. @debin-ge @braginini can you please tell me how can we resolve this issue?

@netandreus commented on GitHub (Jan 13, 2025): I also can't open this page. @debin-ge @braginini can you please tell me how can we resolve this issue?
Author
Owner

@debin-ge commented on GitHub (Jan 15, 2025):

I also can't open this page. @debin-ge @braginini can you please tell me how can we resolve this issue?我也打不开这个页面。您能告诉我如何解决这个问题吗?

you'd just need to run multiple relays on different machines and add the domains/IPs to the management.json

@debin-ge commented on GitHub (Jan 15, 2025): > I also can't open this page. @debin-ge @braginini can you please tell me how can we resolve this issue?我也打不开这个页面。您能告诉我如何解决这个问题吗? you'd just need to run multiple relays on different machines and add the domains/IPs to the management.json
Author
Owner

@Popo8701 commented on GitHub (Jun 13, 2025):

I'd like to re-open this because I have the exact same error and I don't know how to solve it. My login/password are matching and even if they don't I get the same error.

@Popo8701 commented on GitHub (Jun 13, 2025): I'd like to re-open this because I have the exact same error and I don't know how to solve it. My login/password are matching and even if they don't I get the same error.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#831