CMDPHP ERROR: A DB Exec Failed!, Error: Duplicate entry '4'

Support questions about the MAC Track plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
hansmayer
Posts: 1
Joined: Thu Aug 01, 2019 7:44 am

CMDPHP ERROR: A DB Exec Failed!, Error: Duplicate entry '4'

#1 Post by hansmayer » Mon Aug 05, 2019 4:37 am

Dear All,

my environment: GNU/Linux 4.15 Ubuntu ; PHP 7.2.19-0ubuntu0.18.04.1 ; Cacti 1.2.5 ; Mactrack 4.4 ; MySQL 5.7.17

So far almost everything is working, except Mactrack doesn't show IP's. But I see repeating in the logs these red error:

08/05/2019 11:25:51 - CMDPHP SQL Backtrace: (/plugins/mactrack/mactrack_scanner.php[111]:db_process_add(), /plugins/mactrack/lib/mactrack_functions.php[2104]:db_execute_prepared())
08/05/2019 11:25:51 - CMDPHP ERROR: A DB Exec Failed!, Error: Duplicate entry '4' for key 'PRIMARY'
08/05/2019 11:25:51 - CMDPHP SQL Backtrace: (/plugins/mactrack/mactrack_scanner.php[111]:db_process_add(), /plugins/mactrack/lib/mactrack_functions.php[2104]:db_execute_prepared())
08/05/2019 11:25:51 - CMDPHP ERROR: A DB Exec Failed!, Error: Duplicate entry '3' for key 'PRIMARY'

The questions are, which DB is it ? Is there a way to turn on more logging information ? And how to fix it ?


Kind regards
Hans


Post Reply