<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hello Tito,<br>
        <br>
        Either use the group name everywhere, or don't specify it at all
        in the modparam:<br>
        <br>
        &nbsp;&nbsp;&nbsp; </tt><tt>modparam("db_cachedb","cachedb_url","mongodb://localhost
        ...<br>
        or<br>
        &nbsp;&nbsp;&nbsp; </tt><tt>cache_raw_query("mongodb:instance1" ...<br>
        <br>
        <br>
        Best regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 09/09/2014 03:11 AM, Tito Cumpen wrote:<br>
    </div>
    <blockquote
cite="mid:CANZPVB4Ud_Nj2GDLye+-BzbO0V8nhhfJczM8UKMcWu4PGr+k3A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Ovidiu,
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I have corrected the param and now I am seeing opensips
          start without a problem the query problem still persists with
          the error&nbsp;</div>
        <div>
          <p class="">/sbin/opensips[22454]:
            ERROR:core:cachedb_raw_query: failed to get connection for
            grp name []</p>
          <p class="">I am not seeing any attempts being made from this
            server to the my mongo instance on the ingress interface.
            Any ideas??</p>
          <p class=""><br>
          </p>
          <p class=""><br>
            Thanks,</p>
          <p class="">Tito</p>
          <p class=""><br>
          </p>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Sep 8, 2014 at 8:01 PM, Ovidiu
          Sas <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:osas@voipembedded.com" target="_blank">osas@voipembedded.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Here's
            what works for me (I use both mongo and cache):<br>
            loadmodule "cachedb_mongodb.so"<br>
            &nbsp; modparam("cachedb_mongodb",<br>
"cachedb_url","mongodb:instance1://localhost:27017/db.collection")<br>
            loadmodule "db_cachedb.so"<br>
            &nbsp;
modparam("db_cachedb","cachedb_url","mongodb:instance1://localhost:27017/db.collection")<br>
            <br>
            You have the wrong module name (cachedb_mongo vs.
            cachedb_mongodb)<br>
            <br>
            Regards,<br>
            Ovidiu Sas<br>
            <div>
              <div class="h5"><br>
                On Mon, Sep 8, 2014 at 7:50 PM, Tito Cumpen &lt;<a
                  moz-do-not-send="true" href="mailto:tito@xsvoce.com">tito@xsvoce.com</a>&gt;
                wrote:<br>
                &gt; Hello Group,<br>
                &gt;<br>
                &gt;<br>
                &gt; I am perplexed about what the correct params are to
                point opensips to an<br>
                &gt; instance of mongodb<br>
                &gt;<br>
                &gt;<br>
                &gt; I am currently using these<br>
                &gt;<br>
                &gt;<br>
                &gt; loadmodule "db_cachedb.so"<br>
                &gt;<br>
                &gt; loadmodule "cachedb_mongodb.so"<br>
                &gt;<br>
                &gt;<br>
                &gt;
modparam("cachedb_mongo","cachedb_url","mongodb:instance1://162.XXX.XX.XXXX:27017/AOR.Location")<br>
                &gt;<br>
                &gt; which triggers this error<br>
                &gt;<br>
                &gt;&nbsp; Parameter &lt;cachedb_url&gt; not found in module
                &lt;cachedb_mongo&gt; - can't set<br>
                &gt;<br>
                &gt; Alternatively I have tried using :<br>
                &gt;<br>
                &gt;<br>
                &gt;
modparam("db_cachedb","cachedb_url","mongodb:instance1://162.XX.XX.XX:27017/AOR.Location")<br>
                &gt;<br>
                &gt; which would cause the following error when running
                this query<br>
                &gt;<br>
                &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cache_raw_query("mongodb","{ \"op\"
                : \"find\", \"ns\" :<br>
                &gt; \"AOR.Location\", \"query\": {\"User\" : $rU}
                }","$avp(mongo_result)");<br>
                &gt;<br>
                &gt;<br>
                &gt; ERROR:core:cachedb_raw_query: failed to get
                connection for grp name [}<br>
                &gt;<br>
                &gt; I am using Opensips version 1.11<br>
                &gt;<br>
                &gt; Thanks<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
              </div>
            </div>
            &gt; _______________________________________________<br>
            &gt; Users mailing list<br>
            &gt; <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            &gt; <a moz-do-not-send="true"
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            &gt;<br>
            <span class="HOEnZb"><font color="#888888"><br>
                <br>
                <br>
                --<br>
                VoIP Embedded, Inc.<br>
                <a moz-do-not-send="true"
                  href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a><br>
                <br>
                _______________________________________________<br>
                Users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                  target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
              </font></span></blockquote>
        </div>
        <br>
      </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>