[2020-02-06 16:58:24] production.ERROR: SQLSTATE[HY000]: General error: 1525 Incorrect DATE value: ‘0000-00-00’ (SQL: select exists(select * from alert_schedule
inner join alert_schedulables
on alert_schedule
.schedule_id
= alert_schedulables
.schedule_id
where ((recurring
= 0 and start
<= NOW() and end
>= NOW()) or (recurring
= 1 and (start_recurring_dt
<= date_format(NOW(), ‘%Y-%m-%d’) and (end_recurring_dt
>= date_format(NOW(), ‘%Y-%m-%d’) or end_recurring_dt
is null or end_recurring_dt
= 0000-00-00 or end_recurring_dt
= )) and start_recurring_hr
<= date_format(NOW(), ‘%H:%i:%s’) and end_recurring_hr
>= date_format(NOW(), ‘%H:%i:%s’) and (recurring_day
like CONCAT(‘%’, date_format(NOW(), ‘%w’), ‘%’) or recurring_day
is null or recurring_day
= ))) and ((alert_schedulable_type
= device and alert_schedulable_id
= 5) or (alert_schedulable_type
= device_group and 0 = 1) or (alert_schedulable_type
= location and alert_schedulable_id
= 3))) as exists
) {“userId”:1,“exception”:"[object] (Illuminate\Database\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1525 Incorrect DATE value: ‘0000-00-00’ (SQL: select exists(select * from alert_schedule
inner join alert_schedulables
on alert_schedule
.schedule_id
= alert_schedulables
.schedule_id
where ((recurring
= 0 and start
<= NOW() and end
>= NOW()) or (recurring
= 1 and (start_recurring_dt
<= date_format(NOW(), ‘%Y-%m-%d’) and (end_recurring_dt
>= date_format(NOW(), ‘%Y-%m-%d’) or end_recurring_dt
is null or end_recurring_dt
= 0000-00-00 or end_recurring_dt
= )) and start_recurring_hr
<= date_format(NOW(), ‘%H:%i:%s’) and end_recurring_hr
>= date_format(NOW(), ‘%H:%i:%s’) and (recurring_day
like CONCAT(‘%’, date_format(NOW(), ‘%w’), ‘%’) or recurring_day
is null or recurring_day
= ))) and ((alert_schedulable_type
= device and alert_schedulable_id
= 5) or (alert_schedulable_type
= device_group and 0 = 1) or (alert_schedulable_type
= location and alert_schedulable_id
= 3))) as exists
) at /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664, Doctrine\DBAL\Driver\PDOException(code: HY000): SQLSTATE[HY000]: General error: 1525 Incorrect DATE value: ‘0000-00-00’ at /opt/librenms/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:119, PDOException(code: HY000): SQLSTATE[HY000]: General error: 1525 Incorrect DATE value: ‘0000-00-00’ at /opt/librenms/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117)
====================================
Component | Version |
---|---|
LibreNMS | 1.60-8-g6285caba5 |
DB Schema | 2020_02_05_224042_device_inserted_null (158) |
PHP | 7.2.11 |
MySQL | 8.0.17 |
RRDTool | 1.7.0 |
SNMP | NET-SNMP 5.8 |
==================================== |
[OK] Composer Version: 1.9.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
Health pages show everthing it polling and mini graphs show, but anytime i click a device i flag the error above in logs and get an whoops error screen.
Trying to display all devices just displays no results found.