<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>if you system has many network interfaces, be sure that you grant
      proper rights based on local ip addresses to access the MySQL
      server or have ip routing rules that ensures the kernel will use
      only the allowed local ip address to open connection to MySQL
      server.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 25.11.22 17:09, Denys Pozniak wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+x3AxpXQSiiso6Te6UFhTNbBJCcfiao7S5kwKWV266D2Xd0KQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello!
        <div><br>
        </div>
        <div>We use Kamailio in conjunction with the cloud Azure
          Database for MySQL 5.7. It has been noticed that Kamailio does
          not always start after restarting.</div>
        <div>It happens to restart a couple of times and everything
          starts normally.<br>
        </div>
        <div>From the pickup trace I collect on our side, it can be seen
          that Kamailio connects to MySQL, requests and gets data, and
          then sends a Request Quit.<br>
        </div>
        <div>On another server with a different configuration (slightly
          different set of modules) and connected to the same database,
          this issue is not reproduced.<br>
        </div>
        <div><br>
        </div>
        <div>How to determine the source of the problem? <br>
        </div>
        <div><br>
        </div>
        <div>Below, the logs are filtered by PID of processes in which
          an error occurred:<br>
        </div>
        <div>
          <div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre"><div>ERROR: db_mysql [km_my_con.c:<span style="color:rgb(181,206,168)">163</span>]: db_mysql_new_connection(): driver error: Can<span style="color:rgb(206,145,120)">'t connect to MySQL server on '</span><span style="color:rgb(181,206,168)">10.1</span>.128.4<span style="color:rgb(206,145,120)">' (110)</span></div></div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/pt.c:<span style="color:rgb(181,206,168)">308</span>]: fork_process(): seeding PRNG <span style="color:rgb(197,134,192)">with</span> <span style="color:rgb(181,206,168)">893384711</span></div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/rand/cryptorand.c:<span style="color:rgb(181,206,168)">36</span>]: cryptorand_seed(): seeding cryptorand generator <span style="color:rgb(197,134,192)">with</span> <span style="color:rgb(181,206,168)">893384711</span></div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/rand/fortuna/random.c:<span style="color:rgb(181,206,168)">175</span>]: sr_add_entropy(): additional <span style="color:rgb(181,206,168)">4</span> <span style="color:rgb(78,201,176)">bytes</span> entropy added to cryptographic PRNG</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/pt.c:<span style="color:rgb(181,206,168)">313</span>]: fork_process(): test random numbers <span style="color:rgb(181,206,168)">289569343</span> <span style="color:rgb(181,206,168)">1482836098</span> <span style="color:rgb(181,206,168)">4036842274</span> <span style="color:rgb(181,206,168)">2495827489</span></div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">926</span>]: init_child(): initializing PROC_RPC <span style="color:rgb(197,134,192)">with</span> rank -<span style="color:rgb(181,206,168)">2</span></div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">11</span> rank -<span style="color:rgb(181,206,168)">2</span>: jsonrpcs [DMQ WORKER]</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">11</span> rank -<span style="color:rgb(181,206,168)">2</span>: kex [DMQ WORKER]</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: kex [kex_mod.c:<span style="color:rgb(181,206,168)">155</span>]: child_init(): rank <span style="color:rgb(86,156,214)">is</span> (-<span style="color:rgb(181,206,168)">2</span>)</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/utils/sruid.c:<span style="color:rgb(181,206,168)">121</span>]: sruid_init(): root <span style="color:rgb(197,134,192)">for</span> sruid <span style="color:rgb(86,156,214)">is</span> [srid-<span style="color:rgb(244,71,71)">6380d27f</span>-<span style="color:rgb(244,71,71)">8faac</span>-] (<span style="color:rgb(181,206,168)">0</span> / <span style="color:rgb(181,206,168)">20</span>)</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">11</span> rank -<span style="color:rgb(181,206,168)">2</span>: corex [DMQ WORKER]</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">11</span> rank -<span style="color:rgb(181,206,168)">2</span>: tm [DMQ WORKER]</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: tm [callid.c:<span style="color:rgb(181,206,168)">136</span>]: child_init_callid(): callid: <span style="color:rgb(206,145,120)">'<a href="mailto:558fadb265b2cc20-588460@10.1.15.12" moz-do-not-send="true" class="moz-txt-link-freetext">558fadb265b2cc20-588460@10.1.15.12</a>'</span></div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">11</span> rank -<span style="color:rgb(181,206,168)">2</span>: tmx [DMQ WORKER]</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: tmx [tmx_mod.c:<span style="color:rgb(181,206,168)">262</span>]: child_init(): rank <span style="color:rgb(86,156,214)">is</span> (-<span style="color:rgb(181,206,168)">2</span>)</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">11</span> rank -<span style="color:rgb(181,206,168)">2</span>: sl [DMQ WORKER]</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">11</span> rank -<span style="color:rgb(181,206,168)">2</span>: usrloc [DMQ WORKER]</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/utils/sruid.c:<span style="color:rgb(181,206,168)">121</span>]: sruid_init(): root <span style="color:rgb(197,134,192)">for</span> sruid <span style="color:rgb(86,156,214)">is</span> [ulcx-<span style="color:rgb(244,71,71)">6380d27f</span>-<span style="color:rgb(244,71,71)">8faac</span>-] (<span style="color:rgb(181,206,168)">0</span> / <span style="color:rgb(181,206,168)">20</span>)</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">11</span> rank -<span style="color:rgb(181,206,168)">2</span>: registrar [DMQ WORKER]</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/utils/sruid.c:<span style="color:rgb(181,206,168)">121</span>]: sruid_init(): root <span style="color:rgb(197,134,192)">for</span> sruid <span style="color:rgb(86,156,214)">is</span> [uloc-<span style="color:rgb(244,71,71)">6380d27f</span>-<span style="color:rgb(244,71,71)">8faac</span>-] (<span style="color:rgb(181,206,168)">0</span> / <span style="color:rgb(181,206,168)">20</span>)</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">11</span> rank -<span style="color:rgb(181,206,168)">2</span>: ctl [DMQ WORKER]</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">11</span> rank -<span style="color:rgb(181,206,168)">2</span>: dmq [DMQ WORKER]</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">11</span> rank -<span style="color:rgb(181,206,168)">2</span>: auth_db [DMQ WORKER]</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: <core> [db.c:<span style="color:rgb(181,206,168)">315</span>]: db_do_init2(): connection <span style="color:rgb(86,156,214)">0x</span><span style="color:rgb(181,206,168)">7f96e7d58880</span> <span style="color:rgb(86,156,214)">not</span> found <span style="color:rgb(197,134,192)">in</span> pool</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) DEBUG: db_mysql [km_my_con.c:<span style="color:rgb(181,206,168)">110</span>]: db_mysql_new_connection(): opening connection: mysql://xxxx:xxxx@<span style="color:rgb(181,206,168)">10.1</span>.128.4/kamailio</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) ERROR: db_mysql [km_my_con.c:<span style="color:rgb(181,206,168)">163</span>]: db_mysql_new_connection(): driver error: Can<span style="color:rgb(206,145,120)">'t connect to MySQL server on '</span><span style="color:rgb(181,206,168)">10.1</span>.128.4<span style="color:rgb(206,145,120)">' (110)</span></div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) ERROR: <core> [db.c:<span style="color:rgb(181,206,168)">319</span>]: db_do_init2(): could <span style="color:rgb(86,156,214)">not</span> add connection to the pool</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) ERROR: auth_db [auth_db_mod.c:<span style="color:rgb(181,206,168)">161</span>]: child_init(): unable to connect to the database</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) ERROR: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">882</span>]: init_mod_child(): error <span style="color:rgb(197,134,192)">while</span> initializing module auth_db (/usr/lib/x86_64-linux-gnu/kamailio/modules/auth_db.so) (idx: <span style="color:rgb(181,206,168)">11</span> rank: -<span style="color:rgb(181,206,168)">2</span> desc: [DMQ WORKER])</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) ERROR: <core> [core/pt.c:<span style="color:rgb(181,206,168)">338</span>]: fork_process(): init_child failed <span style="color:rgb(197,134,192)">for</span> process <span style="color:rgb(181,206,168)">11</span>, pid <span style="color:rgb(181,206,168)">588460</span>, <span style="color:rgb(206,145,120)">"DMQ WORKER"</span></div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) ERROR: dmq [dmq.c:<span style="color:rgb(181,206,168)">314</span>]: child_init(): failed to fork worker process <span style="color:rgb(181,206,168)">0</span></div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) ERROR: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">882</span>]: init_mod_child(): error <span style="color:rgb(197,134,192)">while</span> initializing module dmq (/usr/lib/x86_64-linux-gnu/kamailio/modules/dmq.so) (idx: <span style="color:rgb(181,206,168)">11</span> rank: <span style="color:rgb(181,206,168)">0</span> desc: [DMQ WORKER])</div><div><span style="color:rgb(181,206,168)">11</span>(<span style="color:rgb(181,206,168)">588460</span>) ERROR: <core> [main.c:<span style="color:rgb(181,206,168)">1842</span>]: main_loop(): error <span style="color:rgb(197,134,192)">in</span> init_child</div><div>
