Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-23 Thread Sasmita Panda
Hi Liviu ,

My document DB is act like a  cluster . I have created only 1 instance in
the cluster which has write/read permission and is the primary instance .

DocumentDB says this is the way to connect to the Db from remote
application .
cluster : mongodb://master:@
docdb-xxx.cluster-c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/?ssl=true_ca_certs=rds-combined-ca-bundle.pem=rs0
instance : mongodb://master:@
docdb-xxx.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/?ssl=true_ca_certs=rds-combined-ca-bundle.pem

In my config I had set this URL for , cachedb_mongodb , db_cachedb and also
usrloc .

modparam("usrloc", "cachedb_url","mongodb://
master:cluster2...@docdb-xxx.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/opensipsDB.userlocation
?ssl=true_ca_certs=rds-combined-ca-bundle.pem")

Error in the log :
 ERROR:cachedb_mongodb:mongo_con_update: last error: 15.13053: No suitable
servers found (`serverSelectionTryOnce` set):
 [TLS handshake failed: error:1416F086:SSL
routines:tls_process_server_certificate:certificate verify failed calling
ismaster on 'docdb-xxx.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017']

With same credentials I am able to connect to the doc db from console and
its connect to rs0:PRIMARY> . I am able to create DB , collection , insert
data in collection and read the data also .

where I am doing mistake .

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Fri, Sep 20, 2019 at 6:02 PM Liviu Chircu  wrote:

> It looks like you are connecting to a single node (which is SECONDARY),
> rather than a replica set,
> so the driver is unable to locate a PRIMARY node, to which it can issue
> writes.
>
> What does your DocumentDB infrastructure look like?  Is it a replica set?
> A single instance?
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 16.09.2019 10:35, Sasmita Panda wrote:
>
> The new core file is given below in pastebin
>
> https://pastebin.com/zMpf12MQ
>
>
> Rather than this , I was trying to upgrade mongo c library to 1.9 and
> running with document DB .
>
> Here I am not able to connect to Document DB . its giving below error
> When I am connecting with SSL=true
>  ERROR:cachedb_mongodb:mongo_con_update: last error: 15.13053: No suitable
> servers found (`serverSelectionTryOnce` set): [TLS handshake failed:
> error:1416F086:SSL routines:tls_process_server_certificate:certificate
> verify failed calling ismaster on '
> docdb-2019-09-14-06-14-132.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017
> ']
>
> When I am doing without ssl
> ERROR:cachedb_mongodb:mongo_con_update: last error: 1.11: Authentication
> failed.
>
> In both the cases I am able to connect to the Doc DB from the instance
> console . But in opensips its giving such error . Opensips is not crashing
> although .  Why is this error coming . I am not getting this error in the
> code also .
>
> Below is the library version in my instance . and Document db is in same
> 3.6 version .
> dpkg -l | grep -i libmongoc
> ii  libmongoc-1.0-0  1.9.2+dfsg-1build1
>   amd64MongoDB C client library - runtime files
> ii  libmongoc-dev1.9.2+dfsg-1build1
>   amd64MongoDB C client library - dev files
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Thu, Sep 12, 2019 at 7:50 PM Liviu Chircu  wrote:
>
>> Let's follow the official build guide [1], maybe it will make things
>> easier.
>>
>> So make sure to install below requirements, then try again:
>>
>> sudo apt install cmake libssl-dev libsasl2-dev
>>
>> [1]: http://mongoc.org/libmongoc/current/installing.html
>>
>> Liviu Chircu
>> OpenSIPS Developerhttp://www.opensips-solutions.com
>>
>> On 12.09.2019 14:37, Sasmita Panda wrote:
>>
>> make[1]: Entering directory '/opt/mongo-c-driver'
>>   CCLD test-replica-set
>> /usr/bin/ld: tests/test_replica_set-ha-test.o: undefined reference to
>> symbol 'pthread_once@@GLIBC_2.2.5'
>> //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing
>> from command line
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-20 Thread Liviu Chircu
It looks like you are connecting to a single node (which is SECONDARY), 
rather than a replica set,
so the driver is unable to locate a PRIMARY node, to which it can issue 
writes.


What does your DocumentDB infrastructure look like?  Is it a replica 
set?  A single instance?


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 16.09.2019 10:35, Sasmita Panda wrote:

The new core file is given below in pastebin

https://pastebin.com/zMpf12MQ


Rather than this , I was trying to upgrade mongo c library to 1.9 and 
running with document DB .


Here I am not able to connect to Document DB . its giving below error
When I am connecting with SSL=true
 ERROR:cachedb_mongodb:mongo_con_update: last error: 15.13053: No 
suitable servers found (`serverSelectionTryOnce` set): [TLS handshake 
failed: error:1416F086:SSL 
routines:tls_process_server_certificate:certificate verify failed 
calling ismaster on 
'docdb-2019-09-14-06-14-132.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017 
']


When I am doing without ssl
ERROR:cachedb_mongodb:mongo_con_update: last error: 1.11: 
Authentication failed.


In both the cases I am able to connect to the Doc DB from the instance 
console . But in opensips its giving such error . Opensips is not 
crashing although .  Why is this error coming . I am not getting this 
error in the code also .


Below is the library version in my instance . and Document db is in 
same 3.6 version .

dpkg -l | grep -i libmongoc
ii  libmongoc-1.0-0                      1.9.2+dfsg-1build1           
      amd64        MongoDB C client library - runtime files
ii  libmongoc-dev                        1.9.2+dfsg-1build1           
      amd64        MongoDB C client library - dev files



*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/


On Thu, Sep 12, 2019 at 7:50 PM Liviu Chircu > wrote:


Let's follow the official build guide [1], maybe it will make
things easier.

So make sure to install below requirements, then try again:

sudo apt install cmake libssl-dev libsasl2-dev

[1]: http://mongoc.org/libmongoc/current/installing.html

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 12.09.2019 14:37, Sasmita Panda wrote:

make[1]: Entering directory '/opt/mongo-c-driver'
  CCLD     test-replica-set
/usr/bin/ld: tests/test_replica_set-ha-test.o: undefined
reference to symbol 'pthread_once@@GLIBC_2.2.5
'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO
missing from command line

___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-19 Thread Sasmita Panda
Is there any update on this  ?  I am blocked here .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Mon, Sep 16, 2019 at 1:05 PM Sasmita Panda  wrote:

> The new core file is given below in pastebin
>
> https://pastebin.com/zMpf12MQ
>
>
> Rather than this , I was trying to upgrade mongo c library to 1.9 and
> running with document DB .
>
> Here I am not able to connect to Document DB . its giving below error
> When I am connecting with SSL=true
>  ERROR:cachedb_mongodb:mongo_con_update: last error: 15.13053: No suitable
> servers found (`serverSelectionTryOnce` set): [TLS handshake failed:
> error:1416F086:SSL routines:tls_process_server_certificate:certificate
> verify failed calling ismaster on '
> docdb-2019-09-14-06-14-132.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017
> ']
>
> When I am doing without ssl
> ERROR:cachedb_mongodb:mongo_con_update: last error: 1.11: Authentication
> failed.
>
> In both the cases I am able to connect to the Doc DB from the instance
> console . But in opensips its giving such error . Opensips is not crashing
> although .  Why is this error coming . I am not getting this error in the
> code also .
>
> Below is the library version in my instance . and Document db is in same
> 3.6 version .
> dpkg -l | grep -i libmongoc
> ii  libmongoc-1.0-0  1.9.2+dfsg-1build1
>   amd64MongoDB C client library - runtime files
> ii  libmongoc-dev1.9.2+dfsg-1build1
>   amd64MongoDB C client library - dev files
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Thu, Sep 12, 2019 at 7:50 PM Liviu Chircu  wrote:
>
>> Let's follow the official build guide [1], maybe it will make things
>> easier.
>>
>> So make sure to install below requirements, then try again:
>>
>> sudo apt install cmake libssl-dev libsasl2-dev
>>
>> [1]: http://mongoc.org/libmongoc/current/installing.html
>>
>> Liviu Chircu
>> OpenSIPS Developerhttp://www.opensips-solutions.com
>>
>> On 12.09.2019 14:37, Sasmita Panda wrote:
>>
>> make[1]: Entering directory '/opt/mongo-c-driver'
>>   CCLD test-replica-set
>> /usr/bin/ld: tests/test_replica_set-ha-test.o: undefined reference to
>> symbol 'pthread_once@@GLIBC_2.2.5'
>> //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing
>> from command line
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-16 Thread Sasmita Panda
The new core file is given below in pastebin

https://pastebin.com/zMpf12MQ


Rather than this , I was trying to upgrade mongo c library to 1.9 and
running with document DB .

Here I am not able to connect to Document DB . its giving below error
When I am connecting with SSL=true
 ERROR:cachedb_mongodb:mongo_con_update: last error: 15.13053: No suitable
servers found (`serverSelectionTryOnce` set): [TLS handshake failed:
error:1416F086:SSL routines:tls_process_server_certificate:certificate
verify failed calling ismaster on '
docdb-2019-09-14-06-14-132.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017
']

When I am doing without ssl
ERROR:cachedb_mongodb:mongo_con_update: last error: 1.11: Authentication
failed.

In both the cases I am able to connect to the Doc DB from the instance
console . But in opensips its giving such error . Opensips is not crashing
although .  Why is this error coming . I am not getting this error in the
code also .

Below is the library version in my instance . and Document db is in same
3.6 version .
dpkg -l | grep -i libmongoc
ii  libmongoc-1.0-0  1.9.2+dfsg-1build1
amd64MongoDB C client library - runtime files
ii  libmongoc-dev1.9.2+dfsg-1build1
amd64MongoDB C client library - dev files


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Thu, Sep 12, 2019 at 7:50 PM Liviu Chircu  wrote:

> Let's follow the official build guide [1], maybe it will make things
> easier.
>
> So make sure to install below requirements, then try again:
>
> sudo apt install cmake libssl-dev libsasl2-dev
>
> [1]: http://mongoc.org/libmongoc/current/installing.html
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 12.09.2019 14:37, Sasmita Panda wrote:
>
> make[1]: Entering directory '/opt/mongo-c-driver'
>   CCLD test-replica-set
> /usr/bin/ld: tests/test_replica_set-ha-test.o: undefined reference to
> symbol 'pthread_once@@GLIBC_2.2.5'
> //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing
> from command line
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-12 Thread Liviu Chircu

Let's follow the official build guide [1], maybe it will make things easier.

So make sure to install below requirements, then try again:

sudo apt install cmake libssl-dev libsasl2-dev

[1]: http://mongoc.org/libmongoc/current/installing.html

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 12.09.2019 14:37, Sasmita Panda wrote:

make[1]: Entering directory '/opt/mongo-c-driver'
  CCLD     test-replica-set
/usr/bin/ld: tests/test_replica_set-ha-test.o: undefined reference to 
symbol 'pthread_once@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO 
missing from command line
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-12 Thread Sasmita Panda
Hi ,

I am using ubuntu 16 . I am not able to run make command . Its giving error
.

make[1]: Entering directory '/opt/mongo-c-driver'
  CCLD test-replica-set
/usr/bin/ld: tests/test_replica_set-ha-test.o: undefined reference to
symbol 'pthread_once@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing
from command line
collect2: error: ld returned 1 exit status
Makefile:2516: recipe for target 'test-replica-set' failed
make[1]: *** [test-replica-set] Error 1
make[1]: Leaving directory '/opt/mongo-c-driver'
Makefile:4866: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

I am trying to solve this . Once done I will give the core dump .




*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Thu, Sep 12, 2019 at 1:58 PM Liviu Chircu  wrote:

> I suggest we manually compile a debuggable version of libmongoc library
> v1.3.1 using the following steps:
>
> # clone the libmongoc library source code
> git clone https://github.com/mongodb/mongo-c-driver -b 1.3.1
> ~/src/mongo-c-driver
> cd ~/src/mongo-c-driver
>
> # prepare necessary packages
> apt remove libssl-dev
> apt install libssl1.0-dev gcc make autoconf
>
> # build, install and enable the library
> ./autogen.sh --enable-debug-symbols=yes
> make -j4
> make install
> echo "/usr/local/lib" >/etc/ld.so.conf.d/libmongoc.conf
> ldconfig
>
> ... and we are done!  Now, just restart your OpenSIPS and produce
> another core file.  This time, gdb
> will print some extra information, which will help us understand what's
> going on.
>
> At any time, to clean up the debug library and revert to the default one
> (from packages):
>
> rm -fr /usr/local/lib/libbson-1.0.* /usr/local/lib/libmongoc-*
> rm /etc/ld.so.conf.d/libmongoc.conf
> ldconfig
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 12.09.2019 07:56, Sasmita Panda wrote:
> >
> > What should you suggest now ? Will I upgrade the library version . I
> > am trying that option .
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-12 Thread Liviu Chircu
I suggest we manually compile a debuggable version of libmongoc library 
v1.3.1 using the following steps:


# clone the libmongoc library source code
git clone https://github.com/mongodb/mongo-c-driver -b 1.3.1 
~/src/mongo-c-driver

cd ~/src/mongo-c-driver

# prepare necessary packages
apt remove libssl-dev
apt install libssl1.0-dev gcc make autoconf

# build, install and enable the library
./autogen.sh --enable-debug-symbols=yes
make -j4
make install
echo "/usr/local/lib" >/etc/ld.so.conf.d/libmongoc.conf
ldconfig

... and we are done!  Now, just restart your OpenSIPS and produce 
another core file.  This time, gdb
will print some extra information, which will help us understand what's 
going on.


At any time, to clean up the debug library and revert to the default one 
(from packages):


rm -fr /usr/local/lib/libbson-1.0.* /usr/local/lib/libmongoc-*
rm /etc/ld.so.conf.d/libmongoc.conf
ldconfig

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 12.09.2019 07:56, Sasmita Panda wrote:


What should you suggest now ? Will I upgrade the library version . I 
am trying that option .


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
I have tried with single-slash  too same thing happens . Opensips crashes
when its going to publish the metadata in documentDB  .


What should you suggest now ? Will I upgrade the library version . I am
trying that option .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Sep 11, 2019 at 6:38 PM Liviu Chircu  wrote:

> Maybe I'm seeing things, but isn't there a "//" double-slash typo in
> there? ("...:27017//opensipsDB...")
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 11.09.2019 12:58, Sasmita Panda wrote:
>
> modparam("cachedb_mongodb", "cachedb_url","mongodb:instance1://
> opensips3:cluster@
> docdb-2019-09-06-06-01-38.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/
> /opensipsDB.userlocation?ssl=true_ca_certs=rds-combined-ca-bundle.pem")
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Liviu Chircu
Maybe I'm seeing things, but isn't there a "//" double-slash typo in 
there? ("...:27017//opensipsDB...")


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 11.09.2019 12:58, Sasmita Panda wrote:

modparam("cachedb_mongodb", "cachedb_url","mongodb:instance1://
opensips3:cluster@
docdb-2019-09-06-06-01-38.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/ 


/opensipsDB.userlocation?ssl=true_ca_certs=rds-combined-ca-bundle.pem")
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
I had done the same . But that wont work .

loadmodule "cachedb_mongodb.so"
loadmodule "db_cachedb.so"

modparam("cachedb_mongodb", "cachedb_url","mongodb:instance1://
opensips3:cluster@
docdb-2019-09-06-06-01-38.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/
/opensipsDB.userlocation?ssl=true_ca_certs=rds-combined-ca-bundle.pem")

modparam("db_cachedb","cachedb_url","mongodb:instance1://
opensips3:cluster@
docdb-2019-09-09-06-01-38.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/
/opensipsDB.userlocation?ssl=true_ca_certs=rds-combined-ca-bundle.pem")


modparam("usrloc", "use_domain", 1)
modparam("usrloc", "working_mode_preset", "federation-cachedb-cluster")

modparam("usrloc", "location_cluster", 1)
modparam("usrloc", "cluster_mode", "federation-cachedb")

modparam("usrloc", "restart_persistency", "read_from_sql")
modparam("usrloc", "sql_write_mode", "write-back")

modparam("usrloc", "cachedb_url", "mongodb:instance1://
opensips3:cluster@
docdb-2019-09-06-06-01-38.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/
/opensipsDB.userlocation?ssl=true_ca_certs=rds-combined-ca-bundle.pem")

This is my config file look like . But still opensips crashes when I
register a user .



*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Sep 11, 2019 at 3:04 PM Liviu Chircu  wrote:

> Sorry, I meant "cachedb_url", of course.
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 11.09.2019 12:32, Liviu Chircu wrote:
> > when specifying the usrloc "db_url" modparam
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Liviu Chircu

Sorry, I meant "cachedb_url", of course.

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 11.09.2019 12:32, Liviu Chircu wrote:

when specifying the usrloc "db_url" modparam


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Liviu Chircu
Library and server versions look good.  The library is a bit old (I've 
only tested with 1.4),
but it shouldn't make a difference.  Truth be told, both 1.3 and 1.4 are 
_very_ old compared

to what the MongoDB docs are saying.  However, they work fine in real life!

Can you try the following: when specifying the usrloc "db_url" modparam, 
could you also include

the name of the collection?  For example, instead of:

mongodb://1.2.3.4/opensipsDB

... use:

mongodb://1.2.3.4/opensipsDB.userlocation

Let me know if this helps.

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 11.09.2019 12:21, Sasmita Panda wrote:

dpkg -l | grep -i libmongoc

ii  libmongoc-1.0-0                              1.3.1-1               
           amd64        MongoDB C client library - runtime files
ii  libmongoc-dev                                1.3.1-1               
           amd64        MongoDB C client library - dev files


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
I think this version is not comparable with mondodb 3.6 . mongo driver 1.9
onward is comparable with mongodb 3.6 .

Let me upgrade this first . Then will let you know the out come .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Sep 11, 2019 at 2:51 PM Sasmita Panda  wrote:

> dpkg -l | grep -i libmongoc
>
> ii  libmongoc-1.0-0  1.3.1-1
>  amd64MongoDB C client library - runtime files
> ii  libmongoc-dev1.3.1-1
>  amd64MongoDB C client library - dev files
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Wed, Sep 11, 2019 at 2:49 PM Liviu Chircu  wrote:
>
>> Can you also do "dpkg -l | grep -i libmongoc"?  Maybe the library is too
>> new or too old.
>>
>> I'm asking because I've played with multiple setups using federated
>> clustering +
>> Mongo 3.6 without any aborts in the library so far.  So we need to think
>> outside the box here :)
>>
>> Liviu Chircu
>> OpenSIPS Developer
>> http://www.opensips-solutions.com
>>
>> On 11.09.2019 12:15, Sasmita Panda wrote:
>> > MongoDB server version: 3.6.0
>> > MongoDB shell version v3.6.14
>> >
>> > libmongoc   : /usr/lib/x86_64-linux-gnu/libmongoc-1.0.so.0
>> >
>> > I havent done any changes in libmongoc . This is the version I am
>> > using to connect mongodb also .
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
dpkg -l | grep -i libmongoc

ii  libmongoc-1.0-0  1.3.1-1
 amd64MongoDB C client library - runtime files
ii  libmongoc-dev1.3.1-1
 amd64MongoDB C client library - dev files


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Sep 11, 2019 at 2:49 PM Liviu Chircu  wrote:

> Can you also do "dpkg -l | grep -i libmongoc"?  Maybe the library is too
> new or too old.
>
> I'm asking because I've played with multiple setups using federated
> clustering +
> Mongo 3.6 without any aborts in the library so far.  So we need to think
> outside the box here :)
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 11.09.2019 12:15, Sasmita Panda wrote:
> > MongoDB server version: 3.6.0
> > MongoDB shell version v3.6.14
> >
> > libmongoc   : /usr/lib/x86_64-linux-gnu/libmongoc-1.0.so.0
> >
> > I havent done any changes in libmongoc . This is the version I am
> > using to connect mongodb also .
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
Document db engine version  : docdb 3.6.0
*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Sep 11, 2019 at 2:45 PM Sasmita Panda  wrote:

> MongoDB server version: 3.6.0
> MongoDB shell version v3.6.14
>
> libmongoc   : /usr/lib/x86_64-linux-gnu/libmongoc-1.0.so.0
>
> I havent done any changes in libmongoc . This is the version I am using to
> connect mongodb also .
>
> Document DB says , to use mongodb version 3.6 above if you wanted to
> connect to that from any instance . So I have installed 3.6 version .
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Wed, Sep 11, 2019 at 2:12 PM Liviu Chircu  wrote:
>
>> Thank you for the info, it's as clean of a crash trace as we can get,
>> since
>> we do not have any debug symbols for the mongo library (it seems the
>> only way
>> to get them is to compile/install the library by hand, which is not
>> feasible).
>>
>> Before digging deeper: are you able to determine what Mongo server
>> version and
>> what libmongoc library version are being used in your environment?  Or
>> is it all
>> abstracted behind the DocumentDB server and its client SDK?
>>
>> Liviu Chircu
>> OpenSIPS Developer
>> http://www.opensips-solutions.com
>>
>> On 11.09.2019 10:54, Sasmita Panda wrote:
>> > I hope I have given the right thing to detect the crash . Let me know
>> > if you need anything else .
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Liviu Chircu
Can you also do "dpkg -l | grep -i libmongoc"?  Maybe the library is too 
new or too old.


I'm asking because I've played with multiple setups using federated 
clustering +
Mongo 3.6 without any aborts in the library so far.  So we need to think 
outside the box here :)


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 11.09.2019 12:15, Sasmita Panda wrote:

MongoDB server version: 3.6.0
MongoDB shell version v3.6.14

libmongoc   : /usr/lib/x86_64-linux-gnu/libmongoc-1.0.so.0

I havent done any changes in libmongoc . This is the version I am 
using to connect mongodb also .


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
MongoDB server version: 3.6.0
MongoDB shell version v3.6.14

libmongoc   : /usr/lib/x86_64-linux-gnu/libmongoc-1.0.so.0

I havent done any changes in libmongoc . This is the version I am using to
connect mongodb also .

Document DB says , to use mongodb version 3.6 above if you wanted to
connect to that from any instance . So I have installed 3.6 version .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Sep 11, 2019 at 2:12 PM Liviu Chircu  wrote:

> Thank you for the info, it's as clean of a crash trace as we can get, since
> we do not have any debug symbols for the mongo library (it seems the
> only way
> to get them is to compile/install the library by hand, which is not
> feasible).
>
> Before digging deeper: are you able to determine what Mongo server
> version and
> what libmongoc library version are being used in your environment?  Or
> is it all
> abstracted behind the DocumentDB server and its client SDK?
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 11.09.2019 10:54, Sasmita Panda wrote:
> > I hope I have given the right thing to detect the crash . Let me know
> > if you need anything else .
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Liviu Chircu

Thank you for the info, it's as clean of a crash trace as we can get, since
we do not have any debug symbols for the mongo library (it seems the 
only way
to get them is to compile/install the library by hand, which is not 
feasible).


Before digging deeper: are you able to determine what Mongo server 
version and
what libmongoc library version are being used in your environment?  Or 
is it all

abstracted behind the DocumentDB server and its client SDK?

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 11.09.2019 10:54, Sasmita Panda wrote:
I hope I have given the right thing to detect the crash . Let me know 
if you need anything else . 


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
Pested the  core dump with bt full in pastebin.com . Below is the link .

https://pastebin.com/DuXV311r


I hope I have given the right thing to detect the crash . Let me know if
you need anything else .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Tue, Sep 10, 2019 at 7:04 PM Liviu Chircu  wrote:

> Hi Sasmita,
>
> Are you able to locate the corefile?  If you supply the "-w "
> parameter to your opensips,
> then it should be in that directory, otherwise look inside the root "/"
> directory.  There should be
> a file named "core" or "core.X" somewhere.
>
> Once found, please run "gdb /usr/sbin/opensips core", then the "bt full"
> command and let us know the
> output (maybe post it on pastebin.com).  Also, make sure to install the
> "opensips-dbg" package
> before doing all of this in order to get an optimal output.
>
> Many thanks,
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 10.09.2019 15:52, Sasmita Panda wrote:
> >  DBG:core:handle_sigs: OpenSIPS exit status = 134
> >  INFO:core:handle_sigs: child process 32061 exited by a signal 6
> >  INFO:core:handle_sigs: core was generated
> >  INFO:core:handle_sigs: terminating due to SIGCHLD
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-10 Thread Liviu Chircu

Hi Sasmita,

Are you able to locate the corefile?  If you supply the "-w " 
parameter to your opensips,
then it should be in that directory, otherwise look inside the root "/" 
directory.  There should be

a file named "core" or "core.X" somewhere.

Once found, please run "gdb /usr/sbin/opensips core", then the "bt full" 
command and let us know the
output (maybe post it on pastebin.com).  Also, make sure to install the 
"opensips-dbg" package

before doing all of this in order to get an optimal output.

Many thanks,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 10.09.2019 15:52, Sasmita Panda wrote:

 DBG:core:handle_sigs: OpenSIPS exit status = 134
 INFO:core:handle_sigs: child process 32061 exited by a signal 6
 INFO:core:handle_sigs: core was generated
 INFO:core:handle_sigs: terminating due to SIGCHLD


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users