Hi the community,
I’m currently experiencing a strange issue (don’t know exactly when it started).
In the service tab, I can’t access the “Timeline” tab anymore for any service or host.
I get the following error message
Symfony\Component\HttpFoundation\Response::__construct(): Argument #2 ($status) must be of type int, string given, called in /usr/share/centreon/src/EventSubscriber/CentreonEventSubscriber.php on line 422
In the centreon-error.log log file I saw this error
p01-Mar-2023 16:29:02 Europe/Paris] CRITICAL: SQLSTATEC42S02]: Base table or view not found: 1146 Table 'centreon_storage.logs' doesn't exist {"context":" object] (PDOException(code: 42S02): SQLSTATE042S02]: Base table or view not found: 1146 Table 'centreon_storage.logs' doesn't exist at /usr/share/centreon/src/Centreon/Infrastructure/Monitoring/Timeline/TimelineRepositoryRDB.php:228)"}
}01-Mar-2023 16:29:02 Europe/Paris] CRITICAL: Uncaught Error: Symfony\Component\HttpFoundation\Response::__construct(): Argument #2 ($status) must be of type int, string given, called in /usr/share/centreon/src/EventSubscriber/CentreonEventSubscriber.php on line 422 {"exception":""object] (TypeError(code: 0): Symfony\\Component\\HttpFoundation\\Response::__construct(): Argument #2 ($status) must be of type int, string given, called in /usr/share/centreon/src/EventSubscriber/CentreonEventSubscriber.php on line 422 at /usr/share/centreon/vendor/symfony/http-foundation/Response.php:215)"}
}01-Mar-2023 16:29:02 Europe/Paris] CRITICAL: Symfony\Component\HttpFoundation\Response::__construct(): Argument #2 ($status) must be of type int, string given, called in /usr/share/centreon/src/EventSubscriber/CentreonEventSubscriber.php on line 422 {"context":" object] (TypeError(code: 0): Symfony\\Component\\HttpFoundation\\Response::__construct(): Argument #2 ($status) must be of type int, string given, called in /usr/share/centreon/src/EventSubscriber/CentreonEventSubscriber.php on line 422 at /usr/share/centreon/vendor/symfony/http-foundation/Response.php:215)"}
After checking the database, indeed, the table 'centreon_storage.logs' is missing.
How can I resolve this issue ?
Thank you