<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><tt>Hi, Sasmita!<br>
      </tt></p>
    <p><tt>Are these two the only errors you see in the logs?<br>
      </tt></p>
    <p><tt>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:</tt></p>
    <div><tt><span style="font-size:12.8px">modparam("db_cachedb","</span></tt><tt><span
          style="font-size:12.8px">cachedb_url","mongodb:</span></tt><tt><span
          style="font-size:12.8px">replicaset1://</span></tt><tt><font
          color="#0000ff"><a moz-do-not-send="true"
            href="http://root:password@1.2.3.4:27017/" target="_blank"
            style="font-size:12.8px">1.2.3.4:27017</a><span
            style="font-size:12.8px"></span><a moz-do-not-send="true"
            href="http://2.3.4.5:27017/jack.db.test" target="_blank"
            style="font-size:12.8px">/jack.db</a></font></tt><tt><span
          style="font-size:12.8px">")<br>
          <br>
          Best regards,<br>
        </span></tt></div>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 06/02/2016 03:23 PM, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote
cite="mid:CALf-Q46vUthixRVsQnE-nNzvnYCKPN0SQ6kifcY643fvdmwAsw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi All ,
        <div><br>
        </div>
        <div>       I am using opensips-1.11 and I am using
          cachedb_mongodb module . I am able to connect to mongodb
          replica set without authentication .</div>
        <div><br>
        </div>
        <div><span style="font-size:12.8px">modparam("cachedb_mongodb",
            "cachedb_url","mongodb:</span><span style="font-size:12.8px">replicaset1://</span><a
            moz-do-not-send="true"
            href="http://root:password@1.2.3.4:27017/" target="_blank"
            style="font-size:12.8px">1.2.3.4:27017</a><span
            style="font-size:12.8px">,</span><a moz-do-not-send="true"
            href="http://2.3.4.5:27017/jack.db.CallCenter_Info"
            target="_blank" style="font-size:12.8px">2.3.4.5:27017/jack.db.CallCenter_Info</a><span
            style="font-size:12.8px">")</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">modparam("db_cachedb","</span><span
            style="font-size:12.8px">cachedb_url","mongodb:</span><span
            style="font-size:12.8px">replicaset1://</span><font
            color="#0000ff"><a moz-do-not-send="true"
              href="http://root:password@1.2.3.4:27017/" target="_blank"
              style="font-size:12.8px">1.2.3.4:27017</a><span
              style="font-size:12.8px">,</span><a moz-do-not-send="true"
              href="http://2.3.4.5:27017/jack.db.test" target="_blank"
              style="font-size:12.8px">2.3.4.5:27017/jack.db.</a>db</font><span
            style="font-size:12.8px">")</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">modparam("acc", "db_url",
            "cachedb://mongodb:</span><span style="font-size:12.8px">replicaset1")</span></div>
        <div><span style="font-size:12.8px">  I am able to connect to
            mongodb for account module . By this line .</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">  But I am not able to store
            any data through raw query like bellow .</span></div>
        <div><span style="font-size:12.8px">cache_store("mongodb:group1","$ci","$ci,$var(c)");</span><br>
        </div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Its giving bellow error .</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div>
          <div><span style="font-size:12.8px">   DBG:core:cachedb_store:
              from script [mongodb] - with grp [group1]</span></div>
          <div><span style="font-size:12.8px"> 
              ERROR:core:cachedb_store: failed to get connection for grp
              name [group1]</span></div>
        </div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">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 ?</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Thanks in advance . any kind
            of suggestion is welcome .</span></div>
        <div><span style="font-size:12.8px"><br clear="all">
          </span>
          <div>
            <div class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr"><b><i>Thanks &amp; Regards</i></b>
                <div><i>Sasmita Panda</i></div>
                <div><i>Network Testing and Software Engineer</i></div>
                <div><i>3CLogic , ph:07827611765</i></div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>