[SR-Users] Fwd: Invalid Configuration File

Andrew J. Smith andrew.smith at kleindiek.com
Wed Jan 27 11:14:25 CET 2016


Hello!

I followed this tutorial
(http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour)
to the T using virtual box and a debian wheezy image. Actually, I did
change one thing:

This repository "deb http://deb.kamailio.org/kamailio31-nightly
squeeze main" always resulted in a file not found error. So I used
these two lines instead:

deb http://deb.kamailio.org/kamailio squeeze main
deb-src http://deb.kamailio.org/kamailio squeeze main

Everything else is fine except for the fact that the MySQL users have
different names/passwords.

I was able to generate users and configured everything as posted.

When I start the service (/etc/init.d/kamailio start) I get an error message:
"Not starting Kamailio SIP Server: invalid configuration file! ... failed!
 failed!"

followed by a looooooong list of errors (copied below).

I retried with Kamailio33 (31 is not available as far as I can tell).
This version has the MySQL users indicated in the tutorial (openser,
openserro) - newer versions have a MySQL user named kamailio...

Anyway, same long list of errors as before.

I also tried the same procedure on a Raspberry Pi... Everything goes
exactly as described until I try to start the Kamailio server.

If I don't replace the original kamailio.cfg file with the one linked
to in the tutorial, the server starts, but I can't seem to connect to
it using Jitsi.


What am I doing wrong? Any help would be greatly appreciated.


Best regards,
Andrew


--------------------------------------------------------
0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could not
find module <db_mysql> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 191, column 12-24: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <mi_fifo> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 194, column 12-23: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <kex> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 195, column 12-19: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <tm> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 196, column 12-18: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <tmx> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 197, column 12-19: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <sl> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 198, column 12-18: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <rr> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 199, column 12-18: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <pv> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 200, column 12-18: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <maxfwd> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 201, column 12-22: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <usrloc> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 202, column 12-22: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <registrar> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 203, column 12-25: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <textops> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 204, column 12-23: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <siputils> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 205, column 12-24: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <xlog> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 206, column 12-20: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <sanity> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 207, column 12-22: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <ctl> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 208, column 12-19: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <mi_rpc> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 209, column 12-22: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <acc> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 210, column 12-19: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <auth> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 213, column 12-20: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <auth_db> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 214, column 12-23: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <nathelper> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 234, column 12-25: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <rtpproxy> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 235, column 12-24: failed to load
module 0(20143) ERROR: <core> [sr_module.c:565]: load_module(): could
not find module <tls> in
</usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/> 0(20143)
: <core> [cfg.y:3432]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 239, column 12-19: failed to load
module 0(20143) ERROR: <core> [modparam.c:150]: set_mod_param_regex():
No module matching <mi_fifo> found 0(20143) : <core> [cfg.y:3435]:
yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg,
line 255, column 54: Can't set module parameter 0(20143) ERROR: <core>
[modparam.c:150]: set_mod_param_regex(): No module matching <tm> found
0(20143) : <core> [cfg.y:3435]: yyerror_at(): parse error in config
file /etc/kamailio/kamailio.cfg, line 260, column 39: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <tm> found 0(20143) : <core>
[cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 262, column 33: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <tm> found 0(20143) : <core>
[cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 264, column 38: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <rr> found 0(20143) : <core>
[cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 269, column 35: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <rr> found 0(20143) : <core>
[cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 271, column 35: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <registrar> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 275, column 44: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <acc> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 284, column 33: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <acc> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 285, column 32: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <acc> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 286, column 36: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <acc> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 290, column 38: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <acc> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 292, column 30: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <acc> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 293, column 37: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <acc> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 295, column 73: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <acc> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 296, column 45: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <usrloc> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 310, column 75: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <usrloc> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 311, column 32: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <usrloc> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 312, column 35: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <auth_db> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 318, column 76: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <auth_db> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 319, column 41: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <auth_db> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 320, column 50: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <auth_db> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 321, column 43: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <auth_db> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 322, column 36: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <rtpproxy> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 363, column 77: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <nathelper> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 366, column 45: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <nathelper> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 367, column 43: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <nathelper> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 368, column 41: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <nathelper> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 369, column 64: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <nathelper|registrar> found
0(20143) : <core> [cfg.y:3435]: yyerror_at(): parse error in config
file /etc/kamailio/kamailio.cfg, line 372, column 65: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <usrloc> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 373, column 34: Can't set module
parameter 0(20143) ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <tls> found 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 379, column 50: Can't set module
parameter 0(20143) ERROR: <core> [cfg.y:3295]: yyparse(): cfg. parser:
failed to find command is_method (params 1) 0(20143) : <core>
[cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 418, column 24: unknown command,
missing loadmodule? 0(20143) ERROR: <core> [cfg.y:3295]: yyparse():
cfg. parser: failed to find command t_check_trans (params 0) 0(20143)
: <core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 420, column 21: unknown command,
missing loadmodule? 0(20143) ERROR: <core> [cfg.y:3295]: yyparse():
cfg. parser: failed to find command t_relay (params 0) 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 421, column 12: unknown command,
missing loadmodule? 0(20143) ERROR: <core> [cfg.y:3295]: yyparse():
cfg. parser: failed to find command t_check_trans (params 0) 0(20143)
: <core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 425, column 16: unknown command,
missing loadmodule? 0(20143) ERROR: <core> [cfg.y:3295]: yyparse():
cfg. parser: failed to find command remove_hf (params 1) 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 432, column 19: unknown command,
missing loadmodule? 0(20143) ERROR: <core> [cfg.y:3295]: yyparse():
cfg. parser: failed to find command is_method (params 1) 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 433, column 34: unknown command,
missing loadmodule? 0(20143) ERROR: <core> [cfg.y:3295]: yyparse():
cfg. parser: failed to find command record_route (params 0) 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 434, column 16: unknown command,
missing loadmodule? 0(20143) ERROR: <core> [cfg.y:3295]: yyparse():
cfg. parser: failed to find command is_method (params 1) 0(20143) :
<core> [cfg.y:3435]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 437, column 24: unknown command,
missing loadmodule? 0(20143) ERROR: <core> [pvapi.c:825]:
pv_parse_spec2(): error searching pvar "rU" 0(20143) ERROR: <core>
[pvapi.c:1029]: pv_parse_spec2(): wrong char [U/85] in [$rU] at [2
(0)] 0(20143) : <core> [cfg.y:3432]: yyerror_at(): parse error in
config file /etc/kamailio/kamailio.cfg, line 453, column 6-8: Can't
get from cache: $rU ERROR: bad config file (63 errors) 0(20143) INFO:
<core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
... failed!
 failed!
--------------------------------------------------------



More information about the sr-users mailing list