[sr-dev] [kamailio/kamailio] Crash on startup when using db_mongodb with ssl/tls on Ubuntu 20.04 and Debian Buster (#2560)

tculjaga notifications at github.com
Mon Dec 7 12:25:34 CET 2020


@knightcode 

do you ever get any response from mongo regarding version for dispatcher ? You should have an entry in version collection for dispatcher table.

```
db.getCollection("version").find({"table_name":"dispatcher"}).pretty()
{
        "_id" : ObjectId("5fce0a29d09896665dd585b4"),
        "table_name" : "dispatcher",
        "table_version" : 4
}
```

I can see it starts crashing right after trying to get the table version.
```
 0(46163) DEBUG: db_mongodb [mongodb_dbase.c:973]: db_mongodb_query(): query to collection [version]
 0(46163) DEBUG: db_mongodb [mongodb_dbase.c:1007]: db_mongodb_query(): query filter: { "table_name" : "dispatcher" }
 0(46163) DEBUG: db_mongodb [mongodb_dbase.c:1043]: db_mongodb_query(): columns filter: { "projection" : { "table_version" : 1 } }
0(46163) DEBUG: <core> [db_res.c:119]: db_new_result(): allocate 56 bytes for result set at 0x7ffff75d5248
/build/mongo-c-driver-RRvvb_/mongo-c-driver-1.16.1/src/libmongoc/src/mongoc/mongoc-openssl.c:476 _mongoc_openssl_ctx_new(): precondition failed: ctx
 0(46158) ERROR: <core> [core/daemonize.c:303]: daemonize(): Main process exited before writing to pipe
```

In my case it was crashing on userloc ... I had an entry in location collection and "path" key was missing (the entry was made by kamailio when it was run without path module). It crashed when i loaded path module because kamailio was expecting path ke/field in teh location table/collection.








-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2560#issuecomment-739857335
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20201207/a0afd2c8/attachment.htm>


More information about the sr-dev mailing list