<div dir="ltr">yes I am able to login through mongodb manually and able to run the version query too .<div><br></div><div>Now I have just done some changes to mongodb . I am running it without auth:true.</div><div> Now its gettiong connected to the db and giving some other error like bellow .</div><div><br></div><div><div> INFO:cachedb_mongodb:mongo_new_connection: Connected at server x.x.x.x with version 3.0.6 , to db db.opensips</div><div> ERROR:core:db_check_table_version: invalid version 0 for table silo found, expected 6</div><div> ERROR:msilo:mod_init: error during table version check.</div><div> ERROR:core:init_mod: failed to initialize module msilo</div><div> ERROR:core:main: error while initializing modules</div><div> INFO:core:cleanup: cleanup</div></div><div><br></div><div>rather I have added a "my_version_table" collection and inserted the entry for silo table like bellow .</div><div><br></div><div>db.my_version_table.insert({table_version : NumberInt(6), table_name : "silo"})<br></div><div><br></div><div> But still its giving the above error . </div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div>
<br><div class="gmail_quote">On Mon, Oct 5, 2015 at 6:01 PM, Vlad Paiu <span dir="ltr"><<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
Looks like there is an error with your MongoDB sharding - the errors
you are receiving from MongoDB look something like this :
<a href="https://jira.mongodb.org/browse/SERVER-12899" target="_blank">https://jira.mongodb.org/browse/SERVER-12899</a><br>
<br>
Can you manually login to a MongoDB node and run the version query
by hand ?<br>
<br>
Regards,<br>
<pre cols="72">Vlad Paiu
OpenSIPS Developer</pre><div><div class="h5">
<div>On 05.10.2015 14:58, Sasmita Panda
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi All ,
<div><br>
</div>
<div> I an using the NoSql module cachedb_mongodb as database
with db_cachedb .</div>
<div><br>
</div>
<div>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 .</div>
<div><br>
</div>
<div> What i have done :</div>
<div>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 :</div>
<div><br>
</div>
<div>
<div> DBG:core:db_bind_mod: using db bind api for db_cachedb</div>
<div> DBG:db_cachedb:db_cachedb_bind_api: BINDING API for :
cachedb://mongodb:instance1</div>
<div> DBG:db_cachedb:db_cachedb_init: Found matching URL :
[<a href="mailto:mongodb:instance1://mongodb:mongodbserver@x.x.x.x:27017/db.opensips" target="_blank">mongodb:instance1://mongodb:mongodbserver@x.x.x.x:27017/db.opensips</a>]</div>
<div> DBG:core:cachedb_bind_mod: Binded to mod mongodb</div>
<div> DBG:core:parse_cachedb_url: parsing
[<a href="mailto:mongodb:instance1://mongodb:mongodbserver@x.x.x.x:27017/db.opensips" target="_blank">mongodb:instance1://mongodb:mongodbserver@x.x.x.x:27017/db.opensips</a>]</div>
<div> DBG:core:parse_cachedb_url: in host - :</div>
<div> DBG:core:cachedb_do_init: opening new connection</div>
<div> DBG:cachedb_mongodb:mongo_new_connection: Set timeout to
3000 millis</div>
<div> <a>INFO:cachedb_mongodb:mongo_new_connection</a>: Connected at
server x.x.x.x with version 3.0.6 , to db db.opensips</div>
<div> DBG:db_cachedb:db_cachedb_init: Succesfully initiated
connection to [mongodb:instance1]</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: Running raw
mongo query on table db.my_version_table</div>
<div> ERROR:cachedb_mongodb:mongo_db_query_trans: Failed to
run query. Err = 0, 0 , 0</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key
connectionId</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: (int) 12</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key n</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: (int) 0</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key
syncMillis</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: (int) 0</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key
writtenTo</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: (unknown type
10)</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key
err</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: (unknown type
10)</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key ok</div>
<div> DBG:cachedb_mongodb:mongo_db_query_trans: (double)
1.000000e+00</div>
<div> ERROR:core:db_table_version: error in db_query</div>
<div> ERROR:core:db_check_table_version: querying version for
table silo</div>
<div> ERROR:msilo:mod_init: error during table version check.</div>
<div> ERROR:core:init_mod: failed to initialize module msilo</div>
<div> ERROR:core:main: error while initializing modules</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div> Please help me to solve this error .</div>
<div><br clear="all">
<div>
<div>
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Network Testing and Software Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>