Split Dialer: DBI Error
Posted: Sat Aug 14, 2010 8:21 am
We moved our well-behaving vicibox split to a co-location. Everything seems to be fine for the Web/DB server. Then I check boot.msg on the asterisk-only box:
What did I mess up? Okay, let's see if I can connect to the DB server from the CLI:
Uh. Okay. Let's see if this works:
So far so good, how about:
So it works? But, this unit fails to connect to the remote mysql server on every reboot. I'm obviously missing something. I can hack the mysql_vars.pl and boot.pl to run every morning via cron, but I'd like the unit to boot correctly each and every time.
What am I missing? As always, please excuse whatever obviousness has exposed my newbie failure to grasp what must be a simple solution.
- Code: Select all
DBI connect('asterisk:XX.XXX.XXX.130:3306','cron',...) failed: Can't connect to MySQL server on 'XX.XXX.XXX.130' (113) at /usr/share/astguiclient/AST_reset_mysql_vars.pl line 65
Couldn't connect to database: Can't connect to MySQL server on 'XX.XXX.XXX.130' (113) at /usr/share/astguiclient/AST_reset_mysql_vars.pl line 65.
Starting Asterisk DBI connect('asterisk:XX.XXX.XXX.130:3306','cron',...) failed: Can't connect to MySQL server on 'XX.XXX.XXX.130' (113) at /usr/share/astguiclient/start_asterisk_boot.pl line 59
Couldn't connect to database: Can't connect to MySQL server on 'XX.XXX.XXX.130' (113) at /usr/share/astguiclient/start_asterisk_boot.pl line 59.
failed
What did I mess up? Okay, let's see if I can connect to the DB server from the CLI:
- Code: Select all
mysql -u cron -p -h XX.XXX.XXX.130
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1190
Server version: 5.0.67-log SUSE MySQL RPM
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> quit
Bye
Uh. Okay. Let's see if this works:
- Code: Select all
/usr/share/astguiclient/AST_reset_mysql_vars.pl
- conferences reset
- vicidial_conferences reset
- vicidial_manager delete
- vicidial_auto_calls delete
- vicidial_live_agents delete
- vicidial__users delete
- vicidial_campaign_server_stats delete
- vicidial_hopper delete
So far so good, how about:
- Code: Select all
/usr/share/astguiclient/start_asterisk_boot.pl
started screen
changed directory
started new screen session
detached screens
raised ulimit open files
Asterisk started... screen logging on
So it works? But, this unit fails to connect to the remote mysql server on every reboot. I'm obviously missing something. I can hack the mysql_vars.pl and boot.pl to run every morning via cron, but I'd like the unit to boot correctly each and every time.
What am I missing? As always, please excuse whatever obviousness has exposed my newbie failure to grasp what must be a simple solution.