Asteriskcdrdb warnings- errors

Hi,
I have the Freepbx distro 4.211.64-7 installed.
This morning i am getting these warnings-errors
[2014-05-23 17:33:13] VERBOSE[6454][C-00000046] app_dial.c: – SIP/4003-0000007f is ringing
[2014-05-23 17:33:13] VERBOSE[6348][C-00000046] app_queue.c: – Local/[email protected];1 is ringing
[2014-05-23 17:33:19] VERBOSE[6454][C-00000046] app_dial.c: – SIP/4003-0000007f answered Local/[email protected];2
[2014-05-23 17:33:19] VERBOSE[6454][C-00000046] pbx.c: – Executing [[email protected]:1] Set(“SIP/4003-0000007f”, “__MACRO_RESULT=”) in new stack
[2014-05-23 17:33:19] VERBOSE[6454][C-00000046] pbx.c: – Executing [[email protected]:2] Set(“SIP/4003-0000007f”, “CFIGNORE=”) in new stack
[2014-05-23 17:33:19] VERBOSE[6454][C-00000046] pbx.c: – Executing [[email protected]:3] Set(“SIP/4003-0000007f”, “MASTER_CHANNEL(CFIGNORE)=”) in new stack
[2014-05-23 17:33:19] VERBOSE[6454][C-00000046] pbx.c: – Executing [[email protected]:4] Set(“SIP/4003-0000007f”, “FORWARD_CONTEXT=from-internal”) in new stack
[2014-05-23 17:33:19] VERBOSE[6454][C-00000046] pbx.c: – Executing [[email protected]:5] Set(“SIP/4003-0000007f”, “MASTER_CHANNEL(FORWARD_CONTEXT)=from-internal”) in new stack
[2014-05-23 17:33:19] VERBOSE[6454][C-00000046] pbx.c: – Executing [[email protected]:6] Macro(“SIP/4003-0000007f”, “blkvm-clr,”) in new stack
[2014-05-23 17:33:19] VERBOSE[6454][C-00000046] pbx.c: – Executing [[email protected]:1] Set(“SIP/4003-0000007f”, “SHARED(BLKVM,SIP/Vega1-00000077)=”) in new stack
[2014-05-23 17:33:19] VERBOSE[6454][C-00000046] pbx.c: – Executing [[email protected]:2] Set(“SIP/4003-0000007f”, “GOSUB_RETVAL=”) in new stack
[2014-05-23 17:33:19] VERBOSE[6454][C-00000046] pbx.c: – Executing [[email protected]:3] MacroExit(“SIP/4003-0000007f”, “”) in new stack
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute returned an error -1: 23000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.69-log]Duplicate entry ‘9854868’ for key ‘PRIMARY’ (86)
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute error -1! Verifying connection to asteriskcdrdb [MySQL-asteriskcdrdb]…
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: Connection is down attempting to reconnect…
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: Connecting asteriskcdrdb
[2014-05-23 17:33:19] VERBOSE[6454][C-00000046] pbx.c: – Executing [[email protected]:7] ExecIf(“SIP/4003-0000007f”, “0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=4003)”) in new stack
[2014-05-23 17:33:19] VERBOSE[6454][C-00000046] pbx.c: – Executing [[email protected]:8] ExecIf(“SIP/4003-0000007f”, “0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=4003)”) in new stack
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: res_odbc: Connected to asteriskcdrdb [MySQL-asteriskcdrdb]
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute returned an error -1: 23000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.69-log]Duplicate entry ‘9854868’ for key ‘PRIMARY’ (86)
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute error -1! Verifying connection to asteriskcdrdb [MySQL-asteriskcdrdb]…
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: Connection is down attempting to reconnect…
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: Connecting asteriskcdrdb
[2014-05-23 17:33:19] VERBOSE[6348][C-00000046] app_queue.c: – Local/[email protected];1 answered SIP/Vega1-00000077
[2014-05-23 17:33:19] VERBOSE[6348][C-00000046] file.c: – <Local/[email protected];1> Playing ‘queue-reporthold.ulaw’ (language ‘gr’)
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: res_odbc: Connected to asteriskcdrdb [MySQL-asteriskcdrdb]
[2014-05-23 17:33:19] WARNING[2828] cel_odbc.c: Insert failed on ‘asteriskcdrdb:cel’. CEL failed: INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘ANSWER’,{ts ‘2014-05-23 17:33:19’},‘4003’,‘4003’,‘4003’,’’,’’,‘4003’,‘from-internal’,‘SIP/4003-0000007f’,‘AppDial’,’(Outgoing Line)’,3,’’,‘1400855592.211’,‘1400855490.199’,’’,’’,’’)
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute returned an error -1: 23000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.69-log]Duplicate entry ‘9854868’ for key ‘PRIMARY’ (86)
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute error -1! Verifying connection to asteriskcdrdb [MySQL-asteriskcdrdb]…
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: Connection is down attempting to reconnect…
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: Connecting asteriskcdrdb
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: res_odbc: Connected to asteriskcdrdb [MySQL-asteriskcdrdb]
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute returned an error -1: 23000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.69-log]Duplicate entry ‘9854868’ for key ‘PRIMARY’ (86)
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute error -1! Verifying connection to asteriskcdrdb [MySQL-asteriskcdrdb]…
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: Connection is down attempting to reconnect…
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: Connecting asteriskcdrdb
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: res_odbc: Connected to asteriskcdrdb [MySQL-asteriskcdrdb]
[2014-05-23 17:33:19] WARNING[2828] cel_odbc.c: Insert failed on ‘asteriskcdrdb:cel’. CEL failed: INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘ANSWER’,{ts ‘2014-05-23 17:33:19’},‘586…2122633269’,‘2122633269’,‘2122633269’,’’,’’,‘s’,‘macro-dial-one’,‘Local/[email protected];2’,‘Dial’,‘SIP/4003,TtrM(auto-blkvm)’,3,’’,‘1400855592.210’,‘1400855490.199’,’’,’’,’’)
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute returned an error -1: 23000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.69-log]Duplicate entry ‘9854868’ for key ‘PRIMARY’ (86)
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute error -1! Verifying connection to asteriskcdrdb [MySQL-asteriskcdrdb]…
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: Connection is down attempting to reconnect…
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: Connecting asteriskcdrdb
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: res_odbc: Connected to asteriskcdrdb [MySQL-asteriskcdrdb]
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute returned an error -1: 23000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.69-log]Duplicate entry ‘9854868’ for key ‘PRIMARY’ (86)
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute error -1! Verifying connection to asteriskcdrdb [MySQL-asteriskcdrdb]…
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: Connection is down attempting to reconnect…
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: Connecting asteriskcdrdb
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: res_odbc: Connected to asteriskcdrdb [MySQL-asteriskcdrdb]
[2014-05-23 17:33:19] WARNING[2828] cel_odbc.c: Insert failed on ‘asteriskcdrdb:cel’. CEL failed: INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘ANSWER’,{ts ‘2014-05-23 17:33:19’},‘4003’,‘4003’,’’,’’,’’,‘400’,‘from-queue’,‘Local/[email protected];1’,‘AppQueue’,’(Outgoing Line)’,3,’’,‘1400855592.209’,‘1400855490.199’,’’,’’,’’)
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute returned an error -1: 23000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.69-log]Duplicate entry ‘9854868’ for key ‘PRIMARY’ (86)
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute error -1! Verifying connection to asteriskcdrdb [MySQL-asteriskcdrdb]…
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: Connection is down attempting to reconnect…
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: Connecting asteriskcdrdb
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: res_odbc: Connected to asteriskcdrdb [MySQL-asteriskcdrdb]
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute returned an error -1: 23000: [MySQL][ODBC 5.1 Driver][mysqld-5.1.69-log]Duplicate entry ‘9854868’ for key ‘PRIMARY’ (86)
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: SQL Execute error -1! Verifying connection to asteriskcdrdb [MySQL-asteriskcdrdb]…
[2014-05-23 17:33:19] WARNING[2828] res_odbc.c: Connection is down attempting to reconnect…
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: Connecting asteriskcdrdb
[2014-05-23 17:33:19] NOTICE[2828] res_odbc.c: res_odbc: Connected to asteriskcdrdb [MySQL-asteriskcdrdb]
[2014-05-23 17:33:19] WARNING[2828] cel_odbc.c: Insert failed on ‘asteriskcdrdb:cel’. CEL failed: INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘BRIDGE_START’,{ts ‘2014-05-23 17:33:19’},‘586…2122633269’,‘2122633269’,‘2122633269’,’’,’’,‘s’,‘macro-dial-one’,‘Local/[email protected];2’,‘Dial’,‘SIP/4003,TtrM(auto-blkvm)’,3,’’,‘1400855592.210’,‘1400855490.199’,‘SIP/4003-0000007f’,’’,’’)

I tried
’cdr mysql status’ output
Connected to asteriskcdrdb on socket file default using table cdr for 11 minutes, 18 seconds.

‘cdr show status’ output
Call Detail Record (CDR) settings

Logging: Enabled
Mode: Simple
Log unanswered calls: Yes
Log congestion: No

  • Registered Backends

    mysql
    radius
    Adaptive ODBC
    cdr-custom
    Wrote 129 records since last restart and 25 records since last reconnect.

Any help how to fix this ,please
TIA

I think i fixed it by running a mysqlcheck --repair --all-databases

Thank you