</div></div>
        </div>
        <div><br>
        </div>
        <div>
          <div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/pt.c:<span style="color:rgb(181,206,168)">308</span>]: fork_process(): seeding PRNG <span style="color:rgb(197,134,192)">with</span> <span style="color:rgb(181,206,168)">2018260302</span></div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/rand/cryptorand.c:<span style="color:rgb(181,206,168)">36</span>]: cryptorand_seed(): seeding cryptorand generator <span style="color:rgb(197,134,192)">with</span> <span style="color:rgb(181,206,168)">2018260302</span></div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/rand/fortuna/random.c:<span style="color:rgb(181,206,168)">175</span>]: sr_add_entropy(): additional <span style="color:rgb(181,206,168)">4</span> <span style="color:rgb(78,201,176)">bytes</span> entropy added to cryptographic PRNG</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/pt.c:<span style="color:rgb(181,206,168)">313</span>]: fork_process(): test random numbers <span style="color:rgb(181,206,168)">1395463366</span> <span style="color:rgb(181,206,168)">918020172</span> <span style="color:rgb(181,206,168)">18663197</span> <span style="color:rgb(181,206,168)">531231393</span></div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">926</span>]: init_child(): initializing PROC_TIMER <span style="color:rgb(197,134,192)">with</span> rank -<span style="color:rgb(181,206,168)">1</span></div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">17</span> rank -<span style="color:rgb(181,206,168)">1</span>: jsonrpcs [Dialog Clean Timer]</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">17</span> rank -<span style="color:rgb(181,206,168)">1</span>: kex [Dialog Clean Timer]</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: kex [kex_mod.c:<span style="color:rgb(181,206,168)">155</span>]: child_init(): rank <span style="color:rgb(86,156,214)">is</span> (-<span style="color:rgb(181,206,168)">1</span>)</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/utils/sruid.c:<span style="color:rgb(181,206,168)">121</span>]: sruid_init(): root <span style="color:rgb(197,134,192)">for</span> sruid <span style="color:rgb(86,156,214)">is</span> [srid-<span style="color:rgb(244,71,71)">6380d27f</span>-<span style="color:rgb(244,71,71)">8fab2</span>-] (<span style="color:rgb(181,206,168)">0</span> / <span style="color:rgb(181,206,168)">20</span>)</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">17</span> rank -<span style="color:rgb(181,206,168)">1</span>: corex [Dialog Clean Timer]</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">17</span> rank -<span style="color:rgb(181,206,168)">1</span>: tm [Dialog Clean Timer]</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: tm [callid.c:<span style="color:rgb(181,206,168)">136</span>]: child_init_callid(): callid: <span style="color:rgb(206,145,120)">'<a href="mailto:558fadb265b2cc20-588466@10.1.15.12" moz-do-not-send="true" class="moz-txt-link-freetext">558fadb265b2cc20-588466@10.1.15.12</a>'</span></div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">17</span> rank -<span style="color:rgb(181,206,168)">1</span>: tmx [Dialog Clean Timer]</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: tmx [tmx_mod.c:<span style="color:rgb(181,206,168)">262</span>]: child_init(): rank <span style="color:rgb(86,156,214)">is</span> (-<span style="color:rgb(181,206,168)">1</span>)</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">17</span> rank -<span style="color:rgb(181,206,168)">1</span>: sl [Dialog Clean Timer]</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">878</span>]: init_mod_child(): idx <span style="color:rgb(181,206,168)">17</span> rank -<span style="color:rgb(181,206,168)">1</span>: usrloc [Dialog Clean Timer]</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [core/utils/sruid.c:<span style="color:rgb(181,206,168)">121</span>]: sruid_init(): root <span style="color:rgb(197,134,192)">for</span> sruid <span style="color:rgb(86,156,214)">is</span> [ulcx-<span style="color:rgb(244,71,71)">6380d27f</span>-<span style="color:rgb(244,71,71)">8fab2</span>-] (<span style="color:rgb(181,206,168)">0</span> / <span style="color:rgb(181,206,168)">20</span>)</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: <core> [db.c:<span style="color:rgb(181,206,168)">315</span>]: db_do_init2(): connection <span style="color:rgb(86,156,214)">0x</span><span style="color:rgb(181,206,168)">7f96e7d58880</span> <span style="color:rgb(86,156,214)">not</span> found <span style="color:rgb(197,134,192)">in</span> pool</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) DEBUG: db_mysql [km_my_con.c:<span style="color:rgb(181,206,168)">110</span>]: db_mysql_new_connection(): opening connection: mysql://xxxx:xxxx@<span style="color:rgb(181,206,168)">10.1</span>.128.4/kamailio</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) ERROR: db_mysql [km_my_con.c:<span style="color:rgb(181,206,168)">163</span>]: db_mysql_new_connection(): driver error: Can<span style="color:rgb(206,145,120)">'t connect to MySQL server on '</span><span style="color:rgb(181,206,168)">10.1</span>.128.4<span style="color:rgb(206,145,120)">' (110)</span></div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) ERROR: <core> [db.c:<span style="color:rgb(181,206,168)">319</span>]: db_do_init2(): could <span style="color:rgb(86,156,214)">not</span> add connection to the pool</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) ERROR: usrloc [usrloc_mod.c:<span style="color:rgb(181,206,168)">485</span>]: child_init(): child(-<span style="color:rgb(181,206,168)">1</span>): failed to connect to database</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) ERROR: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">882</span>]: init_mod_child(): error <span style="color:rgb(197,134,192)">while</span> initializing module usrloc (/usr/lib/x86_64-linux-gnu/kamailio/modules/usrloc.so) (idx: <span style="color:rgb(181,206,168)">17</span> rank: -<span style="color:rgb(181,206,168)">1</span> desc: [Dialog Clean Timer])</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) ERROR: <core> [core/pt.c:<span style="color:rgb(181,206,168)">338</span>]: fork_process(): init_child failed <span style="color:rgb(197,134,192)">for</span> process <span style="color:rgb(181,206,168)">17</span>, pid <span style="color:rgb(181,206,168)">588466</span>, <span style="color:rgb(206,145,120)">"Dialog Clean Timer"</span></div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) ERROR: dialog [dialog.c:<span style="color:rgb(181,206,168)">782</span>]: child_init(): failed to start clean timer routine <span style="color:rgb(197,134,192)">as</span> process</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) ERROR: <core> [core/sr_module.c:<span style="color:rgb(181,206,168)">882</span>]: init_mod_child(): error <span style="color:rgb(197,134,192)">while</span> initializing module dialog (/usr/lib/x86_64-linux-gnu/kamailio/modules/dialog.so) (idx: <span style="color:rgb(181,206,168)">17</span> rank: <span style="color:rgb(181,206,168)">0</span> desc: [Dialog Clean Timer])</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) ERROR: <core> [main.c:<span style="color:rgb(181,206,168)">1842</span>]: main_loop(): error <span style="color:rgb(197,134,192)">in</span> init_child</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) CRITICAL: <core> [core/mem/q_malloc.c:<span style="color:rgb(181,206,168)">519</span>]: qm_free(): BUG: freeing already freed pointer (<span style="color:rgb(86,156,214)">0x</span><span style="color:rgb(181,206,168)">7f96e2f84650</span>), called <span style="color:rgb(197,134,192)">from</span> tls: tls_init.c: ser_free(<span style="color:rgb(181,206,168)">323</span>), first free tls: tls_init.c: ser_free(<span style="color:rgb(181,206,168)">323</span>) - ignoring</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) CRITICAL: <core> [core/mem/q_malloc.c:<span style="color:rgb(181,206,168)">519</span>]: qm_free(): BUG: freeing already freed pointer (<span style="color:rgb(86,156,214)">0x</span><span style="color:rgb(181,206,168)">7f96e2f84900</span>), called <span style="color:rgb(197,134,192)">from</span> tls: tls_init.c: ser_free(<span style="color:rgb(181,206,168)">323</span>), first free tls: tls_init.c: ser_malloc(<span style="color:rgb(181,206,168)">293</span>) - ignoring</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) CRITICAL: <core> [core/mem/q_malloc.c:<span style="color:rgb(181,206,168)">519</span>]: qm_free(): BUG: freeing already freed pointer (<span style="color:rgb(86,156,214)">0x</span><span style="color:rgb(181,206,168)">7f96e2fd50b0</span>), called <span style="color:rgb(197,134,192)">from</span> tls: tls_init.c: ser_free(<span style="color:rgb(181,206,168)">323</span>), first free tls: tls_init.c: ser_free(<span style="color:rgb(181,206,168)">323</span>) - ignoring</div><div><span style="color:rgb(181,206,168)">17</span>(<span style="color:rgb(181,206,168)">588466</span>) CRITICAL: <core> [core/mem/q_malloc.c:<span style="color:rgb(181,206,168)">519</span>]: qm_free(): BUG: freeing already freed pointer (<span style="color:rgb(86,156,214)">0x</span><span style="color:rgb(181,206,168)">7f96e2f820e0</span>), called <span style="color:rgb(197,134,192)">from</span> tls: tls_init.c: ser_free(<span style="color:rgb(181,206,168)">323</span>), first free tls: tls_init.c: ser_free(<span style="color:rgb(181,206,168)">323</span>) - ignoring</div></div>
        </div>
        <div><br>
        </div>
        <div>
          <div>- Debian 11.5</div>
          <div>- libmariadb version 3.1.16<br
              class="gmail-Apple-interchange-newline">
          </div>
          <div>-modules: auth_db, permissions, domain,
            rtpengine, dispatcher, dialog, uac, carrierroute, topos, acc<br>
          </div>
          <div>- kamailio 5.6.2 (x86_64/linux)<br>
            flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
            DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC,
            Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
            FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
            USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES,
            TLS_PTHREAD_MUTEX_SHARED</div>
          <div>ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144,
            MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
            poll method support: poll, epoll_lt, epoll_et, sigio_rt,
            select.<br>
            id: unknown<br>
            compiled with gcc 10.2.1<br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          -- <br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">
            <div dir="ltr"><br>
              <div>
                <div>BR,</div>
                <div>Denys Pozniak<br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
<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-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
  </body>
</html>