hopper script error

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

hopper script error

Postby baka-na » Wed Dec 12, 2012 10:25 pm

Hi all,
Good day!
Got some problems with the hopper just a while back. Leads are not getting into the hopper. I read some troubleshooting steps here and come across to one saying to debug the hopper script. I don't know how to interpret the result so I think I might as well post it here for support.

    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and ( ( (status IN('DROP','XDROP')) and (last_local_call_time < CONCAT(DATE_AD' at line 1 at /usr/share/astguiclient/AST_VDhopper.pl line 1825.

Please kindly advise what steps should I do next. Thanks a lot to all!
Vicibox 4.0.1 from iso | Vicidial VERSION: 2.6-391a | BUILD: 121222-2146 | Asterisk 1.4.44-vici | Single Server | No Digium/Sangoma Hardware | No extra software after installation |
baka-na
 
Posts: 33
Joined: Thu Aug 02, 2012 1:30 am

Re: hopper script error

Postby baka-na » Wed Dec 12, 2012 10:44 pm

I did an SVN update, same error.

DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and ( ( (status IN('DROP','XDROP')) and (last_local_call_time < CONCAT(DATE_AD' at line 1 at /usr/share/astguiclient/AST_VDhopper.pl line 1825.
executing: SELECT count(*) FROM vicidial_list where called_since_last_reset='N' and status IN('DROP','OptrIn','Static','Redial','N','FaxMac','CalBsy','NA','ERI','B','AFAX','AB','AnsMac','AA','NEW') and list_id IN('999876543210') and ((gmt_offset_now IN('13.00','12.75','12.50','12.25','12.00','11.75','11.50','11.25','11.00','10.75','10.50','10.25','10.00','9.75','9.50','9.25','9.00','8.75','8.50','8.25','8.00','7.75','7.50','7.25','7.00','6.75','6.50','6.25','6.00','5.75','5.50','-6.75','-7.00','-7.25','-7.50','-7.75','-8.00','-8.25','-8.50','-8.75','-9.00','-9.25','-9.50','-9.75','-10.00','-10.25','-10.50','-10.75','-11.00','-11.25','-11.50','-11.75','-12.00','-12.25','-12.50','-12.75','99') ) ) and () and ( ( (status IN('DROP','XDROP')) and (last_local_call_time < CONCAT(DATE_ADD(NOW(), INTERVAL -259200 SECOND),' ',CURTIME()) ) ) or (status NOT IN('DROP','XDROP')) ) and (called_count < 7); You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and ( ( (status IN('DROP','XDROP')) and (last_local_call_time < CONCAT(DATE_AD' at line 1 at /usr/share/astguiclient/AST_VDhopper.pl line 1825.
Vicibox 4.0.1 from iso | Vicidial VERSION: 2.6-391a | BUILD: 121222-2146 | Asterisk 1.4.44-vici | Single Server | No Digium/Sangoma Hardware | No extra software after installation |
baka-na
 
Posts: 33
Joined: Thu Aug 02, 2012 1:30 am

Re: hopper script error

Postby DomeDan » Thu Dec 13, 2012 5:03 am

You got some lead filter that the script did'nt expect would be empty or something like that
post the output from this query: "SELECT * FROM vicidial_lead_filters"
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: hopper script error

Postby amedina » Mon Dec 17, 2012 12:53 pm

Hi,

I encountered the same problem when I deleted some of my created filters. What should we do to fix?

Please help!

----------------------------------------------------------------------------------
VERSION: 3.1.10 | BUILD: 110430-1642 | Asterisk Version: 1.4.38-vici | Cluster | No Digium/Sangoma Hardware | No Extra Software After Installation
amedina
 
Posts: 53
Joined: Wed Jul 13, 2011 1:49 pm

Re: hopper script error

Postby DomeDan » Mon Dec 17, 2012 1:01 pm

When you deleted some filters you said...
in the campaign settings for the campaigns that causes the problem, set "Lead Filter" to "NONE" and try to run the hopper script again
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: hopper script error

Postby williamconley » Mon Dec 17, 2012 1:30 pm

set lead filter to NONE on ALL of your campaigns. then turn them back on one at a time until it crashes again and you'll have found your error. you can also try to use the test function for each script which may show the flaw before the hopper hits it as well.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: hopper script error

Postby amedina » Mon Dec 17, 2012 1:30 pm

We restarted the dialers and the hopper loaded some leads but didn't load consistently, then after some minutes it ran out of leads.
Then I set the Lead Filter to NONE, then I ran the AST_VD_Hopper.pl, below is the result.

no command line options set
DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 at /usr/share/astguiclient/AST_VDhopper.pl line 1743.
executing: SELECT count(*) FROM vicidial_list where called_since_last_reset='N' and status IN('NAI','PDROP','DROP','NA','N','CALLBK','B','AM','AL','AB','AA','A','NEW') and list_id IN('70061202','70071201','70071202') and ((gmt_offset_now IN('13.00','12.75','12.50','12.25','12.00','11.75','11.50','11.25','11.00','10.75','10.50','10.25','10.00','9.75','9.50','9.25','9.00','8.75','8.50','8.25','8.00','7.75','7.50','7.25','7.00','6.75','6.50','6.25','6.00','5.75','5.50','5.25','5.00','4.75','4.50','4.25','4.00','3.75','3.50','3.25','3.00','2.75','2.50','2.25','2.00','1.75','1.50','1.25','1.00','0.75','0.50','0.25','0.00','-0.25','-0.50','-0.75','-1.00','-1.25','-1.50','-1.75','-2.00','-2.25','-2.50','-2.75','-3.00','-3.25','-3.50','-3.75','-4.00','-4.25','-4.50','-4.75','-5.00','-5.25','-5.50','-5.75','-6.00','-6.25','-6.50','-6.75','-7.00','-7.25','-7.50','-7.75','-8.00','-8.25','-8.50','-8.75','-9.00','-9.25','-9.50','-9.75','-10.00','-10.25','-10.50','-10.75','-11.00','-11.25','-11.50','-11.75','-12.00','-12.25','-12.50','-12.75','99') ) ) and ; You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 at /usr/share/astguiclient/AST_VDhopper.pl line 1743.
amedina
 
Posts: 53
Joined: Wed Jul 13, 2011 1:49 pm

Re: hopper script error

Postby williamconley » Mon Dec 17, 2012 1:48 pm

find the campaign to which these lists are assigned:

list_id IN('70061202','70071201','70071202')

and turn it off. (and verify that the filter was turned off on that campaign as well, not merely deleted).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: hopper script error

Postby amedina » Mon Dec 17, 2012 2:27 pm

Problem Solved! Thanks DomeDan and williamconley as always ;)
amedina
 
Posts: 53
Joined: Wed Jul 13, 2011 1:49 pm

Re: hopper script error

Postby DomeDan » Tue Dec 18, 2012 6:45 am

Your welcome :) I've posted a patch for this issue http://www.vicidial.org/VICIDIALmantis/view.php?id=627
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden


Return to Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 49 guests