Hi,
Env:
- Ubuntu 24.04.2
- Apache 2.4.58
- PHP 8.3.6
- MariaDB 10.11.8
- From SuiteCRM: 7.14.6
- New SuiteCRM: 8.8.0
I tried to migrate from 7.14.6 to 8.8.0 using the migration guide in Migration - 7.14.x to 8.7.0+ :: SuiteCRM Documentation. But when I run the ./bin/console suitecrm:app:setup-legacy-migration, I have the following error:
PHP Fatal error: Uncaught Exception: Database failure. Please refer to suitecrm.log for details. in /var/www/html/SuiteCRM/public/legacy/include/utils.php:2131
Stack trace:
#0 /var/www/html/SuiteCRM/public/legacy/include/database/DBManager.php(354): sugar_die()
#1 /var/www/html/SuiteCRM/public/legacy/include/database/DBManager.php(329): DBManager->registerError()
#2 /var/www/html/SuiteCRM/public/legacy/include/database/MysqliManager.php(184): DBManager->checkError()
#3 /var/www/html/SuiteCRM/public/legacy/modules/Administration/Administration.php(136): MysqliManager->query()
#4 /var/www/html/SuiteCRM/public/legacy/include/entryPoint.php(226): Administration->retrieveSettings()
#5 /var/www/html/SuiteCRM/config/bootstrap.php(71): require_once(‘…’)
#6 /var/www/html/SuiteCRM/bin/console(30): require(‘…’)
#7 {main}
thrown in /var/www/html/SuiteCRM/public/legacy/include/utils.php on line 2131
Check the suitecrm.log:
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] current_language is: en_us
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Found cache backend SugarCachesMash
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Found cache backend SugarCacheWincache
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Found cache backend SugarCacheMemory
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Using cache backend SugarCacheMemory, since 999 is less than 1000
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Found cache backend SugarCacheRedis
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Found cache backend SugarCacheFile
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Found cache backend SugarCacheZend
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Found cache backend SugarCacheMemcached
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Found cache backend SugarCacheMemcache
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Found cache backend SugarCacheAPC
Sat Mar 8 2025 at 11:04:19 [186340][-none-][INFO] Found language file: en_us.lang.php
Sat Mar 8 2025 at 11:04:19 [186340][-none-][INFO] Found custom language file: en_us.lang.php
Sat Mar 8 2025 at 11:04:19 [186340][-none-][INFO] Query:SELECT id, name, symbol, conversion_rate FROM currencies WHERE status = ‘Active’ and deleted = 0
Sat Mar 8 2025 at 11:04:19 [186340][-none-][FATAL] Mysqli_query failed.
Sat Mar 8 2025 at 11:04:19 [186340][-none-][INFO] Query Execution Time:0.00041890144348145
Sat Mar 8 2025 at 11:04:19 [186340][-none-][FATAL] Query Failed: SELECT id, name, symbol, conversion_rate FROM currencies WHERE status = ‘Active’ and deleted = 0: MySQL error 1146: Table ‘suitecrm.currencies’ doesn’t exist
Sat Mar 8 2025 at 11:04:19 [186340][-none-][INFO] Query:SELECT category, name, value FROM config
Sat Mar 8 2025 at 11:04:19 [186340][-none-][FATAL] Mysqli_query failed.
Sat Mar 8 2025 at 11:04:19 [186340][-none-][INFO] Query Execution Time:0.00039410591125488
Sat Mar 8 2025 at 11:04:19 [186340][-none-][FATAL] Unable to retrieve system settings Query Failed: SELECT category, name, value FROM config: MySQL error 1146: Table ‘suitecrm.config’ doesn’t exist
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Hook called: ::server_round_trip
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Including module specific hook file for custom/modules
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Including Ext hook file for custom/application
Sat Mar 8 2025 at 11:04:19 [186340][-none-][DEBUG] Calling MySQLi::disconnect()
I tried to change the legacy config.php > installer_locked to false. I have also checked the .env file > APP_ENV=prod.
Appreciate if anyone can help.
Thanks in advanced.