Upgrade 8.03 to 8.04 error

Hi,

we’re trying to upgrade from 8.03 to 8.04.

When lauching ./bin/console -vvv suitecrm:app:upgrade -t "SuiteCRM-8.0.4", we get the following warning and fatal error :

Note : our server has multiple php versions 8.1 (default) and 7.3 - we forced the usage of php7.3 in ./bin/console.
Note : Path HOME_SuiteCrm replaces the absolute path of suiteCRM install dir.

…/…
Running: legacy-post-upgrade
08:11:47 WARNING [php] Warning: array_merge(): Expected parameter 1 to be an array, null given
[
“exception” => ErrorException {
#message: “Warning: array_merge(): Expected parameter 1 to be an array, null given”
#code: 0
#file: “./public/legacy/include/portability/System/Upgrade/PostUpgrade.php”
#line: 392
#severity: E_WARNING
trace: {
./public/legacy/include/portability/System/Upgrade/PostUpgrade.php:392 {
SuiteCRM\portability\System\Upgrade\PostUpgrade->injectLanguageStrings(): void^
› $app_list_strings = return_app_list_strings_language(‘en_us’);
› $mod_strings = array_merge($mod_strings, $adminStrings, $UWstrings);
› }
}
./public/legacy/include/portability/System/Upgrade/PostUpgrade.php:119 { …}
./core/backend/Install/LegacyHandler/Upgrade/PostUpgradeHandler.php:60 { …}
./core/backend/Install/Service/Upgrade/Steps/LegacyPostUpgrade.php:81 { …}
./core/backend/Engine/Model/ProcessStepTrait.php:48 { …}
./core/backend/Engine/Service/ProcessSteps/ProcessStepExecutor.php:142 { …}
./core/backend/Install/Command/BaseStepExecutorCommand.php:93 { …}
./core/backend/Install/Command/BaseStepExecutorCommand.php:53 { …}
./core/backend/Install/Command/BaseCommand.php:133 { …}
./vendor/symfony/console/Command/Command.php:256 { …}
./vendor/symfony/console/Application.php:989 { …}
./vendor/symfony/framework-bundle/Console/Application.php:96 { …}
./vendor/symfony/console/Application.php:290 { …}
./vendor/symfony/framework-bundle/Console/Application.php:82 { …}
./vendor/symfony/console/Application.php:166 { …}
./bin/console:42 { …}
}
}
]
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: Interlace handling should be turned on when using png_read_image
step: legacy-post-upgrade | status: done
Post Upgrade process complete
Running: clear-symfony-cache
step: clear-symfony-cache | status: done
Successfully cleared cache

============
08:12:02 WARNING [php] Warning: require(HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/getConsole_ErrorListenerService.php): failed to open stream: No such file or directory
[
“exception” => ErrorException {
#message: “Warning: require(HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/getConsole_ErrorListenerService.php): failed to open stream: No such file or directory”
#code: 0
#file: “HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/App_KernelProdContainer.php”
#line: 516
#severity: E_WARNING
trace: {
HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/App_KernelProdContainer.php:516
HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/App_KernelProdContainer.php:819
./vendor/symfony/event-dispatcher/EventDispatcher.php:267 { …}
./vendor/symfony/event-dispatcher/EventDispatcher.php:230 { …}
./vendor/symfony/event-dispatcher/EventDispatcher.php:59 { …}
./vendor/symfony/console/Application.php:1004 { …}
./vendor/symfony/framework-bundle/Console/Application.php:96 { …}
./vendor/symfony/console/Application.php:290 { …}
./vendor/symfony/framework-bundle/Console/Application.php:82 { …}
./vendor/symfony/console/Application.php:166 { …}
./bin/console:42 { …}
}
}
]
PHP Fatal error: require(): Failed opening required ‘HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/getConsole_ErrorListenerService.php’ (include_path=‘HOME_SuiteCrm8/public/legacy/include/…:.:/usr/share/php’) in HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/App_KernelProdContainer.php on line 516
08:12:02 CRITICAL [php] Fatal Compile Error: require(): Failed opening required ‘HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/getConsole_ErrorListenerService.php’ (include_path=‘HOME_SuiteCrm8/public/legacy/include/…:.:/usr/share/php’)
[
“exception” => Symfony\Component\ErrorHandler\Error\FatalError^ {
-error: [
“type” => 64,
“message” => “require(): Failed opening required ‘HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/getConsole_ErrorListenerService.php’ (include_path=‘HOME_SuiteCrm8/public/legacy/include/…:.:/usr/share/php’)”,
“file” => “HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/App_KernelProdContainer.php”,
“line” => 516
]
#message: “Compile Error: require(): Failed opening required ‘HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/getConsole_ErrorListenerService.php’ (include_path=‘HOME_SuiteCrm8/public/legacy/include/…:.:/usr/share/php’)”
#code: 0
#file: “HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/App_KernelProdContainer.php”
#line: 516
}
]

In App_KernelProdContainer.php line 516:

[Symfony\Component\ErrorHandler\Error\FatalError]
Compile Error: require(): Failed opening required ‘HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/getConsole_ErrorListenerService.php’ (include_path=‘HOME_SuiteCrm8/public/legacy/include/…:.:/usr/share/php’)

Exception trace:
at HOME_SuiteCrm8/cache/prod/ContainerStAaW9h/App_KernelProdContainer.php:516

suitecrm:app:upgrade [-t|–target-version TARGET-VERSION]

It the upgrade process try to access “cache/prod/*” files but “prod” directory is not created (it is well created when browsing suitecrm pages).

Despite that error :
1/ When we try to access home url (login), we can not login : Error “Error occured fetching metada”
2/ When accessing HOMEURL/legacy/ : we can login et access dashboard (and other pages) without the main layout (top bar)…

Could you help us ?

Thank you

1 Like