Hi Henning,

 

The following are the mysql related  logging I see on initial spinup of the Kamailio 5.2.2 IMS VM:

Jun 16 06:15:28 ubuntu systemd[1]: Starting MySQL Community Server...
Jun 16 06:15:33 ubuntu systemd[1]: Started MySQL Community Server.
Jun 16 06:16:09 ubuntu /usr/local/sbin/kamailio[1617]: ERROR: db_mysql [km_dbase.c:127]: db_mysql_submit_query(): driver error on query: Table 'scscf.impu_subscriber' doesn't exist (1146)
Jun 16 06:16:09 ubuntu kernel: traps: kamailio[1617] general protection fault ip:7f3dfa2874f0 sp:7ffe387dc8c0 error:0 in libmysqlclient.so.20.3.16[7f3dfa261000+33c000]

 

Our mysql version:

mysql --version
mysql  Ver 14.14 Distrib 5.7.29, for Linux (x86_64) using  EditLine wrapper

 

Thanks,

_Martin

From: Henning Westerholt <hw@skalatan.de>
Sent: Monday, June 8, 2020 4:50 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: Martin W Woscek <mwoscek@mitre.org>
Subject: [EXT] RE: kamailio 522 S-CSCF failing to start

 

Hello,

 

the error message below is from the DB startup version check. So do you have sometimes DB errors on this virtual machine?

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Martin W Woscek
Sent: Monday, June 8, 2020 2:46 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: [SR-Users] kamailio 522 S-CSCF failing to start

 

Hello,

There are times that our S-CSCF module just wont start. I’ve tried correlating the issue with some operation such as not de-registering an IMS client (Boghe or imsdroid) prior to shutting down the Kamailio server.  But this isn’t always the case.  Being that we are running this an a Ubuntu Virtual Machine, simply overwriting the image with a backed up VM is the temporary solution.

 

I’ve dropped and created the db for S (kamdbctl) and rearranged the order of loading the presence module with same result.

 

Status of the S-CSCF daemon on failure to start:

# systemctl status kamailio_scscf
● kamailio_scscf.service - LSB: Start the Kamailio SIP proxy server
   Loaded: loaded (/etc/init.d/kamailio_scscf; generated)
   Active: inactive (dead)
     Docs: man:systemd-sysv-generator(8)

Jun 08 08:22:55 ubuntu /usr/local/sbin/kamailio[16511]: INFO: cdp [cdp_mod.c:255]: cdp_exit(): CDiameterPeer child stopping ...
Jun 08 08:22:55 ubuntu /usr/local/sbin/kamailio[16511]: INFO: cdp [cdp_mod.c:257]: cdp_exit(): ... CDiameterPeer child stopped
Jun 08 08:22:55 ubuntu /usr/local/sbin/kamailio[16511]: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Jun 08 08:22:55 ubuntu kamailio_scscf[16495]:  *  already running
Jun 08 08:22:55 ubuntu kamailio_scscf[16495]:    ...done.
Jun 08 08:22:55 ubuntu systemd[1]: Started LSB: Start the Kamailio SIP proxy server.
Jun 08 08:24:03 ubuntu systemd[1]: Stopping LSB: Start the Kamailio SIP proxy server...
Jun 08 08:24:03 ubuntu kamailio_scscf[16517]:  * Stopping Kamailio IMS S-CSCF: kamailio_scscf
Jun 08 08:24:03 ubuntu kamailio_scscf[16517]:    ...done.
Jun 08 08:24:03 ubuntu systemd[1]: Stopped LSB: Start the Kamailio SIP proxy server.
root@ubuntu:~/IMS_manual_scripts# systemctl start kamailio_scscf
root@ubuntu:~/IMS_manual_scripts# systemctl status kamailio_scscf
● kamailio_scscf.service - LSB: Start the Kamailio SIP proxy server
   Loaded: loaded (/etc/init.d/kamailio_scscf; generated)
   Active: active (exited) since Mon 2020-06-08 08:27:23 EDT; 58s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 16543 ExecStart=/etc/init.d/kamailio_scscf start (code=exited, status=0/SUCCESS)

Jun 08 08:27:23 ubuntu /usr/local/sbin/kamailio[16559]: ERROR: <core> [db.c:457]: db_check_table_version(): invalid version 0 for table presentity found, expected 5 (check table structure and ta
Jun 08 08:27:23 ubuntu /usr/local/sbin/kamailio[16559]: ERROR: presence [presence.c:367]: mod_init(): error during table version check
Jun 08 08:27:23 ubuntu /usr/local/sbin/kamailio[16559]: ERROR: <core> [core/sr_module.c:898]: init_mod(): Error while initializing module presence (/usr/local/lib64/kamailio/modules/presence.so)
Jun 08 08:27:23 ubuntu /usr/local/sbin/kamailio[16559]: WARNING: <core> [core/mem/q_malloc.c:480]: qm_free(): WARNING: free(0) called from cdp_avp: cdp_avp_mod.c: cdp_avp_destroy(226)
Jun 08 08:27:23 ubuntu /usr/local/sbin/kamailio[16559]: INFO: cdp [cdp_mod.c:255]: cdp_exit(): CDiameterPeer child stopping ...
Jun 08 08:27:23 ubuntu /usr/local/sbin/kamailio[16559]: INFO: cdp [cdp_mod.c:257]: cdp_exit(): ... CDiameterPeer child stopped
Jun 08 08:27:23 ubuntu /usr/local/sbin/kamailio[16559]: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Jun 08 08:27:23 ubuntu kamailio_scscf[16543]:  *  already running
Jun 08 08:27:23 ubuntu kamailio_scscf[16543]:    ...done.
Jun 08 08:27:23 ubuntu systemd[1]: Started LSB: Start the Kamailio SIP proxy server.

 

 

Any insight is appreciated.

 

Thanks,

_Martin