<h3>Description</h3>

<h3>Troubleshooting</h3>
<h4>Reproduction</h4>

<h4>Debugging Data</h4>

<pre><code>(paste your debugging data here)
</code></pre>
<h4>Log Messages</h4>

<pre><code>(paste your log messages here)
</code></pre>
<h4>SIP Traffic</h4>

<pre><code>(paste your sip traffic here)
</code></pre>
<h3>Possible Solutions</h3>

<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>(paste your output here)
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>

<pre><code>(paste your output here)
</code></pre>
<p>Hello,</p>
<p>Scenario:<br>
step1: Helm install homer. homer goes well.<br>
step2: helm delete homer.<br>
step3: helm install homer.<br>
kamailio restarts twice, then kamailio goes well.</p>
<p>But Kamailio prints below log, why kamailio restarts and report the ERR logs?</p>
<p>Kamailio container detected MySQL is running & bootstrapped<br>
config file doesn't exist, may not connect to SMTP SERVER<br>
0(19) INFO:  [core/sctp_core.c:75]: sctp_core_check_support(): SCTP API not enabled - if you want to use it, load sctp module<br>
0(19) WARNING:  [core/socket_info.c:1314]: fix_hostname(): could not rev. resolve 0.0.0.0<br>
config file ok, exiting...<br>
loading modules under config path: //usr/local/lib64/kamailio/modules/<br>
Listening on<br>
udp: 0.0.0.0:9060<br>
Aliases:</p>
<p>0(20) INFO:  [core/sctp_core.c:75]: sctp_core_check_support(): SCTP API not enabled - if you want to use it, load sctp module<br>
0(20) WARNING:  [core/socket_info.c:1314]: fix_hostname(): could not rev. resolve 0.0.0.0<br>
0(20) WARNING:  [core/socket_info.c:1314]: fix_hostname(): could not rev. resolve 0.0.0.0<br>
0(20) INFO:  [core/tcp_main.c:4671]: init_tcp(): using epoll_lt as the io watch method (auto detected)<br>
loading modules under config path: //usr/local/lib64/kamailio/modules/<br>
Listening on<br>
udp: 0.0.0.0:9060<br>
tcp: 0.0.0.0:39060<br>
Aliases:</p>
<p>0(20) INFO: sipcapture [sipcapture.c:459]: parse_table_names(): INFO: table name:sip_capture<br>
0(20) ERROR: db_mysql [km_my_con.c:129]: db_mysql_new_connection(): driver error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110 "Connection timed out"<br>
0(20) ERROR:  [db.c:318]: db_do_init2(): could not add connection to the pool 0(20) INFO:  [core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992<br>
0(20) INFO:  [core/udp_server.c:203]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984<br>
4(24) ERROR: db_mysql [km_my_con.c:129]: db_mysql_new_connection(): driver error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110 "Connection timed out"<br>
4(24) ERROR:  [db.c:318]: db_do_init2(): could not add connection to the pool 3(23) ERROR: db_mysql [km_my_con.c:129]: db_mysql_new_connection(): driver error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110 "Connection timed out"<br>
4(24) ERROR: sipcapture [sipcapture.c:1150]: child_init(): unable to connect to database [mysql://homer_user:homer_password@10.254.123.234:3306/homer_data] from capture_mode param.<br>
3(23) ERROR:  [db.c:318]: db_do_init2(): could not add connection to the pool 2(22) ERROR: db_mysql [km_my_con.c:129]: db_mysql_new_connection(): driver error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110 "Connection timed out"<br>
2(22) ERROR:  [db.c:318]: db_do_init2(): could not add connection to the pool 2(22) ERROR: sipcapture [sipcapture.c:1150]: child_init(): unable to connect to database [mysql://homer_user:homer_password@10.254.123.234:3306/homer_data] from capture_mode param.<br>
2(22) ERROR:  [core/sr_module.c:925]: init_mod_child(): error while initializing module sipcapture (//usr/local/lib64/kamailio/modules/sipcapture.so) (idx: 2 rank: 2 desc: [udp receiver child=1 sock=0.0.0.0:9060])<br>
1(21) ERROR: db_mysql [km_my_con.c:129]: db_mysql_new_connection(): driver error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110 "Connection timed out"<br>
1(21) ERROR:  [db.c:318]: db_do_init2(): could not add connection to the pool 2(22) ERROR:  [core/pt.c:340]: fork_process(): init_child failed for process 2, pid 22, "udp receiver child=1 sock=0.0.0.0:9060"<br>
1(21) ERROR: sipcapture [sipcapture.c:1150]: child_init(): unable to connect to database [mysql://homer_user:homer_password@10.254.123.234:3306/homer_data] from capture_mode param.<br>
2(22) CRITICAL:  [main.c:1611]: main_loop(): Cannot fork<br>
1(21) ERROR:  [core/sr_module.c:925]: init_mod_child(): error while initializing module sipcapture (//usr/local/lib64/kamailio/modules/sipcapture.so) (idx: 1 rank: 1 desc: [udp receiver child=0 sock=0.0.0.0:9060])<br>
1(21) ERROR:  [core/pt.c:340]: fork_process(): init_child failed for process 1, pid 21, "udp receiver child=0 sock=0.0.0.0:9060"<br>
1(21) CRITICAL:  [main.c:1611]: main_loop(): Cannot fork<br>
4(24) ERROR:  [core/sr_module.c:925]: init_mod_child(): error while initializing module sipcapture (//usr/local/lib64/kamailio/modules/sipcapture.so) (idx: 4 rank: 4 desc: [udp receiver child=3 sock=0.0.0.0:9060])<br>
3(23) ERROR: sipcapture [sipcapture.c:1150]: child_init(): unable to connect to database [mysql://homer_user:homer_password@10.254.123.234:3306/homer_data] from capture_mode param.<br>
4(24) ERROR:  [core/pt.c:340]: fork_process(): init_child failed for process 4, pid 24, "udp receiver child=3 sock=0.0.0.0:9060"<br>
3(23) ERROR:  [core/sr_module.c:925]: init_mod_child(): error while initializing module sipcapture (//usr/local/lib64/kamailio/modules/sipcapture.so) (idx: 3 rank: 3 desc: [udp receiver child=2 sock=0.0.0.0:9060])<br>
7(27) ERROR: db_mysql [km_my_con.c:129]: db_mysql_new_connection(): driver error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110 "Connection timed out"<br>
7(27) ERROR:  [db.c:318]: db_do_init2(): could not add connection to the pool 5(25) ERROR: db_mysql [km_my_con.c:129]: db_mysql_new_connection(): driver error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110 "Connection timed out"<br>
7(27) ERROR: sipcapture [sipcapture.c:1150]: child_init(): unable to connect to database [mysql://homer_user:homer_password@10.254.123.234:3306/homer_data] from capture_mode param.<br>
7(27) ERROR:  [core/sr_module.c:925]: init_mod_child(): error while initializing module sipcapture (//usr/local/lib64/kamailio/modules/sipcapture.so) (idx: 7 rank: -1 desc: [timer])<br>
7(27) ERROR:  [core/pt.c:340]: fork_process(): init_child failed for process 7, pid 27, "timer"<br>
7(27) CRITICAL:  [main.c:1688]: main_loop(): cannot fork timer process<br>
5(25) ERROR:  [db.c:318]: db_do_init2(): could not add connection to the pool 6(26) ERROR: db_mysql [km_my_con.c:129]: db_mysql_new_connection(): driver error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110 "Connection timed out"<br>
6(26) ERROR:  [db.c:318]: db_do_init2(): could not add connection to the pool 6(26) ERROR: sipcapture [sipcapture.c:1150]: child_init(): unable to connect to database [mysql://homer_user:homer_password@10.254.123.234:3306/homer_data] from capture_mode param.<br>
6(26) ERROR:  [core/sr_module.c:925]: init_mod_child(): error while initializing module sipcapture (//usr/local/lib64/kamailio/modules/sipcapture.so) (idx: 6 rank: -1 desc: [slow timer])<br>
6(26) ERROR:  [core/pt.c:340]: fork_process(): init_child failed for process 6, pid 26, "slow timer"<br>
6(26) CRITICAL:  [main.c:1672]: main_loop(): cannot fork "slow" timer process<br>
5(25) ERROR: sipcapture [sipcapture.c:1150]: child_init(): unable to connect to database [mysql://homer_user:homer_password@10.254.123.234:3306/homer_data] from capture_mode param.<br>
5(25) ERROR:  [core/sr_module.c:925]: init_mod_child(): error while initializing module sipcapture (//usr/local/lib64/kamailio/modules/sipcapture.so) (idx: 5 rank: 5 desc: [udp receiver child=4 sock=0.0.0.0:9060])<br>
5(25) ERROR:  [core/pt.c:340]: fork_process(): init_child failed for process 5, pid 25, "udp receiver child=4 sock=0.0.0.0:9060"<br>
5(25) CRITICAL:  [main.c:1611]: main_loop(): Cannot fork<br>
9(29) ERROR: db_mysql [km_my_con.c:129]: db_mysql_new_connection(): driver error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110 "Connection timed out"<br>
9(29) ERROR:  [db.c:318]: db_do_init2(): could not add connection to the pool 9(29) ERROR: sipcapture [sipcapture.c:1150]: child_init(): unable to connect to database [mysql://homer_user:homer_password@10.254.123.234:3306/homer_data] from capture_mode param.<br>
9(29) ERROR:  [core/sr_module.c:925]: init_mod_child(): error while initializing module sipcapture (//usr/local/lib64/kamailio/modules/sipcapture.so) (idx: 9 rank: -1 desc: [RTIMER EXEC child=0 timer=ta])<br>
8(28) ERROR: db_mysql [km_my_con.c:129]: db_mysql_new_connection(): driver error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110 "Connection timed out"<br>
9(29) ERROR:  [core/pt.c:340]: fork_process(): init_child failed for process 9, pid 29, "RTIMER EXEC child=0 timer=ta"<br>
9(29) ERROR: rtimer [rtimer_mod.c:171]: child_init(): failed to start timer routine as process<br>
9(29) ERROR:  [core/sr_module.c:925]: init_mod_child(): error while initializing module rtimer (//usr/local/lib64/kamailio/modules/rtimer.so) (idx: 9 rank: 0 desc: [RTIMER EXEC child=0 timer=ta])<br>
9(29) ERROR:  [main.c:1706]: main_loop(): error in init_child<br>
8(28) ERROR:  [db.c:318]: db_do_init2(): could not add connection to the pool 8(28) ERROR: sipcapture [sipcapture.c:1150]: child_init(): unable to connect to database [mysql://homer_user:homer_password@10.254.123.234:3306/homer_data] from capture_mode param.<br>
8(28) ERROR:  [core/sr_module.c:925]: init_mod_child(): error while initializing module sipcapture (//usr/local/lib64/kamailio/modules/sipcapture.so) (idx: 8 rank: -1 desc: [secondary timer])<br>
8(28) ERROR:  [core/pt.c:340]: fork_process(): init_child failed for process 8, pid 28, "secondary timer"<br>
8(28) ERROR:  [core/timer_proc.c:418]: sr_wtimer_start(): wtimer starting failed<br>
8(28) CRITICAL:  [main.c:1698]: main_loop(): Cannot start wtimer<br>
3(23) ERROR:  [core/pt.c:340]: fork_process(): init_child failed for process 3, pid 23, "udp receiver child=2 sock=0.0.0.0:9060"<br>
4(24) CRITICAL:  [main.c:1611]: main_loop(): Cannot fork<br>
15(35) CRITICAL:  [core/pass_fd.c:277]: receive_fd(): EOF on 6<br>
15(35) CRITICAL:  [core/pass_fd.c:277]: receive_fd(): EOF on 7<br>
3(23) CRITICAL:  [main.c:1611]: main_loop(): Cannot fork<br>
11(31) ERROR: db_mysql [km_my_con.c:129]: db_mysql_new_connection(): driver error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110 "Connection timed out"<br>
12(32) ERROR: db_mysql [km_my_con.c:129]: db_mysql_new_connection(): driver error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110 "Connection timed out"<br>
11(31) ERROR:  [db.c:318]: db_do_init2(): could not add connection to the pool 0(20) ALERT:  [main.c:740]: handle_sigs(): child process 21 exited normally, status=255<br>
0(20) ALERT:  [main.c:740]: handle_sigs(): child process 22 exited normally, status=255<br>
12(32) ERROR:  [db.c:318]: db_do_init2(): could not add connection to the pool11(31) ERROR: sipcapture [sipcapture.c:1150]: child_init(): unable to connect to database [mysql://homer_user:homer_password@10.254.123.234:3306/homer_data] from capture_mode param.<br>
0(20) ALERT:  [main.c:740]: handle_sigs(): child process 26 exited normally, status=255<br>
11(31) ERROR:  [core/sr_module.c:925]: init_mod_child(): error while initializing module sipcapture (//usr/local/lib64/kamailio/modules/sipcapture.so) (idx: 11 rank: 7 desc: [tcp receiver (generic) child=1])<br>
0(20) INFO:  [main.c:768]: handle_sigs(): terminating due to SIGCHLD<br>
12(32) ERROR: sipcapture [sipcapture.c:1150]: child_init(): unable to connect to database [mysql://homer_user:homer_password@10.254.123.234:3306/homer_data] from capture_mode param.<br>
11(31) ERROR:  [core/pt.c:477]: fork_tcp_process(): init_child failed for process 11, pid 31, "tcp receiver (generic) child=1"<br>
12(32) ERROR:  [core/sr_module.c:925]: init_mod_child(): error while initializing module sipcapture (//usr/local/lib64/kamailio/modules/sipcapture.so) (idx: 12 rank: 8 desc: [tcp receiver (generic) child=2])<br>
4(24) INFO:  [main.c:823]: sig_usr(): signal 15 received<br>
8(28) INFO:  [main.c:823]: sig_usr(): signal 15 received<br>
13(33) INFO:  [main.c:823]: sig_usr(): signal 15 received<br>
3(23) INFO:  [main.c:823]: sig_usr(): signal 15 received<br>
7(27) INFO:  [main.c:823]: sig_usr(): signal 15 received<br>
15(35) INFO:  [main.c:823]: sig_usr(): signal 15 received<br>
14(34) INFO:  [main.c:823]: sig_usr(): signal 15 received<br>
10(30) INFO:  [main.c:823]: sig_usr(): signal 15 received<br>
0(20) INFO:  [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1896">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZadUAFglOvuNBNGOXsv-aBhwCXOsks5vYH3EgaJpZM4b7WTX">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36Zf0heQbPUODbMGjhTWDxaYZDek0Aks5vYH3EgaJpZM4b7WTX.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Kamailio restarts. (#1896)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1896"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1896",
"url": "https://github.com/kamailio/kamailio/issues/1896",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>