<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    check also for limits in the system/firewall, maybe there are limits
    on new connections per second. Try with children=1 and see if it
    happens again, if not, then it is something that blocks many new
    connections in short time.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 1/2/12 5:31 AM, Sammy Govind wrote:
    <blockquote
cite="mid:CAJUJwti3dcrPtRZRaTSfhXu59c9rHsiRYQdJUVFWF2=vaqYQWQ@mail.gmail.com"
      type="cite">Hi,
      <div>Its all upto you then,&nbsp;that's&nbsp;an intermittent issue and
        information is not complete to trace the issue. Did you see the
        same Errors&nbsp;every time&nbsp;it fails !?</div>
      <div><br>
      </div>
      <div>--</div>
      <div>Regards</div>
      <div>
        Sammy<br>
        <br>
        <div class="gmail_quote">On Sun, Jan 1, 2012 at 10:06 PM, Ali
          Jawad <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:ali.jawad@splendor.net">ali.jawad@splendor.net</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            Hi<br>
            Thanks for your input, but as said this works at times yes
            and times<br>
            now so I am not sure it is a definite DB issue, the servers
            are in the<br>
            same LAN, and there are other modules that use the DB string
            that work<br>
            when launched before this one while this one does not work.<br>
            Regards<br>
            <div class="HOEnZb">
              <div class="h5"><br>
                On Sun, Jan 1, 2012 at 4:13 PM, Sammy Govind &lt;<a
                  moz-do-not-send="true"
                  href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>&gt;
                wrote:<br>
                &gt; Hi,<br>
                &gt; forget the whole list of errors and just resolve
                the DB connectivity between<br>
                &gt; the Kamailio server and DB server first .<br>
                &gt;<br>
                &gt;&gt; 27(24762) ERROR: db_mysql [km_my_con.c:109]:
                driver error: Can't<br>
                &gt;&gt; connect to MySQL server on 'xxxxxxxxx' (4)<br>
                &gt;<br>
                &gt;<br>
                &gt; try connecting to the remote DB server&nbsp;'xxxxxxxxx'
                from linux shell i.e<br>
                &gt;<br>
                &gt; # mysql -u&lt;user&gt; -p&lt;passwd&gt;
                -h&nbsp;'xxxxxxxxx'<br>
                &gt;<br>
                &gt; Regards,<br>
                &gt; Sammy<br>
                &gt;<br>
                &gt;<br>
                &gt; On Fri, Dec 30, 2011 at 3:33 PM, Ali Jawad &lt;<a
                  moz-do-not-send="true"
                  href="mailto:ali.jawad@splendor.net">ali.jawad@splendor.net</a>&gt;
                wrote:<br>
                &gt;&gt;<br>
                &gt;&gt; Hi All<br>
                &gt;&gt; I have tried the below with Kamailio 3.1.0 and
                3.2.1. the problem is<br>
                &gt;&gt; that Kamailio at times fails to&nbsp;start up&nbsp;for no
                obvious reasons, I.e.<br>
                &gt;&gt; in 10 restarts Kamailio might fail to start 3,0
                or 5 times. Te debug<br>
                &gt;&gt; log "level 2 " shows the following :<br>
                &gt;&gt;<br>
                &gt;&gt; 27(24762) ERROR: db_mysql [km_my_con.c:109]:
                driver error: Can't<br>
                &gt;&gt; connect to MySQL server on 'xxxxxxxxx' (4)<br>
                &gt;&gt; 27(24762) ERROR: &lt;core&gt; [db.c:303]: could
                not add connection to the<br>
                &gt;&gt; pool27(24762) ERROR: group [group.c:211]:
                unable to connect to the<br>
                &gt;&gt; database<br>
                &gt;&gt; 27(24762) ERROR: &lt;core&gt;
                [sr_module.c:889]: init_mod_child(): Error<br>
                &gt;&gt; while initializing module group<br>
                &gt;&gt;
                (/usr/local/kamailio/lib/kamailio/modules_k/group.so)<br>
                &gt;&gt; 27(24762) ERROR: &lt;core&gt; [pt.c:481]:
                ERROR: fork_tcp_process():<br>
                &gt;&gt; init_child failed for process 27, pid 24762,
                "tcp receiver child=1"<br>
                &gt;&gt;<br>
                &gt;&gt; and then<br>
                &gt;&gt;<br>
                &gt;&gt;<br>
                &gt;&gt; 30(24765) : &lt;core&gt; [pass_fd.c:293]:
                ERROR: receive_fd: EOF on 45<br>
                &gt;&gt; &nbsp;0(24735) ALERT: &lt;core&gt; [main.c:748]:
                child process 24762 exited<br>
                &gt;&gt; normally, status=255<br>
                &gt;&gt; &nbsp;0(24735) INFO: &lt;core&gt; [main.c:766]:
                INFO: terminating due to SIGCHLD<br>
                &gt;&gt;<br>
                &gt;&gt; The problem happens on 4 different servers, I
                did try to compile more<br>
                &gt;&gt; than once, the servers are 32 Bit CentOS 5.6.
                The connection to the<br>
                &gt;&gt; database is monitored and there are no issues
                with connecting to the<br>
                &gt;&gt; DB "it works at times and times not for
                Kamailio so a user/pwd issue<br>
                &gt;&gt; is not likely to cause this, manual cnnect
                worked", config file errors<br>
                &gt;&gt; are not found.<br>
                &gt;&gt;<br>
                &gt;&gt; I did also check max no of connections on MySQL
                server which is set to<br>
                &gt;&gt; 500 on the server and only 100&nbsp;cons&nbsp;are used.
                The group module uses<br>
                &gt;&gt; the same connection string as other modules
                &nbsp;which is predefined &nbsp;and<br>
                &gt;&gt; there are other modules that access the db
                before the group module and<br>
                &gt;&gt; those do not have a problem.<br>
                &gt;&gt;<br>
                &gt;&gt; Please advice.<br>
                &gt;&gt;<br>
                &gt;&gt; Regards<br>
                &gt;&gt;<br>
                &gt;&gt; _______________________________________________<br>
                &gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER)
                - sr-users mailing list<br>
                &gt;&gt; <a moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                &gt;&gt; <a moz-do-not-send="true"
                  href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                  target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt; _______________________________________________<br>
                &gt; SIP Express Router (SER) and Kamailio (OpenSER) -
                sr-users mailing list<br>
                &gt; <a moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                  target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                &gt;<br>
                <br>
                <br>
                <br>
              </div>
            </div>
            <span class="HOEnZb"><font color="#888888">--<br>
                Ali Jawad<br>
                Information Systems Manager<br>
                Splendor Telecom (<a moz-do-not-send="true"
                  href="http://www.splendor.net" target="_blank">www.splendor.net</a>)<br>
                Beirut, Lebanon<br>
                Phone: <a moz-do-not-send="true"
                  href="tel:%2B9611373725" value="+9611373725">+9611373725</a>/ext
                116<br>
                FAX: <a moz-do-not-send="true" href="tel:%2B9611375554"
                  value="+9611375554">+9611375554</a><br>
              </font></span>
            <div class="HOEnZb">
              <div class="h5"><br>
                _______________________________________________<br>
                SIP Express Router (SER) and Kamailio (OpenSER) -
                sr-users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                  target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>