Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors During DEB Build #112

Closed
kismetgerald opened this issue Nov 14, 2015 · 7 comments
Closed

Errors During DEB Build #112

kismetgerald opened this issue Nov 14, 2015 · 7 comments
Assignees

Comments

@kismetgerald
Copy link

Hello guys,

I'm reinstalling Homer5 - this time using the DEB Build section of your Wiki - and installing on a vanilla Debian 8.1 x64 VPS. I thought I'd report any error messages I encounter during the install so you guys can use it to make any necessary improvements.

1. Error immediately after running "../configure --enable-deb"
../configure: line 2142: debian: command not found
../configure: line 2144: jessie: command not found
2. Warning during execution of "./setup.sh"
Setting up x11-common (1:7.7+7) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults

That's it for now, seems like everything else worked fine. Now I'm gonna install the package and see if it's successful.

@kismetgerald
Copy link
Author

Providing additional feedback as promised.....

So the build was successful, and I was able to install all the .deb packages. Unfortunately, Kamailio won't start after issuing "service kamailio start". Below is the message posted syslog.

I did notice, however, that the path for the modules listed in the syslog doesn't exist - looks like the package install didn't create this directory.

I'm willing and available to share any config files you need to see, thanks.

Nov 14 13:25:25 freeswitch2 kamailio[682]: Stopping Kamailio SIP Server: kamailio:.
Nov 14 13:25:25 freeswitch2 kamailio[692]: Not starting Kamailio SIP Server: invalid configuration file! ... failed!
Nov 14 13:25:25 freeswitch2 kamailio[692]: failed!
Nov 14 13:25:25 freeswitch2 kamailio[692]: 0(703) ERROR: <core> [sr_module.c:565]: load_module(): could not find module <pv> in </usr/lib64/kamailio/modules> 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 39, column 12-18: failed to load module 0(703) ERROR: <core> [sr_module.c:565]: load_module(): could not find module <db_mysql> in </usr/lib64/kamailio/modules> 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 40, column 12-24: failed to load module 0(703) ERROR: <core> [sr_module.c:565]: load_module(): could not find module <sipcapture> in </usr/lib64/kamailio/modules> 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 41, column 12-26: failed to load module 0(703) ERROR: <core> [sr_module.c:565]: load_module(): could not find module <textops> in </usr/lib64/kamailio/modules> 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 42, column 12-23: failed to load module 0(703) ERROR: <core> [sr_module.c:565]: load_module(): could not find module <rtimer> in </usr/lib64/kamailio/modules> 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 43, column 12-22: failed to load module 0(703) ERROR: <core> [sr_module.c:565]: load_module(): could not find module <xlog> in </usr/lib64/kamailio/modules> 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 44, column 12-20: failed to load module 0(703) ERROR: <core> [sr_module.c:565]: load_module(): could not find module <sqlops> in </usr/lib64/kamailio/modules> 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 45, column 12-22: failed to load module 0(703) ERROR: <core> [sr_module.c:565]: load_module(): could not find module <htable> in </usr/lib64/kamailio/modules> 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/ka
Nov 14 13:25:25 freeswitch2 kamailio[692]: mailio.cfg, line 46, column 12-22: failed to load module 0(703) ERROR: <core> [sr_module.c:565]: load_module(): could not find module <tm> in </usr/lib64/kamailio/modules> 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 47, column 12-18: failed to load module 0(703) ERROR: <core> [sr_module.c:565]: load_module(): could not find module <sl> in </usr/lib64/kamailio/modules> 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 48, column 12-18: failed to load module 0(703) ERROR: <core> [sr_module.c:565]: load_module(): could not find module <siputils> in </usr/lib64/kamailio/modules> 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 49, column 12-24: failed to load module 0(703) ERROR: <core> [sr_module.c:565]: load_module(): could not find module <exec> in </usr/lib64/kamailio/modules> 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 50, column 12-20: failed to load module 0(703) ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <htable> found 0(703) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 53, column 56: Can't set module parameter 0(703) ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <htable> found 0(703) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 54, column 55: Can't set module parameter 0(703) ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <htable> found 0(703) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 56, column 55: Can't set module parameter 0(703) ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <rtimer> found 0(703) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 58, column 58: Can't
Nov 14 13:25:25 freeswitch2 kamailio[692]: set module parameter 0(703) ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <rtimer> found 0(703) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 59, column 56: Can't set module parameter 0(703) ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <sqlops> found 0(703) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 61, column 99: Can't set module parameter 0(703) ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <sipcapture> found 0(703) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 66, column 96: Can't set module parameter 0(703) ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <sipcapture> found 0(703) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 67, column 39: Can't set module parameter 0(703) ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <sipcapture> found 0(703) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 68, column 43: Can't set module parameter 0(703) ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <sipcapture> found 0(703) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 69, column 43: Can't set module parameter 0(703) ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <sipcapture> found 0(703) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 70, column 50: Can't set module parameter 0(703) ERROR: <core> [pvapi.c:825]: pv_parse_spec2(): error searching pvar "sht" 0(703) ERROR: <core> [pvapi.c:1029]: pv_parse_spec2(): wrong char [a/97] in [$sht(a=>method::all)] at [5 (5)] 0(703) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 80, column 5-24: C
Nov 14 13:25:25 freeswitch2 rsyslogd-2007: action 'action 19' suspended, next retry is Sat Nov 14 13:25:55 2015 [try http://www.rsyslog.com/e/2007 ]
Nov 14 13:25:25 freeswitch2 kamailio[692]: an't get from cache: $sht(a=>method::all) ERROR: bad config file (24 errors) ... failed!
Nov 14 13:25:25 freeswitch2 systemd[1]: kamailio.service: control process exited, code=exited status=1
Nov 14 13:25:25 freeswitch2 systemd[1]: Failed to start LSB: Start the Kamailio SIP proxy server.
Nov 14 13:25:25 freeswitch2 systemd[1]: Unit kamailio.service entered failed state.
Nov 14 13:25:25 freeswitch2 kamailio[692]: failed!

@kismetgerald
Copy link
Author

Update: Kamailio has started successfully after I recompiled and installed using the instructions in the "Kamailio" section of the "Manual Setup from Source (advanced)" section of your wiki.

So basically for me the DEB Build results in a broken install, whereas following the Manual setup was successful. But not before modifying the config file and binary locations in /etc/default/kamailio, and /etc/init.d/kamailio.

@lmangani
Copy link
Member

Thanks for the feedback, its very valuable to us - we will fix the package builds and keep this open for tracking. @kvishnivetsky please check whenever possible

@kismetgerald
Copy link
Author

@lmangani

Thanks, I'm glad to be of assistance. I'm aggressively learning Linux so anything you need me to do to test something for you, let me know. I'm not a coder so it's the best I can do to contribute. I will financially donate soon when I'm able to, but for now, all I can impart is my time and efforts. Thanks again.

PS. Still struggling to get CaptAgent to send packets to Homer. I've been successful in getting Homer and Kamailio installed on the receiving server. Now working on getting CaptAgent to work on the Freeswitch server so I can see the packets. I've verified no firewalls are in the way by using Xlite to send fake registrations to the Homer box. Using SNGREP, I saw the register packets come in on port 9060. Any assistance would be highly appreciated.

@lmangani
Copy link
Member

Testing is more precious than any donation at this stage and having no experience is a plus to make sure our releases are usable without requirements - if you will be able to retest the packages as we fix them, that would be just great help and greatly welcome.

Drop a mail to support@sipcapture.org and I will help you out with the agent in parallel as that seems to be more of a system issue.

@lmangani
Copy link
Member

Closing, reopen if needed or if you want/can perform more package testing

@dpocock
Copy link

dpocock commented Sep 13, 2016

the failure to load the modules could be occurring because mpath is not defined to the location where the Kamailio Debian packages install modules.

In the kamailio.cfg for Debian, they have

# set paths to location of modules (to sources or installation folders)
#!ifdef WITH_SRCPATH
mpath="modules/"
#!else
mpath="/usr/lib/x86_64-linux-gnu/kamailio/modules/"
#!endif

The exact location varies depending on the architecture, e.g. x86_64 in the above example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants