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

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

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

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

Post by hansmayer »

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
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

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

Post by netniV »

This should be reported on MacTrack's GitHub repo as it is a bug.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests