System: Debian 11.5
PHP 7.4.30
I have a problem with updating Cacti on Debian 11.5
I did two Debian distribution upgrades in a row - from 9 to 10 and to 11.
Now I want to upgrade Cacti, but process failed. Here is a cacti.log:
Code: Select all
2022-09-16 12:33:29 - INSTALL: always: Spawning background process: /usr/bin/php '/usr/share/cacti/site/install/background.php' 1663324409.5817
2022-09-16 12:33:29 - INSTALL: Checking arguments
2022-09-16 12:33:29 - INSTALL: always: Setting PHP Option max_execution_time = 0
2022-09-16 12:33:29 - INSTALL: always: Setting PHP Option memory_limit = -1
2022-09-16 12:33:30 - INSTALL: always: Starting UPGRADE Process for v1.2.16
2022-09-16 12:33:30 - INSTALL: always: Found 111 tables to convert
2022-09-16 12:33:30 - INSTALL: always: Converting Table #1 'weathermap_settings'
...
2022-09-16 12:33:36 - INSTALL: always: Converting Table #111 'automation_devices'
2022-09-16 12:33:36 - INSTALL: always: Switched from to /tmp/cduInKE7h
2022-09-16 12:33:36 - INSTALL: always: NOTE: Using temporary file for db cache: /tmp/cduInKE7h
2022-09-16 12:33:36 - INSTALL: always: Upgrading from v1.0.4 (DB 1.2.16 (DB: 1.0.4)) to v1.0.5
2022-09-16 12:33:36 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE data_source_profile_id = 0' at line 1
2022-09-16 12:33:36 - CMDPHP SQL Backtrace: (/install/background.php[54]:Installer::beginInstall(), /lib/installer.php[3386]:Installer->install(), /lib/installer.php[2891]:Installer->upgradeDatabase(), /lib/installer.php[3285]:upgrade_to_1_0_5(), /install/upgrades/1_0_5.php[35]:db_install_execute(), /install/functions.php[136]:db_execute_prepared())
2022-09-16 12:33:36 - INSTALL: always: Finished UPGRADE Process for v1.2.16
2022-09-16 12:33:36 - INSTALL: always: WARNING: One or more upgrades failed to install correctly
2022-09-16 12:33:36 - INSTALL: always: Installation was started at 2022-09-16 10:33:29, completed at 2022-09-16 10:33:36
Thanks for any suggestions!