I have noticed a very strange behaviour when trying to run opensips with a db via TCP . This error does<br>not occur when OSIPS connects via unix socket to the DB, i have googled this error an found not <br>solution. As you can see from the log the first few connections succeed but then DB conn fails at some point.<br>
You can see the full debug here <a href="http://rafb.net/p/Hv7O2b67.html">http://rafb.net/p/Hv7O2b67.html</a><br>--Error-- <br><br>Jan 29 23:57:37 [5569] DBG:core:db_bind_mod: using db bind api for db_mysql <br>
Jan 29 23:57:37 [5569] DBG:core:db_do_init: connection 0x81cbb80 not found in pool <br>Jan 29 23:57:37 [5569] DBG:db_mysql:db_mysql_new_connection: opening connection: mysql://<a href="http://xxxx:xxxx@10.10.10.1/opensips">xxxx:xxxx@10.10.10.1/opensips</a><br>
Jan 29 23:57:37 [5569] DBG:db_mysql:db_mysql_new_connection: connection type is 10.10.10.1 via TCP/IP <br>Jan 29 23:57:37 [5569] DBG:db_mysql:db_mysql_new_connection: protocol version is 10 <br>
Jan 29 23:57:37 [5569] DBG:db_mysql:db_mysql_new_connection: server version is 5.0.72-log <br>Jan 29 23:57:37 [5569] DBG:core:db_new_result: allocate 28 bytes for result set at 0x81cbc60 <br><br>--error --<br>
<br>Jan 29 23:47:37 [5340] DBG:core:db_bind_mod: using db bind api for db_mysql<br>Jan 29 23:47:37 [5340] DBG:core:db_do_init: connection 0x81cbb78 not found in pool<br>Jan 29 23:47:37 [5340] DBG:db_mysql:db_mysql_new_connection: opening connection: mysql://<a href="http://xxxx:xxxx@10.10.10.1/opensips">xxxx:xxxx@10.10.10.1/opensips</a><br>
Jan 29 23:47:39 [5340] ERROR:db_mysql:db_mysql_new_connection: driver error: Can't connect to MySQL server on '10.01.10.1' (4)<br>Jan 29 23:47:39 [5340] ERROR:core:db_do_init: could not add connection to the poolJan 29 23:47:39 [5340] ERROR:lcr:mod_init: Unable to open database connection<br>
<br>Over 127.0.0.1 TCP it works fine ! <br><br>Jan 29 23:52:02 [5443] DBG:db_mysql:db_mysql_new_connection: connection type is 127.0.0.1 via TCP/IP <br>Jan 29 23:52:02 [5443] DBG:db_mysql:db_mysql_new_connection: protocol version is 10 <br>
Jan 29 23:52:02 [5443] DBG:db_mysql:db_mysql_new_connection: server version is 5.0.67-0ubuntu6 <br clear="all"><br>Could this be a bug ? <br>-- <br>TC<br>