kamailio fail to start

1,687 views
Skip to first unread message

Eamon

unread,
Aug 31, 2016, 11:11:25 AM8/31/16
to 2600hz-dev

Installing kazoo v4 on deb 8 

installed config files kamailio kamailio-kazoo-modules kamailio-presence-modules
pointed kamailio configs to kazoo.

kamailio fails to start 

 tail -f /var/log/kamailio/kamailio.log
Aug 31 13:03:02 fexco kamailio: ERROR: <core> [cfg.y:3228]: yyparse(): cfg. parser: failed to find command xlog (params 2)
Aug 31 13:03:02 fexco kamailio: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/dispatcher-role.cfg, line 51, column 68: unknown command, missing loadmodule?
Aug 31 13:03:02 fexco kamailio: ERROR: <core> [pvapi.c:828]: pv_parse_spec2(): error searching pvar "sht"
Aug 31 13:03:02 fexco kamailio: ERROR: <core> [pvapi.c:1032]: pv_parse_spec2(): wrong char [f/102] in [$sht(failover=>$ci::current)] at [5 (5)]
Aug 31 13:03:02 fexco kamailio: : <core> [cfg.y:3365]: yyerror_at(): parse error in config file /etc/kamailio/dispatcher-role.cfg, line 59, column 9-36: Can't get from cache: $sht(failover=>$ci::current)
Aug 31 13:03:02 fexco kamailio: WARNING: <core> [ppcfg.c:221]: pp_ifdef_level_check(): different number of preprocessor directives: N(#!IF[N]DEF) - N(#!ENDIF) = 1
Aug 31 13:03:02 fexco kamailio: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Aug 31 13:03:02 fexco kamailio[2508]: ERROR: bad config file (72 errors)
Aug 31 13:03:02 fexco kamailio[2508]: loading modules under config path: /usr/lib64/kamailio/modules/
Aug 31 13:03:02 fexco kamailio[2508]: -ROLE

Sergey Korobkov

unread,
Aug 31, 2016, 11:27:31 AM8/31/16
to 2600hz-dev
In default.cfg change mpath to "/usr/lib/x86_64-linux-gnu/kamailio/modules/" (and check if modules exists in thi directory).

среда, 31 августа 2016 г., 18:11:25 UTC+3 пользователь Eamon написал:

Sergey Korobkov

unread,
Aug 31, 2016, 11:32:21 AM8/31/16
to 2600hz-dev
And i think you also have to install kamailio-extra-modules kamailio-outbound-modules kamailio-utils-modules.

среда, 31 августа 2016 г., 18:27:31 UTC+3 пользователь Sergey Korobkov написал:

Eamon

unread,
Aug 31, 2016, 12:11:56 PM8/31/16
to 2600hz-dev
Thanks Sergey 
forgot to set the mpath 

Eamon

unread,
Sep 15, 2016, 11:24:22 AM9/15/16
to 2600hz-dev
Hi 

i started a new kamailio install today updated default & local config

kamailio fails to start 

tail -f /var/log/kamailio/kamailio.log
Sep 15 14:32:35 kaz3 kamailio[29532]: tcp: localhost:5060
Sep 15 14:32:35 kaz3 kamailio[29532]: udp: kaz1:5060
Sep 15 14:32:35 kaz3 kamailio[29532]: udp: kaz1.kaz.com:5060
Sep 15 14:32:35 kaz3 kamailio[29532]: udp: localhost:5060
Sep 15 14:39:56 kaz3 kamailio: : <core> [cfg.lex:1202]: yylex(): error at /etc/kamailio/local.cfg line 10: '-' not allowed
Sep 15 14:40:08 kaz3 kamailio: : <core> [cfg.lex:1202]: yylex(): error at /etc/kamailio/local.cfg line 10: '-' not allowed
Sep 15 14:41:17 kaz3 kamailio: : <core> [cfg.lex:1202]: yylex(): error at /etc/kamailio/local.cfg line 10: '-' not allowed
Sep 15 14:56:12 kaz3 kamailio: : <core> [cfg.lex:1202]: yylex(): error at /etc/kamailio/local.cfg line 10: '-' not allowed
Sep 15 14:56:26 kaz3 kamailio: : <core> [cfg.lex:1202]: yylex(): error at /etc/kamailio/local.cfg line 10: '-' not allowed
Sep 15 15:09:49 kaz3 kamailio: : <core> [cfg.lex:1202]: yylex(): error at /etc/kamailio/local.cfg line 10: '-' not allowed

Luis Azedo

unread,
Sep 15, 2016, 3:49:52 PM9/15/16
to 2600h...@googlegroups.com
Hi Eamon,

yep, kamailio updated the lexer. we run into that today.

check latest commit into kazoo-configs
things like NAT-HELPER-ROLE are not allowed anymore, they weren't considered before but didn't hurt.
just replace the dashes (-) with underscores (_) and you should be good.

Best


--
You received this message because you are subscribed to the Google Groups "2600hz-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eamon

unread,
Sep 16, 2016, 9:55:26 AM9/16/16
to 2600hz-dev
Hi Luis

thanks, dispather-role.cfg need to remove "\n"
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.

ChuckMan

unread,
Oct 3, 2016, 12:31:59 AM10/3/16
to 2600hz-dev
kamailio 4.4.2 fails to start on Debian 8

with error below (on latest kazoo-config)

● kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server
   Loaded: loaded (/lib/systemd/system/kamailio.service; enabled)
   Active: failed (Result: exit-code) since Sun 2016-10-02 16:05:57 EDT; 4s ago
  Process: 17225 ExecStart=/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP (code=exited, status=255)

Oct 02 16:05:57 uskazu1. kamailio[17225]: ERROR: <core> [pvapi.c:828]: pv_parse_spec2(): error searching pvar "sht"
Oct 02 16:05:57 uskazu1. kamailio[17225]: ERROR: <core> [pvapi.c:1032]: pv_parse_spec2(): wrong char [f/102] in [$sht(failover=>$ci::current)] at [5 (5)]
Oct 02 16:05:57 uskazu1.com kamailio[17225]: : <core> [cfg.y:3365]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/dispatcher-role.cfg, line 59, column 9-36: Can't get from cache: $sht(fai...=>$ci::current)
Oct 02 16:05:57 uskazu1.com kamailio[17225]: WARNING: <core> [ppcfg.c:221]: pp_ifdef_level_check(): different number of preprocessor directives: N(#!IF[N]DEF) - N(#!ENDIF) = 1
Oct 02 16:05:57 uskazu1.com kamailio[17225]: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Oct 02 16:05:57 uskazu1.com kamailio[17225]: ERROR: bad config file (73 errors)
Oct 02 16:05:57 uskazu1.com kamailio[17225]: loading modules under config path: /usr/lib64/kamailio/modules/
Oct 02 16:05:57 uskazu1.com systemd[1]: kamailio.service: control process exited, code=exited status=255
Oct 02 16:05:57 uskazu1.com systemd[1]: Failed to start Kamailio (OpenSER) - the Open Source SIP Server.
Oct 02 16:05:57 uskazu1.com systemd[1]: Unit kamailio.service entered failed state.
Reply all
Reply to author
Forward
0 new messages