[sr-dev] [kamailio/kamailio] srdb1: connection string to mongodb too long (#1545)

Konstantin notifications at github.com
Fri May 25 17:55:36 CEST 2018


### Description

We need to connect to a cluster of mongodb hosts with some specific parameters.
The connection string has length more than 255 characters.
We could not connect to our mongodb.

### Troubleshooting

#### Reproduction

Use very long string for example like bellow

mongo0-pdb-demo.somedomain.com:27017,mongo1-pdb-demo.somedomain.com:27017,mongo2-pdb-demo.somedomain.com:27017/proxy-db-ft1?replicaSet=rs0&ssl=true&sslClientCertificateKeyFile=/etc/ssl/domain1234.pem&sslCertificateAuthorityFile=/etc/ssl/godaddy.pem


#### Log Messages

We got errors:

ERROR: <core> [db.c:168]: db_bind_mod(): SQL URL too long
ERROR: auth_db [auth_db_mod.c:173]: mod_init(): unable to bind to a database driver


### Additional Information

version: kamailio 4.4.7 (x86_64/linux) 

-- 
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/1545
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180525/581482c0/attachment.html>


More information about the sr-dev mailing list