You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The manager-bundle uses Symfony\Component\Process\Process in ScriptHandler::executeCommand. Its default timeout is 60 seconds. However, in some environments warming the cache can take a long time and thus the execution of this command ends with an exception:
// Warming up the cache for the prod environment with debug false
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-update-cmd event terminated with an exception
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process ""php" "…/vendor/contao/manager-bundle/src/Composer/../
../bin/contao-console" --ansi cache:warmup --env=prod" exceeded the timeout of 60 seconds.
Same issue here when running Contao 4.4 managed edition in a Docker container. I was able to workaround this issue by adding an explicit timeout limit $process->setTimeout(2000); at vendor/contao/manager-bundle/src/Composer/ScriptHandler.php:executeCommand(...) like the image shows below.
I think it would be nice if these processes honor the COMPOSER_PROCESS_TIMEOUT environment variable.
The manager-bundle uses
Symfony\Component\Process\Process
inScriptHandler::executeCommand
. Its default timeout is60
seconds. However, in some environments warming the cache can take a long time and thus the execution of this command ends with an exception:See also https://community.contao.org/de/showthread.php?68815-gelöst-Contao-Manager-bricht-ab-(Timeout). There are a few more reported instances. They happen especially when the Contao Manager is in use.
The text was updated successfully, but these errors were encountered: