运行 php 工匠超时



我继承了一个Laravel 4.2项目,正在执行一些清理工作。

当我运行php artisan时,我得到这个:

[SymfonyComponentProcessExceptionProcessTimedOutException] 
The process "php artisan clear-compiled" exceeded the timeout of 300 seconds.

我试图增加超时,但它最终仍然抛出相同的异常。

当我尝试在本地和我的 VM(Homestead)中运行任何和所有artisan命令时,会发生这种情况。

运行composer install -o -vvv在发生超时后(在php artisan clear-compiled期间结束时)显示以下堆栈跟踪:

Exception trace:
 () at phar:///usr/local/bin/composer.phar/vendor/symfony/process/Process.php:1190
 SymfonyComponentProcessProcess->checkTimeout() at phar:///usr/local/bin/composer.phar/vendor/symfony/process/Process.php:361
 SymfonyComponentProcessProcess->wait() at phar:///usr/local/bin/composer.phar/vendor/symfony/process/Process.php:203
 SymfonyComponentProcessProcess->run() at phar:///usr/local/bin/composer.phar/src/Composer/Util/ProcessExecutor.php:68
 ComposerUtilProcessExecutor->execute() at phar:///usr/local/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:223
 ComposerEventDispatcherEventDispatcher->doDispatch() at phar:///usr/local/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:95
 ComposerEventDispatcherEventDispatcher->dispatchScript() at phar:///usr/local/bin/composer.phar/src/Composer/Installer.php:296
 ComposerInstaller->run() at phar:///usr/local/bin/composer.phar/src/Composer/Command/UpdateCommand.php:172
 ComposerCommandUpdateCommand->execute() at phar:///usr/local/bin/composer.phar/vendor/symfony/console/Command/Command.php:259
 SymfonyComponentConsoleCommandCommand->run() at phar:///usr/local/bin/composer.phar/vendor/symfony/console/Application.php:844
 SymfonyComponentConsoleApplication->doRunCommand() at phar:///usr/local/bin/composer.phar/vendor/symfony/console/Application.php:192
 SymfonyComponentConsoleApplication->doRun() at phar:///usr/local/bin/composer.phar/src/Composer/Console/Application.php:221
 ComposerConsoleApplication->doRun() at phar:///usr/local/bin/composer.phar/vendor/symfony/console/Application.php:123
 SymfonyComponentConsoleApplication->run() at phar:///usr/local/bin/composer.phar/src/Composer/Console/Application.php:101
 ComposerConsoleApplication->run() at phar:///usr/local/bin/composer.phar/bin/composer:43
 require() at /usr/local/bin/composer.phar:24

关于可能导致这种情况的任何想法?我看到的唯一信息是增加作曲家的超时,但到目前为止,这对我不起作用。

试试这个

php artisan something:test --timeout=0

如果这不起作用,请尝试删除供应商文件夹并运行

composer self-updatecomposer update

相关内容

  • 没有找到相关文章

最新更新