-
-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When updating a device, duplicate entry errors occur when inserting to the database #3639
Comments
One additional Error I found 2020/06/25 15:31:12 - ERROR PHP WARNING: A non-numeric value encountered in file: /var/www/html/cacti/lib/api_device.php on line: 1071 |
OK did more digging also see the same errors when you do a poller sync only after you make a device change 2020/06/25 16:20:46 - CMDPHP ERROR: A DB Exec Failed!, Error: Duplicate entry '7-3-9886' for key 'PRIMARY' |
- Backtrace Errors attempting to run AUTOM8 to Remote Data Collector - Duplicate Entry error when updating Device - This missed a new option to limit device sync to single, or multiple hosts
This should be resolved now. Thanks for all the testing. |
Thank @TheWitness I will try these fixes and get back to you ! |
Ok tried the fixes on My lab and prod boxes all working good ! |
Cool. |
Hey All,
So we have been moving some devices to SNMP V3 what I notice is that if you update the creds on an exisiting device the error log shows the below
2020/06/25 14:35:31 - CMDPHP ERROR: A DB Exec Failed!, Error: Duplicate entry '7-3-8789' for key 'PRIMARY'
2020/06/25 14:35:00 - CMDPHP ERROR: A DB Exec Failed!, Error: Duplicate entry '7-3-8789' for key 'PRIMARY'
2020/06/25 14:45:20 - CMDPHP SQL Backtrace: (/host.php[60]:form_save(), /host.php[253]:api_device_save(), /lib/api_device.php[730]:api_device_purge_from_remote(), /lib/api_device.php[103]:db_execute_prepared())
2020/06/25 14:35:31 - CMDPHP SQL Backtrace: (/host.php[60]:form_save(), /host.php[253]:api_device_save(), /lib/api_device.php[730]:api_device_purge_from_remote(), /lib/api_device.php[103]:db_execute_prepared())
2020/06/25 14:35:00 - CMDPHP SQL Backtrace: (/host.php[60]:form_save(), /host.php[253]:api_device_save(), /lib/api_device.php[730]:api_device_purge_from_remote(), /lib/api_device.php[103]:db_execute_prepared())
2020/06/25 13:15:14 - CMDPHP SQL Backtrace: (/host.php[60]:form_save(), /host.php[253]:api_device_save(), /lib/api_device.php[730]:api_device_purge_from_remote(), /lib/api_device.php[103]:db_execute_prepared())
2020/06/25 13:15:06 - CMDPHP SQL Backtrace: (/host.php[60]:form_save(), /host.php[253]:api_device_save(), /lib/api_device.php[730]:api_device_purge_from_remote(), /lib/api_device.php[103]:db_execute_prepared())
It looks like a dummy error since the device updates just fine and everything works
but I thought I would bring it up
The text was updated successfully, but these errors were encountered: