#!define DBURL "mongodb://localhost/kamailio"
But i will try it again with fresh installation and will post here.I tested libmongoc with debian package available with repo. Then I moved to compile from source. result was same.Hi Daniel,Thank you for your reply.--
regards,
abdul basitOn 2 January 2018 at 16:38, Daniel-Constantin Mierla <miconda@gmail.com> wrote:Hello,
the issue happens inside mongoc library. Have you tried with the default one from Debian, without compiling it from sources?
Cheers,
Daniel
On 01.01.18 16:51, Abdul Basit wrote:
Hi,
My last email was help for admin review.
Sharing logs through pastebin https://pastebin.com/6HhdYLJK
Interesting part will start from line 983 where it start initializing ndb_mongodb.
On 1 January 2018 at 20:32, Abdul Basit <basit.engg@gmail.com> wrote:
To enable code dump followed https://www.kamailio.org/dokuwHi,I enabled but kamailio didn't generate any dump file
iki/doku.php/troubleshooting:c orefiles
I also un-commented lines in /etc/init.d/kamailio script
if test "$DUMP_CORE" = "yes" ; then
# set proper ulimit
ulimit -c unlimited
# directory for the core dump files
COREDIR=/tmp/corefiles
[ -d $COREDIR ] || mkdir -p $COREDIR
chmod 777 $COREDIR
echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
fi
I think reason is that kamailio process didn't exit after crash and keep on restarting. each time with new PID.
However, debug file is attached. I hope this will help.
--
regards,
abdul basit
On 29 December 2017 at 20:11, M S <shaheryarkh@gmail.com> wrote:
Hi,
Enable core dump and provide backtrace of sigfault. See this for more info,
Thank you.
On Fri, Dec 29, 2017 at 12:25 PM, Abdul Basit <basit.engg@gmail.com> wrote:
Adding further from https://stackoverflow.com/questions/2549214/interpreting-seg fault-messages
error 6 means, fault is
* bit 2 == 1 means kernel, 1 means user-mode * bit 4 == 1 means fault was an instruction fetch
That looks like kamailio is trying to invoke for db connection where libmongo-c don't like to be.--
regards,
abdul basit
On 29 December 2017 at 15:39, Abdul Basit <basit.engg@gmail.com> wrote:
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-cDec 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: <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.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 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