[OpenSIPS-Users] mongodb replica set connection .
spanda at 3clogic.com
Fri Jun 3 11:01:52 CEST 2016
I have tried this . But its not working .
Now I got something interesting . I changed the cache_store command and now
its working .
This is " replicasetname.db.collection " this is the format what I get from
opensips documentation .
What opensips is doing is . Its creating a database jack and inside
that a collection db.CallCenter_Info and storing data on that collections .
But I have created a database db and i have also created a collection
in that CallCenter_Info and I was expecting the data will goes to this
I am doing anything wrong ? I am getting the data so I think my
problem is almost solved . But my acc and sip_trace collection and
CallCenter_Info collection are in different data base . I wanted them to
present inside a single data base so that it will be easier for me which
searching something .
Let me know if I am doing anything wrong .
One problem i am facing is , I am not able to connect to the replica
set with authentication . Without authentication its working like above .
*Thanks & Regards*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
On Fri, Jun 3, 2016 at 12:56 PM, Răzvan Crainea <razvan at opensips.org> wrote:
> 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:
> Best regards,
> Răzvan Crainea
> OpenSIPS Solutionswww.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://
> 18.104.22.168:27017 <http://root:firstname.lastname@example.org:27017/>,
> 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 .
> 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 listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
> Users mailing list
> Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users