Hello, I need some help.
Since some time ago we have a error in the poller.php in the agent part.
This is error in the portal on a good number of machine.
Data:
Validate.php: “ourvalidatephp - LibreNMS”
Poller error: “poller error - LibreNMS”
The erro data is from a ubuntu 20 but i get it in any linux os
The error is:
DEB Packages:
SQL[select * from `packages` where `packages`.`device_id` = ? and `packages`.`device_id` is not null [245] 2.27ms]
Error polling unix-agent module for 10.X.X.X. PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'arch' cannot be null in /opt/librenms/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117
RPM Packages:
SQL[select * from `packages` where `packages`.`device_id` = ? and `packages`.`device_id` is not null [46] 1.74ms]
Error polling unix-agent module for 10.100.50.81. PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
'46-gpg-pubkey-rpm-(none)-352c64e5-52ae6884' for key 'packages_device_id_name_manager_arch_version_build_unique' in /opt/librenms/ve
ndor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117
Workaround:
To completely remove the error from a machine, we have deleted the machine and made sure to delete all files associated with it.
Then when adding, the error disappears for the time being.