Page 1 of 1

Database /usr/share/astguiclient/AST_VDhopper.pl --debugX

PostPosted: Wed Jan 26, 2011 12:07 pm
by Trying
Here is another interesting one. On my new 3.1.6 install, as listed below, I get no leads in hopper.

In the crontab of the Database server there is an entry:

### updater for VICIDIAL hopper
* * * * * /usr/share/astguiclient/AST_VDhopper.pl -q

However, if I run it manually I get the following error:

db1:~ # /usr/share/astguiclient/AST_VDhopper.pl -q
DBI connect('asterisk:localhost:3306','cron',...) failed: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) at /usr/share/astguiclient/AST_VDhopper.pl line 273
Couldn't connect to database: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) at /usr/share/astguiclient/AST_VDhopper.pl line 273.
You have new mail in /var/mail/root

Putting this entry in any of the Dialers' crontab works.

PostPosted: Wed Jan 26, 2011 2:27 pm
by williamconley
verify your cron user and its password in mysql also verify mysql running

PostPosted: Wed Jan 26, 2011 3:16 pm
by Trying
The cron password is correct and mysql is running.

PostPosted: Wed Jan 26, 2011 3:59 pm
by williamconley
well ... if it tries to connect and fails and you try to connect but succeed ... there must be a difference in "how".

perhaps the astguiclient.conf file has localhost but needs your ip instead? perhaps 127.0.0.1? (although I don't recall bumping into this ... ?) but worth experimentation :)

PostPosted: Wed Jan 26, 2011 4:04 pm
by Trying
I will give it a go and report back, thank you!

PostPosted: Sat Jan 29, 2011 12:09 pm
by Trying
You gotta be kidding me! Changing localhost to 127.0.0.1 solved both issues! Firstly the hopper script runs fine on the DB server. Secondly the call count is now showing in the live-report. Once again you came to the rescue.... thanks William!! :D

PostPosted: Sat Jan 29, 2011 6:15 pm
by williamconley
lol. now i wanna know how you screwed ... oops, how it got messed up to begin with.

you GOTTA stop pushin' those buttons! :)

PostPosted: Sun Jan 30, 2011 1:53 am
by Trying
Funny enough, almost everything you guys thought I screwed up eventually turns out to be bugs :lol:

PostPosted: Sun Jan 30, 2011 10:17 am
by williamconley
You keep findin ... we keep squishin.

real time report

PostPosted: Thu Aug 04, 2011 9:08 am
by xhunnn
Sir trying,

how did you fix the calls today?



Vicibox Redux 3.1.9 | Admin VERSION: 2.4-322a BUILD: 110703-1400 | Agent VERSION: 2.4-333c BUILD: 110626-2234
Linux 2.6.34.8-0.2-pae #1 SMP | Perl v5.12.1 | Asterisk 1.4.39.1-vici | Mysql 14.14 Distrib 5.1.46 | PHP 5.3. [/img]