coturn / coturn

coturn TURN server project
Other
11.38k stars 2.02k forks source link

Turn Server long term user issues #701

Open sopnonill87 opened 3 years ago

sopnonill87 commented 3 years ago

We set up a turn server in an EC2 instance earlier and created long term user for authentication. And we successfully used this in our webRTC based web and mobile application for video calling feature. All was working well, but suddenly the video calling feature stopped working. After debugging and checking long term user list, we found no user saved in the long term users list and thus creating 401 issues and our video calling stops working. We searched a lot to find the reason why long term user is deleted from db, but couldn't find anything. We used default sqlite as our database. It would be great if anybody suggest us what to do to resolve the issue.

misi commented 3 years ago

Coturn should not delete a user from database automatically.. Maybe sw upgrade overwrited your database? Strange what you have reported. It should be bug if it happens. Please doublecheck it again, and share more info about config, version. How it happens, how often etc. I don't remember any standard way how this could happen.

sopnonill87 commented 3 years ago

Thanks @misi for your response. One thing i can assure that after the coturn setup we didn't do any sw update here. We checked several times. Also same issue happened a month before. Then we create a new long term user and resolve it temporarily. Now this happens again. We used latest version of coturn And the configuration with did is as follows: ` listening-port=3478

tls-listening-port=5349

alt-listening-port=0

alt-tls-listening-port=0

listening-ip=*private_ip**

listening-ip=

external-ip=public_ip

relay-threads=0

min-port=49152

max-port=65535

fingerprint

lt-cred-mech

no-auth

use-auth-secret

static-auth-secret=north

server-name=**my_domain***

realm=**my_domain***

user=turnguest:turnguestpass

userdb=/var/lib/turn/turndb

user-quota=0

total-quota=100

stale-nonce=600

max-allocate-lifetime=3600

channel-lifetime=600

permission-lifetime=300

cert=/../../fullchain.pem pkey=/../../privkey.pem

cipher-list="DEFAULT"

CA-file=/etc/ssh/id_rsa.cert

ec-curve-name=prime256v1

dh566

dh2066

dh-file=

no-stdout-log

log-file=/var/tmp/turn.log

syslog

simple-log

` Thanks in advance.