1

I'm Installing COTURN on Ubuntu Server 16.04.1 according instructions from here. All steps done well but when trying to run turnserver this error happens:

Error retrieving SQLite DB information: file is encrypted or is not a database

I have googled for above error and mostly it occurs in version conflict of SQLite. But I've done steps exactly according to installation instructions and have no idea how to fix the problem.

7

In case anyone encounters same problem:

1) Install SQLite3:

>> sudo apt-get update
>> sudo apt-get install sqlite3 libsqlite3-dev

2) In install documentation there is an error when defining database file in etc/turnserver.conf:

userdb=/etc/turnuserdb.conf

should be changed to:

userdb=/var/lib/turn/turndb

PS:

Here are important parts of turnuserdb.conf in case you need:

# you can listen ports 80 and 443 instead of 3478/5349
listening-port=3478
alt-listening-port=0

tls-listening-port=5349
alt-tls-listening-port=0

listening-ip=YourPublicIPv4
relay-ip=YourPublicIPv4
external-ip=YourPublicIPv4

# realm=yourdomain.com
# server-name=yourdomain.com

# lt-cred-mech
# userdb=/etc/turnuserdb.conf

oauth
user=youruser:yourpassword

# use real-valid certificate/privatekey files
# cert=/etc/ssl/certificate.pem
# pkey=/etc/ssl/private.key

no-stdout-log

Consider using your YourPublicIPv4 (x.x.x.x) and youruser:yourpassword.

  • Thanks that's useful. How did you configure the username and password in the db? Could you maybe share your turnserver.conf file as a gist? – Lukasz Aug 2 '17 at 13:13
  • @Lukasz: I have updated answer. – Xaqron Aug 2 '17 at 15:04
  • I am getting CONFIG ERROR: Empty cli-password, and so telnet cli interface is disabled! Please set a non empty cli-password! bind: Cannot assign requested address Cannot bind local socket to addr: Cannot assign requested address Can you please help me with that – Hassaan Mar 21 at 14:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.