More information was available in /var/log/messages:
Oct 12 15:23:25 p-cscf kamailio: INFO: pv [pv_shv.c:60]: shvar_init_locks(): locks array
size 16
Oct 12 15:23:25 p-cscf kamailio: ERROR: ctl [init_socks.c:115]: init_unix_sock(): ERROR:
init_unix_sock: bind: No such file or directory [2]
Oct 12 15:23:25 p-cscf kamailio: ERROR: ctl [ctl.c:290]: mod_init(): ERROR: ctl: mod_init:
init ctrl. sockets failed
Oct 12 15:23:25 p-cscf kamailio: ERROR: <core> [core/sr_module.c:968]: init_mod():
Error while initializing module ctl (/usr/local/lib64/kamailio/modules/ctl.so)
I resolved the problem by providing the proper path for these two configuration items:
modparam("ctl", "binrpc",
"unix:/var/run/kamailio_pcscf/kamailio_ctl")
modparam("dispatcher", "list_file",
"/etc/kamailio_pcscf/dispatcher.list")
-----Original Message-----
From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of
ron.kamailio(a)mcleodnet.com
Sent: Thursday, October 12, 2017 1:36 PM
To: 'Kamailio (SER) - Users Mailing List'
Subject: [SR-Users] How to troubleshoot "ERROR: error while initializing
modules"
I have built kamailio-5.0.3 from source with no issues. I have used the P-CSCF
configuration examples from ./misc/examples/pcscf and the database definitions from
./utils/kamctl/mysql.
When I check the configuration file, it is reported to be "ok":
# /usr/local/sbin/kamailio -c
loading modules under config path: /usr/local/lib64/kamailio/modules/
0(10835) INFO: pv [pv_shv.c:60]: shvar_init_locks(): locks array size 16
0(10835) INFO: <core> [core/sctp_core.c:75]: sctp_core_check_support():
SCTP API not enabled - if you want to use it, load sctp module Listening on
udp: pcscf.core.ims1.test [172.25.152.20]:4060
Aliases:
*: pcscf.core.ims1.test:*
config file ok, exiting...
But when I attempt to run the application, it fails with an error message
"ERROR: error while initializing modules":
# /usr/local/sbin/kamailio -D -d
loading modules under config path: /usr/local/lib64/kamailio/modules/
Listening on
udp: pcscf.core.ims1.test [172.25.152.20]:4060
Aliases:
*: pcscf.core.ims1.test:*
WARNING: no fork mode
ERROR: error while initializing modules
How can I troubleshoot this to determine what the actual error is? I have tried
increasing the debug level, but I don't see any additional information.
Thanks.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users