Homebrew MacOS 15.2 ARM Redis DB Index ignored
$ 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
😕
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.
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
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.
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 My redis is using password and it's fine, maybe you could try to use wireshark to check the actualy response from Redis server.
Disable the password. This problem exists where the redis server DOES NOT have a password and one is not provided in the turnadmin commandline
I think the issue is fixed here, please reopen if thats not the case: https://github.com/coturn/coturn/pull/1668