[OpenSIPS-Users] Regarding chachedb_mongdb use .

Sasmita Panda spanda at 3clogic.com
Mon Oct 5 14:46:24 CEST 2015


yes I am able to login through mongodb manually and able to run the version
query too .

Now I have just done some changes to mongodb . I am running it without
auth:true.
   Now its gettiong connected to the db and giving some other error like
bellow .

 INFO:cachedb_mongodb:mongo_new_connection: Connected at server x.x.x.x
with version 3.0.6 , to db db.opensips
 ERROR:core:db_check_table_version: invalid version 0 for table silo found,
expected 6
 ERROR:msilo:mod_init: error during table version check.
 ERROR:core:init_mod: failed to initialize module msilo
 ERROR:core:main: error while initializing modules
 INFO:core:cleanup: cleanup

rather I have added a "my_version_table" collection and inserted the entry
for silo table like bellow .

db.my_version_table.insert({table_version : NumberInt(6), table_name :
"silo"})

   But still its giving the above error .


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

On Mon, Oct 5, 2015 at 6:01 PM, Vlad Paiu <vladpaiu at opensips.org> wrote:

> Hello,
>
> Looks like there is an error with your MongoDB sharding - the errors you
> are receiving from MongoDB look something like this :
> https://jira.mongodb.org/browse/SERVER-12899
>
> Can you manually login to a MongoDB node and run the version query by hand
> ?
>
> Regards,
>
> Vlad Paiu
> OpenSIPS Developer
>
> On 05.10.2015 14:58, Sasmita Panda wrote:
>
> Hi All ,
>
>    I an using the NoSql module cachedb_mongodb as database with db_cachedb
> .
>
> I have tested it running mongodb and opensips in a single instance . Now I
> am trying to run mongodb and opensips in different instances . I am facing
> some error in this case .
>
>      What i have done :
> I have created a db with name opensips read/write permission. I am also
> created the version table with name "my_version_table" inside that db .Now
> I am  trying to connect to that DB from my opensips server . But its giving
> following error :
>
>  DBG:core:db_bind_mod: using db bind api for db_cachedb
>  DBG:db_cachedb:db_cachedb_bind_api: BINDING API for :
> cachedb://mongodb:instance1
>  DBG:db_cachedb:db_cachedb_init: Found matching URL : [
> mongodb:instance1://mongodb:mongodbserver@x.x.x.x:27017/db.opensips]
>  DBG:core:cachedb_bind_mod: Binded to mod mongodb
>  DBG:core:parse_cachedb_url: parsing [
> mongodb:instance1://mongodb:mongodbserver@x.x.x.x:27017/db.opensips]
>  DBG:core:parse_cachedb_url: in host - :
>  DBG:core:cachedb_do_init: opening new connection
>  DBG:cachedb_mongodb:mongo_new_connection: Set timeout to 3000 millis
>  INFO:cachedb_mongodb:mongo_new_connection: Connected at server x.x.x.x
> with version 3.0.6 , to db db.opensips
>  DBG:db_cachedb:db_cachedb_init: Succesfully initiated connection to
> [mongodb:instance1]
>  DBG:cachedb_mongodb:mongo_db_query_trans: Running raw mongo query on
> table db.my_version_table
>  ERROR:cachedb_mongodb:mongo_db_query_trans: Failed to run query. Err = 0,
> 0 , 0
>  DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key connectionId
>  DBG:cachedb_mongodb:mongo_db_query_trans: (int) 12
>  DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key n
>  DBG:cachedb_mongodb:mongo_db_query_trans: (int) 0
>  DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key syncMillis
>  DBG:cachedb_mongodb:mongo_db_query_trans: (int) 0
>  DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key writtenTo
>  DBG:cachedb_mongodb:mongo_db_query_trans: (unknown type 10)
>  DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key err
>  DBG:cachedb_mongodb:mongo_db_query_trans: (unknown type 10)
>  DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key ok
>  DBG:cachedb_mongodb:mongo_db_query_trans: (double) 1.000000e+00
>  ERROR:core:db_table_version: error in db_query
>  ERROR:core:db_check_table_version: querying version for table silo
>  ERROR:msilo:mod_init: error during table version check.
>  ERROR:core:init_mod: failed to initialize module msilo
>  ERROR:core:main: error while initializing modules
>
>
>    Please help me to solve this error .
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20151005/d8ae26f9/attachment-0001.htm>


More information about the Users mailing list