[OpenSIPS-Users] mongodb replica set connection .

Răzvan Crainea razvan at opensips.org
Fri Jun 3 09:26:35 CEST 2016


Hi, Sasmita!

Are these two the only errors you see in the logs?

Can you confirm that replicaset "jack" exists and that the 
"CallCenter_Info" table exists? What about the "db" collection? Have you 
tried to set the cachedb_url like this:

modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017 
<http://root:password@1.2.3.4:27017/>/jack.db 
<http://2.3.4.5:27017/jack.db.test>")

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 06/02/2016 03:23 PM, Sasmita Panda wrote:
> Hi All ,
>
>        I am using opensips-1.11 and I am using cachedb_mongodb module 
> . I am able to connect to mongodb replica set without authentication .
>
> modparam("cachedb_mongodb", 
> "cachedb_url","mongodb:replicaset1://1.2.3.4:27017 
> <http://root:password@1.2.3.4:27017/>,2.3.4.5:27017/jack.db.CallCenter_Info 
> <http://2.3.4.5:27017/jack.db.CallCenter_Info>")
>
> modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017 
> <http://root:password@1.2.3.4:27017/>,2.3.4.5:27017/jack.db. 
> <http://2.3.4.5:27017/jack.db.test>db")
>
> modparam("acc", "db_url", "cachedb://mongodb:replicaset1")
>   I am able to connect to mongodb for account module . By this line .
>
>   But I am not able to store any data through raw query like bellow .
> cache_store("mongodb:group1","$ci","$ci,$var(c)");
>
> Its giving bellow error .
>
>    DBG:core:cachedb_store: from script [mongodb] - with grp [group1]
> ERROR:core:cachedb_store: failed to get connection for grp name [group1]
>
>
> What does it mean ?  If I am changing the group1 to replicaset1 then 
> also its giving error . What should I do ? Please help me . Am I doing 
> something wrong in the opensips config file or I need to do something 
> in the mongodb replica set ?
>
> Thanks in advance . any kind of suggestion is welcome .
>
> */Thanks & Regards/*
> /Sasmita Panda/
> /Network Testing and Software Engineer/
> /3CLogic , ph:07827611765/
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160603/43a0f7f0/attachment.htm>


More information about the Users mailing list