<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please
use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on
sr-users mailing list:
*
http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C code, ask
on sr-dev mailing list:
*
http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the
developers to troubleshoot the issue.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Troubleshooting
#### Reproduction
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
```
(paste your debugging data here)
```
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them
next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your log messages here)
```
#### SIP Traffic
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save
in a pcap file, then add them next, or attach to issue, or provide a link to download them
(e.g., to a pastebin site).
-->
```
(paste your sip traffic here)
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull
request with a fix.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
(paste your output here)
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04,
CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
(paste your output here)
```
Hello,
Scenario:
step1: Helm install homer. homer goes well.
step2: helm delete homer.
step3: helm install homer.
kamailio restarts twice, then kamailio goes well.
But Kamailio prints below log, why kamailio restarts and report the ERR logs?
Kamailio container detected MySQL is running & bootstrapped
config file doesn't exist, may not connect to SMTP SERVER
0(19) INFO: <core> [core/sctp_core.c:75]: sctp_core_check_support(): SCTP API not
enabled - if you want to use it, load sctp module
0(19) WARNING: <core> [core/socket_info.c:1314]: fix_hostname(): could not rev.
resolve 0.0.0.0
config file ok, exiting...
loading modules under config path: //usr/local/lib64/kamailio/modules/
Listening on
udp: 0.0.0.0:9060
Aliases:
0(20) INFO: <core> [core/sctp_core.c:75]: sctp_core_check_support(): SCTP API not
enabled - if you want to use it, load sctp module
0(20) WARNING: <core> [core/socket_info.c:1314]: fix_hostname(): could not rev.
resolve 0.0.0.0
0(20) WARNING: <core> [core/socket_info.c:1314]: fix_hostname(): could not rev.
resolve 0.0.0.0
0(20) INFO: <core> [core/tcp_main.c:4671]: init_tcp(): using epoll_lt as the io
watch method (auto detected)
loading modules under config path: //usr/local/lib64/kamailio/modules/
Listening on
udp: 0.0.0.0:9060
tcp: 0.0.0.0:39060
Aliases:
0(20) INFO: sipcapture [sipcapture.c:459]: parse_table_names(): INFO: table
name:sip_capture
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"
0(20) ERROR: <core> [db.c:318]: db_do_init2(): could not add connection to the pool
0(20) INFO: <core> [core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is
initially 212992
0(20) INFO: <core> [core/udp_server.c:203]: probe_max_receive_buffer(): SO_RCVBUF
is finally 425984
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"
4(24) ERROR: <core> [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"
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.
3(23) ERROR: <core> [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"
2(22) ERROR: <core> [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.
2(22) ERROR: <core> [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])
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"
1(21) ERROR: <core> [db.c:318]: db_do_init2(): could not add connection to the pool
2(22) ERROR: <core> [core/pt.c:340]: fork_process(): init_child failed for process
2, pid 22, "udp receiver child=1 sock=0.0.0.0:9060"
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.
2(22) CRITICAL: <core> [main.c:1611]: main_loop(): Cannot fork
1(21) ERROR: <core> [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])
1(21) ERROR: <core> [core/pt.c:340]: fork_process(): init_child failed for process
1, pid 21, "udp receiver child=0 sock=0.0.0.0:9060"
1(21) CRITICAL: <core> [main.c:1611]: main_loop(): Cannot fork
4(24) ERROR: <core> [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])
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.
4(24) ERROR: <core> [core/pt.c:340]: fork_process(): init_child failed for process
4, pid 24, "udp receiver child=3 sock=0.0.0.0:9060"
3(23) ERROR: <core> [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])
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"
7(27) ERROR: <core> [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"
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.
7(27) ERROR: <core> [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])
7(27) ERROR: <core> [core/pt.c:340]: fork_process(): init_child failed for process
7, pid 27, "timer"
7(27) CRITICAL: <core> [main.c:1688]: main_loop(): cannot fork timer process
5(25) ERROR: <core> [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"
6(26) ERROR: <core> [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.
6(26) ERROR: <core> [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])
6(26) ERROR: <core> [core/pt.c:340]: fork_process(): init_child failed for process
6, pid 26, "slow timer"
6(26) CRITICAL: <core> [main.c:1672]: main_loop(): cannot fork "slow"
timer process
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.
5(25) ERROR: <core> [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])
5(25) ERROR: <core> [core/pt.c:340]: fork_process(): init_child failed for process
5, pid 25, "udp receiver child=4 sock=0.0.0.0:9060"
5(25) CRITICAL: <core> [main.c:1611]: main_loop(): Cannot fork
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"
9(29) ERROR: <core> [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.
9(29) ERROR: <core> [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])
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"
9(29) ERROR: <core> [core/pt.c:340]: fork_process(): init_child failed for process
9, pid 29, "RTIMER EXEC child=0 timer=ta"
9(29) ERROR: rtimer [rtimer_mod.c:171]: child_init(): failed to start timer routine as
process
9(29) ERROR: <core> [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])
9(29) ERROR: <core> [main.c:1706]: main_loop(): error in init_child
8(28) ERROR: <core> [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.
8(28) ERROR: <core> [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])
8(28) ERROR: <core> [core/pt.c:340]: fork_process(): init_child failed for process
8, pid 28, "secondary timer"
8(28) ERROR: <core> [core/timer_proc.c:418]: sr_wtimer_start(): wtimer starting
failed
8(28) CRITICAL: <core> [main.c:1698]: main_loop(): Cannot start wtimer
3(23) ERROR: <core> [core/pt.c:340]: fork_process(): init_child failed for process
3, pid 23, "udp receiver child=2 sock=0.0.0.0:9060"
4(24) CRITICAL: <core> [main.c:1611]: main_loop(): Cannot fork
15(35) CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 6
15(35) CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 7
3(23) CRITICAL: <core> [main.c:1611]: main_loop(): Cannot fork
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"
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"
11(31) ERROR: <core> [db.c:318]: db_do_init2(): could not add connection to the pool
0(20) ALERT: <core> [main.c:740]: handle_sigs(): child process 21 exited normally,
status=255
0(20) ALERT: <core> [main.c:740]: handle_sigs(): child process 22 exited normally,
status=255
12(32) ERROR: <core> [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.
0(20) ALERT: <core> [main.c:740]: handle_sigs(): child process 26 exited normally,
status=255
11(31) ERROR: <core> [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])
0(20) INFO: <core> [main.c:768]: handle_sigs(): terminating due to SIGCHLD
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.
11(31) ERROR: <core> [core/pt.c:477]: fork_tcp_process(): init_child failed for
process 11, pid 31, "tcp receiver (generic) child=1"
12(32) ERROR: <core> [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])
4(24) INFO: <core> [main.c:823]: sig_usr(): signal 15 received
8(28) INFO: <core> [main.c:823]: sig_usr(): signal 15 received
13(33) INFO: <core> [main.c:823]: sig_usr(): signal 15 received
3(23) INFO: <core> [main.c:823]: sig_usr(): signal 15 received
7(27) INFO: <core> [main.c:823]: sig_usr(): signal 15 received
15(35) INFO: <core> [main.c:823]: sig_usr(): signal 15 received
14(34) INFO: <core> [main.c:823]: sig_usr(): signal 15 received
10(30) INFO: <core> [main.c:823]: sig_usr(): signal 15 received
0(20) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not
initialized
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1896