<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Thank you, Daniel!</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">I was looking to downgrade
      libmysqlclient, but even the earliest version available in Ubuntu
      16 depends on openssl.</div>
    <div class="moz-cite-prefix">So I'm not sure if it'll help.<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">In my case Kamailio connects to MySQL
      via localhost, i.e.:  <span class="pl-s"><span class="pl-pds">"</span>db_url<span
          class="pl-pds">"</span></span>, <span class="pl-s"><span
          class="pl-pds">"</span>mysql://kamailio:xxx@localhost/kamailio<span
          class="pl-pds">" which I believe will use socket file, not
          TCP.<br>
        </span></span></div>
    <div class="moz-cite-prefix"><span class="pl-s"><span class="pl-pds"><br>
        </span></span></div>
    <div class="moz-cite-prefix"><span class="pl-s"><span class="pl-pds">I'm
          going to rebuild the system based on Ubuntu 18 and will share
          my results.<br>
        </span></span></div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Thanks,</div>
    <div class="moz-cite-prefix">Dmytro<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 2020-08-17 5:52 a.m.,
      Daniel-Constantin Mierla wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:c8bd95c6-a93f-62a0-4d1b-3bc3d16ddbc9@gmail.com">
      <pre class="moz-quote-pre" wrap="">Hello,

it seems that libmysqlclient did some updates with the latest security
push to Ubuntu 16.04 making it somehow incompatible it libssl and then
way it is initialized by Kamailio, similar reports being made:

  * <a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/issues/2395">https://github.com/kamailio/kamailio/issues/2395</a>

Can you try with mariadb or with db connectivity using mysql socket file?

Cheers,
Daniel

On 16.08.20 01:56, Dmytro M wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">While executing this piece of config script, after a few days of run
time, Kamailio starts experiences some issue that leads to instability
and unresponsiveness of the proxy via TCP with TLS. UDP workers seems to
be working fine... TCP clients can't connect.

route[RELAY] {
        ...
        if (!t_relay()) {
                sl_reply_error();
        }
        exit;
}

Please advise how we can troubleshoot this issue.

Are there any immediate (or obvious) TCP/TLS/FD Kamailio/Linux
parameters that should be increased to allocate more resources for the
Proxy?
Or may be any other parameters that may lead to a quicker resources release.

Please see the errors bellow...

Environment: Ubuntu 16 x86_64, Kamailio 5.3.5.

Thanks,
Dmytro


Aug 15 04:48:19  CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 164 on 16: Too many references: cannot splice (109)
Aug 15 04:48:19  ERROR: <core> [core/tcp_main.c:3908]:
handle_ser_child(): CONN_GET_FD: send_fd failed
Aug 15 04:48:19  ERROR: tm [../../core/forward.h:292]:
msg_send_buffer(): tcp_send failed
Aug 15 04:48:19  WARNING: tm [t_fwd.c:1573]: t_send_branch(): sending
request on branch 0 failed
Aug 15 04:48:19  ERROR: sl [sl_funcs.c:392]: sl_reply_error(): stateless
error reply used: Unfortunately error on sending to next hop occurred
(477/SL)
....
Aug 15 05:52:04  ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e91c31e0 (flags 0x4018), fd 74
Aug 15 05:52:04  CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 75 on 43: Too many references: cannot splice (109)
Aug 15 05:52:04  ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e9d727b0 (flags 0x4018), fd 75
Aug 15 05:52:04  CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 75 on 73: Too many references: cannot splice (109)
Aug 15 05:52:04  ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e9d727b0 (flags 0x4018), fd 75
Aug 15 05:52:04  CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 75 on 45: Too many references: cannot splice (109)
Aug 15 05:52:04  ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e9d727b0 (flags 0x4018), fd 75
Aug 15 05:52:04  CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 74 on 43: Too many references: cannot splice (109)
Aug 15 05:52:04  ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e91c31e0 (flags 0x4018), fd 74
Aug 15 05:52:04  CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 76 on 43: Too many references: cannot splice (109)
Aug 15 05:52:04  ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e7856fa8 (flags 0x4018), fd 76
Aug 15 05:52:04  CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 74 on 47: Too many references: cannot splice (109)
Aug 15 05:52:04  ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e7856fa8 (flags 0x4018), fd 74
.....

_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>