MySQL Error log Duplicate entry

All installation and configuration problems and questions

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

MySQL Error log Duplicate entry

Postby Iz3k34l » Sat Jul 26, 2014 1:05 pm

This is the error from the log

Code: Select all
2014-07-26 12:48:36|agi-VDAD_ALL_outbound.agi|01103||1062|Duplicate entry '1406396902.151335' for key 'PRIMARY'|INSERT INTO vicidial_log (uniqueid,lead_id,campaign_id,call_date,start_epoch,status,phone_code,phone_number,user,processed,alt_dial,list_id) values('1406396902.151335','10950158','ZCIN','2014-07-26 12:48:36','1406396916','LRERR','1','3364752851','VDAD','N','NONE','629834')|V7261248220010950158|10950158|


What causes this other than the obvious 'duplicate entry', how can this be fixed or should i 'silence' the error to output.

Thanks
Vicidial Ver.2.6-399a | ViciBox.x86_64-4.0.3.preload.iso
BUILD: 130425-0700
Web/MySQL-4x Xeon X7550 4 Core 2.0GHz. 64GB ram
1x Dialer- Dual Xeon Quad Core 2.66GHz 16GB ram
5x Dialer- Dual Xeon Quad Core 2.66GHz 8GB ram
amfeltec PCI Timers
Iz3k34l
 
Posts: 76
Joined: Fri Feb 08, 2013 4:55 pm

Re: MySQL Error log Duplicate entry

Postby williamconley » Tue Jul 29, 2014 4:45 pm

Find the cause of the error. I note that the status is LRERR. What was the situation with this call? This may represent an actual problem (agent closed his browser ...) that should be addressed. Or it may merely represent the system being careful to close out a call without dropping any information (which may result in duplication in situations that are abnormal, such as an agent workstation crashing).

Or upgrade to a more recent Vicidial (which may resolve the error).

You may find that this entry actually is a duplicate but may be necessary to avoid missing data in some circumstances. In which case, you can avoid the error by modifying the "insert" into an insert with "on duplicate ..." to allow completion without an error.

But I'd start with an upgrade.
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: MySQL Error log Duplicate entry

Postby Iz3k34l » Fri Aug 01, 2014 3:12 pm

Thanks william, i found this in the error logs while looking for solutions to particular problems and didn't know the relevance of this error. Your response however leads to a topic i have been wondering about, since i have clustered servers is there a process for upgrading to the latest version, IE: the database first and if upgrading what about custom work done to the various pages will that be overwritten?
Vicidial Ver.2.6-399a | ViciBox.x86_64-4.0.3.preload.iso
BUILD: 130425-0700
Web/MySQL-4x Xeon X7550 4 Core 2.0GHz. 64GB ram
1x Dialer- Dual Xeon Quad Core 2.66GHz 16GB ram
5x Dialer- Dual Xeon Quad Core 2.66GHz 8GB ram
amfeltec PCI Timers
Iz3k34l
 
Posts: 76
Joined: Fri Feb 08, 2013 4:55 pm

Re: MySQL Error log Duplicate entry

Postby geoff3dmg » Mon Aug 04, 2014 2:54 am

Upgrade the database first then the web/telephony servers. If you have customisations you should maintain your own patch files (if they are useful to everyone I'd suggest you submit them as enhancements in the bug tracker).
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 101 guests