truestep / coturn

Automatically exported from code.google.com/p/coturn
Other
0 stars 0 forks source link

Bad configuration format: mongo-userdb #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When trying to set a mongodb uri in the turnserver.conf configuration I get the 
following error:
"Bad configuration format: mongo-userdb"

My configuration looks like this
mongo-userdb="mongodb://user:pass@host/db"

Any ideas on what the correct format should be? I checked out this page (side 
note the docs point to an invalid webpage, this is the correct):
http://hergert.me/docs/mongo-c-driver-docs-0.94.2/mongoc_uri.html

My configuration directive looks to be right! I can connect using the shell 
script for schema population.

Original issue reported on code.google.com by andysav...@wowwee.com.hk on 28 Aug 2014 at 6:24

GoogleCodeExporter commented 9 years ago
Looks like the problem is this:
"MongoDB is not supported"

I'm running Ubuntu 14.04.

According to this link, it's possible to compile the mongo-c-driver as ubuntu 
pckages:
https://gist.github.com/chergert/4bb50c11f2a51212d50b

I've done this, but coturn still says it's not supported even though these 
packages are installed. Still investigating it but I guess I need to recompile 
the Ubuntu packages (information on how to recompile the package would be 
appreciated).

Original comment by andysav...@wowwee.com.hk on 28 Aug 2014 at 7:24

GoogleCodeExporter commented 9 years ago
Looks like the problem is this:
"MongoDB is not supported"

I'm running Ubuntu 14.04.

According to this link, it's possible to compile the mongo-c-driver as ubuntu 
pckages:
https://gist.github.com/chergert/4bb50c11f2a51212d50b

After installing the packages with the above instructions I needed to modify 
the configure script to add this line when it looks for mongodb libs:
/usr/include/libmongoc-1.0

After adding this and running ./configure everything works fine.

Original comment by andysav...@wowwee.com.hk on 28 Aug 2014 at 7:51

GoogleCodeExporter commented 9 years ago
You are using the Ubuntu coturn package that has no MongoDB support compiled in 
it (because mongo C driver is ot a standard Debian package). If you do want 
Mongo DB support, then you have to recompile the coturn manually (as a generic 
installation) on a system that has Mongo C driver.

Original comment by mom040...@gmail.com on 8 Sep 2014 at 8:37