[SR-Users] Kamailio fail to start with db_mongodb and ndb_mongodb modules
Abdul Basit
basit.engg at gmail.com
Fri Dec 29 11:39:37 CET 2017
Hi,
I am trying to setup mongo db as database engine for kamailio as described
at
<http://www.kamailio.org/wiki/tutorials/kamailio-and-mongodb>
http://www.kamailio.org/wiki/tutorials/kamailio-and-mongodb
and
https://telerain.com/kamailio
OS: Debian GNU/Linux 8.10 (jessie)
MongoDB server version: 3.4.10
mongo-c-driver-1.9.0.tar.gz compiled with
./configure --disable-static --disable-silent-rules --enable-debug-symbols
--enable-ssl=no --enable-sasl=yes --with-libbson=bundled
--enable-optimizations --disable-automatic-init-and-cleanup
version: kamailio 5.0.4 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 20:45:44 Dec 27 2017 with gcc 4.9.2
include_modules= utils app_lua db_postgres json evapi db_mongodb ndb_mongodb
Kamailio is crashing with segfault as soon as it try to load libmongo-c
Dec 28 04:44:14 sipserver systemd[1]: Starting Kamailio (OpenSER) - the
Open Source SIP Server...
Dec 28 04:44:14 sipserver kamailio: INFO: <core> [core/sctp_core.c:75]:
sctp_core_check_support(): SCTP API not enabled - if you want to use it,
load sctp module
Dec 28 04:44:14 sipserver kamailio: INFO: <core> [core/tcp_main.c:4671]:
init_tcp(): using epoll_lt as the io watch method (auto detected)
Dec 28 04:44:14 sipserver kamailio[11685]: Listening on
Dec 28 04:44:14 sipserver kamailio[11685]: udp: 127.0.0.1:5060
Dec 28 04:44:14 sipserver kamailio[11685]: udp: 192.168.10.20:5060
Dec 28 04:44:14 sipserver kamailio[11685]: tcp: 127.0.0.1:5060
Dec 28 04:44:14 sipserver kamailio[11685]: tcp: 192.168.10.20:5060
Dec 28 04:44:14 sipserver kamailio[11685]: Aliases:
Dec 28 04:44:14 sipserver kamailio[11685]: tcp: localhost:5060
Dec 28 04:44:14 sipserver kamailio[11685]: udp: localhost:5060
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: rr
[../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe
module is not loaded
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: rr
[rr_mod.c:175]: mod_init(): outbound module not available
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: <core>
[core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially
212992
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: <core>
[core/udp_server.c:203]: probe_max_receive_buffer(): SO_RCVBUF is finally
425984
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: <core>
[core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially
212992
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: <core>
[core/udp_server.c:203]: probe_max_receive_buffer(): SO_RCVBUF is finally
425984
Dec 28 04:44:14 sipserver systemd[1]: Started Kamailio (OpenSER) - the Open
Source SIP Server.
Dec 28 04:44:14 sipserver kernel: [53109.390171] show_signal_msg: 20
callbacks suppressed
Dec 28 04:44:14 sipserver kernel: [53109.390176] kamailio[11696] segfault
at 78 ip 00007f690c0e6e98 sp 00007ffcde1a4770 error 6 in
libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
Dec 28 04:44:14 sipserver kernel: [53109.390753] kamailio[11694] segfault
at 78 ip 00007f690c0e6e98 sp 00007ffcde1a4770 error 6 in
libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
Dec 28 04:44:14 sipserver kernel: [53109.391605] kamailio[11698] segfault
at 78 ip 00007f690c0e6e98 sp 00007ffcde1a4770 error 6 in
libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
Dec 28 04:44:14 sipserver kernel: [53109.392073] kamailio[11701] segfault
at 78 ip 00007f690c0e6e98 sp 00007ffcde1a4770 error 6 in
libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
Dec 28 04:44:14 sipserver kernel: [53109.392408] kamailio[11692] segfault
at 78 ip 00007f690c0e6e98 sp 00007ffcde1a4770 error 6 in
libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
Dec 28 04:44:14 sipserver kernel: [53109.392497] kamailio[11700] segfault
at 38 ip 00007f690c0e6e98 sp 00007ffcde1a4770 error 6 in
libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
Dec 28 04:44:14 sipserver kernel: [53109.392761] kamailio[11703] segfault
at 78 ip 00007f690c0e6e98 sp 00007ffcde1a4770 error 6 in
libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
Dec 28 04:44:14 sipserver kernel: [53109.392825] kamailio[11697] segfault
at 38 ip 00007f690c0e6e98 sp 00007ffcde1a4770 error 6 in
libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
Dec 28 04:44:14 sipserver kernel: [53109.393098] kamailio[11705] segfault
at 78 ip 00007f690c0e6e98 sp 00007ffcde1a4770 error 6 in
libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
Dec 28 04:44:14 sipserver kernel: [53109.393147] kamailio[11699] segfault
at 38 ip 00007f690c0e6e98 sp 00007ffcde1a4770 error 6 in
libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11689 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11688 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 14
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 15
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 16
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 17
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 18
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 19
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 20
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 21
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 22
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 23
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 24
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 25
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11690 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11691 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11692 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11693 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11694 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11695 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11696 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11697 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11698 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11699 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11700 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11701 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11702 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11703 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11704 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11705 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 26
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 27
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11706 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 28
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 29
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11707 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 30
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 31
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11708 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 32
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 33
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11709 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 34
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 5
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11710 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 9
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 35
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11711 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 37
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 39
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11712 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 41
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 43
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11713 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 45
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: <core>
[core/pass_fd.c:277]: receive_fd(): EOF on 47
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11714 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11715 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11716 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:743]: handle_sigs(): child process 11717 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: <core>
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: <core>
[main.c:768]: handle_sigs(): terminating due to SIGCHLD
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: INFO: <core>
[main.c:823]: sig_usr(): signal 15 received
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: <core>
[core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Dec 28 04:44:14 sipserver systemd[1]: kamailio.service: main process
exited, code=exited, status=1/FAILURE
Dec 28 04:44:14 sipserver systemd[1]: Unit kamailio.service entered failed
state.
As I tried googling the issue and found few issues with tls connection.
I set in default kamailio.cfg but still facing the saem issue.
enable_tls=no
...
loadmodule "ndb_mongodb.so"
modparam("ndb_mongodb", "server",
"name=cgr91rc8;uri='mongodb://localhost/kamailio'")
Its mongodb default installation and its accessible without any auth yet.
Please suggest the way farward.
--
regards,
abdul basit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171229/3eaac3d4/attachment.html>
More information about the sr-users
mailing list