Re: [SR-Users] Kamailio/Asterisk Integration - MySQL driver error

2015-08-17 Thread Alex Balashov
On 08/17/2015 01:19 PM, Ben Fitzgerald wrote: Actually I think I've found the issue. The two servers are connected via two different ethernet interfaces. I initially setup the Kamailio user with the IP of eth1 and that worked but Kamailio was trying to connect to MySQL using eth0 (which I did not

Re: [SR-Users] Kamailio/Asterisk Integration - MySQL driver error

2015-08-17 Thread Ben Fitzgerald
Actually I think I've found the issue. The two servers are connected via two different ethernet interfaces. I initially setup the Kamailio user with the IP of eth1 and that worked but Kamailio was trying to connect to MySQL using eth0 (which I did not have that IP authorized to connect). By trying

Re: [SR-Users] Kamailio/Asterisk Integration - MySQL driver error

2015-08-17 Thread Ben Fitzgerald
The language of the error is ambiguous. "many connection errors" could mean lots of connections, or lots of errors related to connections. Benjamin Fitzgerald LETS Corporation (925) 235-1154 b...@letscorp.us ***Confidential Notice: This message is intended only for the use of the individua

Re: [SR-Users] Kamailio/Asterisk Integration - MySQL driver error

2015-08-17 Thread Ben Fitzgerald
I should add, I fixed the error and restarted Kamailio - so it's possible that Kamailio had way more connections at the time of the error but I did not check the stats at that time, I was focused on fixing it. However, I would think it's unlikely for Kamailio to create so many connections. Benjami

Re: [SR-Users] Kamailio/Asterisk Integration - MySQL driver error

2015-08-17 Thread Alex Balashov
Oh, I misread your initial post. The error message is about connection "errors", not excessive connections. -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web:

Re: [SR-Users] Kamailio/Asterisk Integration - MySQL driver error

2015-08-17 Thread Ben Fitzgerald
Alex, There are 15 total connections and 8 of them are from Kamailio. my.cnf limit is currently set to 500. Benjamin Fitzgerald LETS Corporation (925) 235-1154 b...@letscorp.us ***Confidential Notice: This message is intended only for the use of the individual or entity to which it is add

Re: [SR-Users] Kamailio/Asterisk Integration - MySQL driver error

2015-08-17 Thread Alex Balashov
Ben, if you look at the MySQL server, what does netstat tell you, e.g. netstat --inet -n | grep 3306? -- Alex -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) W

Re: [SR-Users] Kamailio/Asterisk Integration - MySQL driver error

2015-08-17 Thread Ben Fitzgerald
Thanks for your quick reply. I left it default, my config is like this: fork=yes children=4 and if I check the process list for Kamailio it looks like there are 11 processes. Even so, this is not near the maximum connections supported by MySQL. Benjamin Fitzgerald LETS Corporation (925) 235-1154

Re: [SR-Users] Kamailio/Asterisk Integration - MySQL driver error

2015-08-17 Thread Alex Balashov
Ben, AFAIK, every Kamailio child process creates its own MySQL connection handle. What are your 'children' set to? -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (dire

[SR-Users] Kamailio/Asterisk Integration - MySQL driver error

2015-08-17 Thread Ben Fitzgerald
Has anyone seen this error before? " ERROR: db_mysql [km_dbase.c:121]: db_mysql_submit_query(): driver error on query: Host '192.168.xxx.xxx is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'" I fixed it using flush hosts but I'm curious why this popped up? Is the