Hi,
I have recently migrated from Kamailio 5.2.5 to Kamailio 5.5.7. After a migration, the Kamailio crashed. Also, there were a lot of errors and warnings. Can someone help me to understand why this happened and what could be the solution?
Logs (upside down): 18(397) INFO: <core> [main.c:859]: sig_usr(): signal 15 received 2(381) INFO: <core> [main.c:859]: sig_usr(): signal 15 received 30(409) INFO: <core> [main.c:859]: sig_usr(): signal 15 received 8(387) INFO: <core> [main.c:859]: sig_usr(): signal 15 received 35(414) WARNING: <core> [core/tcp_read.c:1840]: handle_io(): F_TCPCONN connection marked as bad: 0x7f526aa7f458 id 0 fd -1 refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/tcp_read.c:1863]: handle_io(): io_watch_del failed for 0x7f526aa7f458 id 0 fd -1, state -1, flags 0, main fd 0, refcnt 0 ([]:0 -> []:0) 35(414) WARNING: <core> [core/tcp_read.c:1840]: handle_io(): F_TCPCONN connection marked as bad: 0x7f526aa7f458 id 0 fd -1 refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/tcp_read.c:1863]: handle_io(): io_watch_del failed for 0x7f526aa7f458 id 0 fd -1, state -1, flags 0, main fd 0, refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/io_wait.h:596]: io_watch_del(): invalid fd -1, not in [0, 2) 35(414) CRITICAL: <core> [core/tcp_read.c:1863]: handle_io(): io_watch_del failed for 0x7f526aa7f458 id 0 fd -1, state -1, flags 0, main fd 0, refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/tcp_read.c:1863]: handle_io(): io_watch_del failed for 0x7f526aa7f458 id 0 fd -1, state -1, flags 0, main fd 0, refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/io_wait.h:596]: io_watch_del(): invalid fd -1, not in [0, 2) 35(414) CRITICAL: <core> [core/tcp_read.c:1863]: handle_io(): io_watch_del failed for 0x7f526aa7f458 id 0 fd -1, state -1, flags 0, main fd 0, refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/tcp_read.c:1863]: handle_io(): io_watch_del failed for 0x7f526aa7f458 id 0 fd -1, state -1, flags 0, main fd 0, refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/io_wait.h:596]: io_watch_del(): invalid fd -1, not in [0, 2) 35(414) WARNING: <core> [core/tcp_read.c:1840]: handle_io(): F_TCPCONN connection marked as bad: 0x7f526aa7f458 id 0 fd -1 refcnt 0 ([]:0 -> []:0) 35(414) WARNING: <core> [core/tcp_read.c:1840]: handle_io(): F_TCPCONN connection marked as bad: 0x7f526aa7f458 id 0 fd -1 refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/io_wait.h:596]: io_watch_del(): invalid fd -1, not in [0, 2) 35(414) WARNING: <core> [core/tcp_read.c:1840]: handle_io(): F_TCPCONN connection marked as bad: 0x7f526aa7f458 id 0 fd -1 refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/io_wait.h:596]: io_watch_del(): invalid fd -1, not in [0, 2) 35(414) WARNING: <core> [core/tcp_read.c:1840]: handle_io(): F_TCPCONN connection marked as bad: 0x7f526aa7f458 id 0 fd -1 refcnt 0 ([]:0 -> []:0) 35(414) WARNING: <core> [core/tcp_read.c:1840]: handle_io(): F_TCPCONN connection marked as bad: 0x7f526aa7f458 id 0 fd -1 refcnt 0 ([]:0 -> []:0) 35(414) WARNING: <core> [core/tcp_read.c:1840]: handle_io(): F_TCPCONN connection marked as bad: 0x7f526aa7f458 id 0 fd -1 refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/tcp_read.c:1863]: handle_io(): io_watch_del failed for 0x7f526aa7f458 id 0 fd -1, state -1, flags 0, main fd 0, refcnt 0 ([]:0 -> []:0) 35(414) WARNING: <core> [core/tcp_read.c:1840]: handle_io(): F_TCPCONN connection marked as bad: 0x7f526aa7f458 id 0 fd -1 refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/tcp_read.c:1863]: handle_io(): io_watch_del failed for 0x7f526aa7f458 id 0 fd -1, state -1, flags 0, main fd 0, refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/io_wait.h:596]: io_watch_del(): invalid fd -1, not in [0, 2) 35(414) WARNING: <core> [core/tcp_read.c:1840]: handle_io(): F_TCPCONN connection marked as bad: 0x7f526aa7f458 id 0 fd -1 refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/tcp_read.c:1863]: handle_io(): io_watch_del failed for 0x7f526aa7f458 id 0 fd -1, state -1, flags 0, main fd 0, refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/tcp_read.c:1863]: handle_io(): io_watch_del failed for 0x7f526aa7f458 id 0 fd -1, state -1, flags 0, main fd 0, refcnt 0 ([]:0 -> []:0) 35(414) WARNING: <core> [core/tcp_read.c:1840]: handle_io(): F_TCPCONN connection marked as bad: 0x7f526aa7f458 id 0 fd -1 refcnt 0 ([]:0 -> []:0) 35(414) CRITICAL: <core> [core/io_wait.h:596]: io_watch_del(): invalid fd -1, not in [0, 2)
OS: Ubuntu 22.04.5 LTS \n \l
# kamailio --version version: kamailio 5.5.7 (x86_64/linux) 272fdd 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 ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 272fdd compiled on 14:21:35 Oct 21 2024 with gcc 11.4.0
# dpkg -l |grep openssl ii openssl 3.0.2-0ubuntu1.18 amd64 Secure Sockets Layer toolkit - cryptographic utility
Regards, Miteshkumar Thakkar
Have you considered updating to either 5.7 or 5.8?
Kamailio maintains the last two active branches, which in this case is 5.7.x and 5.8.x. There’s been a good amount of work on tcp, tls, etc since 5.2 and 5.5.
Regards,
Fred Posner