coturn icon indicating copy to clipboard operation
coturn copied to clipboard

Homebrew MacOS 15.2 ARM Redis DB Index ignored

Open edgework opened this issue 1 year ago • 6 comments

$ turnserver --version
4.6.3

turnadmin -a -u alice -r example.com -p secret123 -N "ip=127.0.0.1 dbname=0"

Will write values to redis in db index 0

turnadmin -a -u alice -r example.com -p secret123 -N "ip=127.0.0.1 dbname=4"

Also writes value to redis in db index 0

😕

edgework avatar Jan 10 '25 20:01 edgework

Hi @edgework, Could you test again with version 4.6.2, I'm using this version by building source code and your command is fine. This change log seems does not contain redis usage change. '-------------- updated: I've tested with version 4.6.3 and the result is fine.

dntam00 avatar Jan 11 '25 08:01 dntam00

For me on the version installed by Homebrew 4.6.3 it for sure does not write to any database other than 0. Monitoring redis shows a SELECT command is never sent.

Maybe it's something related to the turnserver.conf?

here's mine

listening-port=3478
tls-listening-port=5349

fingerprint
lt-cred-mech

server-name=stunturn
realm=inttest.int

total-quota=100
stale-nonce=600

cert=/opt/int-test-cert/cert.pem
pkey=/opt/int-test-cert/key.pem

cipher-list="ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384"

userdb=redis
redis-userdb="ip=127.0.0.1 dbname=4 port=6379 connect_timeout=30"
redis-statsdb="ip=127.0.0.1 dbname=4 port=6379 connect_timeout=30"

edgework avatar Jan 11 '25 20:01 edgework

@edgework It's very weird. I installed v.4.6.3 by brew install coturn and it works normal. And I think it does not relate to turnserver config because it's a standalone program.

image image

dntam00 avatar Jan 12 '25 04:01 dntam00

I found the problem. Try it against a redis that doesn't require AUTH. and don't provide a password

turnadmin -a -u alice -r example.com -p secret123 -N "ip=127.0.0.1 dbname=4"

edgework avatar Jan 16 '25 14:01 edgework

@edgework My redis is using password and it's fine, maybe you could try to use wireshark to check the actualy response from Redis server.

dntam00 avatar Jan 16 '25 15:01 dntam00

Disable the password. This problem exists where the redis server DOES NOT have a password and one is not provided in the turnadmin commandline

edgework avatar Jan 16 '25 15:01 edgework

I think the issue is fixed here, please reopen if thats not the case: https://github.com/coturn/coturn/pull/1668

ggarber avatar May 25 '25 14:05 ggarber