I got the same issue. SQLError Log states the following:
2024-02-15 09:23|0|0|SQLSTATE[HY000]: General error: 1364 Field 'version' doesn't have a default value QUERY : INSERT INTO dashboard_widgets (name)
VALUES ('centreon-widget-resourcestable')
And the upgrade log the follwing:
2024-02-15 09:23|0|0|UPGRADE - 23.10.8: Unable to insert centreon-widget-resourcestable in dashboard_widgets - Code : 0 - Error : SQLSTATE[HY000]: General error: 136>
#1 /usr/share/centreon/www/install/php/Update-23.10.8.php(35): CentreonDB->query()
#2 /usr/share/centreon/www/install/php/Update-23.10.8.php(49): Core\Platform\Infrastructure\Repository\DbWriteUpdateRepository->{closure}()
#3 /usr/share/centreon/src/Core/Platform/Infrastructure/Repository/DbWriteUpdateRepository.php(144): include_once('...')
#4 /usr/share/centreon/src/Core/Platform/Infrastructure/Repository/DbWriteUpdateRepository.php(61): Core\Platform\Infrastructure\Repository\DbWriteUpdateRepository->>
#5 /usr/share/centreon/www/install/step_upgrade/process/process_step4.php(46): Core\Platform\Infrastructure\Repository\DbWriteUpdateRepository->runUpdate()
#6 {main}
Hello,
same error on AlmaLinux 8
Sincerely
hello same error on debian11
I resolved the problem by execute this SQL command :
INSERT INTO `dashboard_widgets` (`name`, `version`) VALUES ('centreon-widget-resourcestable', '23.10.8')
In fact, the field ‘version’ is defined Not NULL. The field must be defined.
Sincerely,
sfs
mysql
use centreon;
INSERT INTO `dashboard_widgets` (`name`, `version`) VALUES ('centreon-widget-resourcestable', '23.10.8');
it’s OK !
thanks