[SR-Users] Kamailio start failed

sgy nucsgy at 163.com
Sun May 28 16:19:39 CEST 2017


Sorry, it didn't work now.  The attach file are configuration files. Maybe I can send ssh connection infomation to you, then you can login in my machine to debug it. 


--

Best Regards,
Shengy

At 2017-05-28 17:23:18, "David Villasmil" <david.villasmil.work at gmail.com> wrote:
Did configure the mysql connection user/pass?

On Sun, May 28, 2017 at 6:24 AM sgy <nucsgy at 163.com> wrote:



Thank you! When I add "#!define WITH_MYSQL" into kamailio.cfg, it will start failed.


Related log:
root at iZ2ze3uk97m2bfv681kyx4Z:/usr/local/etc/kamailio# tail -f /var/log/syslog
May 28 11:57:18 iZ2ze3uk97m2bfv681kyx4Z kamailio: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
May 28 11:58:46 iZ2ze3uk97m2bfv681kyx4Z kamailio: ERROR: <core> [sr_module.c:582]: load_module(): could not open module </usr/local/lib64/kamailio/modules/db_mysql.so>: /usr/local/lib64/kamailio/modules/db_mysql.so: undefined symbol: mem_lock
May 28 11:58:46 iZ2ze3uk97m2bfv681kyx4Z kamailio: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /usr/local/etc/kamailio//kamailio.cfg, line 221, column 12-24: failed to load module
May 28 11:58:46 iZ2ze3uk97m2bfv681kyx4Z kamailio: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
May 28 12:05:01 iZ2ze3uk97m2bfv681kyx4Z CRON[10925]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
May 28 12:06:16 iZ2ze3uk97m2bfv681kyx4Z kamailio: ERROR: <core> [sr_module.c:582]: load_module(): could not open module </usr/local/lib64/kamailio/modules/db_mysql.so>: /usr/local/lib64/kamailio/modules/db_mysql.so: undefined symbol: mem_lock
May 28 12:06:16 iZ2ze3uk97m2bfv681kyx4Z kamailio: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /usr/local/etc/kamailio//kamailio.cfg, line 221, column 12-24: failed to load module
May 28 12:06:16 iZ2ze3uk97m2bfv681kyx4Z kamailio: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
May 28 12:15:01 iZ2ze3uk97m2bfv681kyx4Z CRON[17940]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
May 28 12:17:02 iZ2ze3uk97m2bfv681kyx4Z CRON[19133]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
^C


Following is my steps to install it.

GIT download and install of latest version of release 4.4.x:

  # git clone https://github.com/kamailio/kamailio.git kamailio
  # cd kamailio
  # git checkout -b 4.4 origin/4.4
  # make cfg; make all; make install




--

Best Regards,
Shengy

在 2017-05-28 11:03:53,"Nathan Ward" <kamailio-sr-users at daork.net> 写道:



On 28/05/2017, at 2:51 PM, sgy <nucsgy at 163.com> wrote:


Hi anyone,



I can't start kamailio, Please help me 


Log:
1. ~# kamctl start
database engine 'MYSQL' loaded
Control engine 'RPCFIFO' loaded


INFO: Starting Kamailio : 


ERROR: PID file /var/run/kamailio/kamailio.pid does not exist -- Kamailio start failed


2. :~# kamailio -M 8 -E -e -dd


 0(1685) DEBUG: <core> [core/route_struct.c:129]: mk_action(): ACTION_#24 #1/2: 3(3)/ (nil)
 0(1685) DEBUG: <core> [core/sr_module.c:694]: find_mod_export_record(): find_export_record: found <t_is_canceled> in module tm [/usr/local/lib64/kamailio/modules/tm.so]
 0(1685) DEBUG: <core> [core/route_struct.c:129]: mk_action(): ACTION_#2 #0/2: 3(3)/ 0x1
 0(1685) DEBUG: <core> [core/route_struct.c:129]: mk_action(): ACTION_#2 #1/2: 3(3)/ 0x1
 0(1685) DEBUG: <core> [core/route_struct.c:129]: mk_action(): ACTION_#16 #0/3: 22(16)/ 0x7f634f00f780
 0(1685) DEBUG: <core> [core/route_struct.c:129]: mk_action(): ACTION_#16 #1/3: 8(8)/ 0x7f634f00feb0
 0(1685) DEBUG: <core> [core/route_struct.c:129]: mk_action(): ACTION_#16 #2/3: 0(0)/ 0x7f6300000000
 0(1685) DEBUG: <core> [core/route.c:129]: route_add(): mapping routing block (0xafc160)[MANAGE_FAILURE] to 1
ERROR: bad config file (1 errors)
 0(1685) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized


Hi,


Can you post the full log? In my experience, Kamailio reports errors as they occur, and then at the end of parsing reports how many - you’ve got the “how many” but not what the errors were.


--
Nathan Ward






 

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users





 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170528/5b50b4be/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio.cfg
Type: application/octet-stream
Size: 23094 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170528/5b50b4be/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamctlrc
Type: application/octet-stream
Size: 3836 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170528/5b50b4be/attachment-0001.obj>


More information about the sr-users mailing list