1

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

当我跑步时,php artisan我得到了这个:

[Symfony\Component\Process\Exception\ProcessTimedOutException] 
The process "php artisan clear-compiled" exceeded the timeout of 300 seconds.

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

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

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

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

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

4

1 回答 1

1

尝试这个

php artisan something:test --timeout=0

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

composer self-updatecomposer update

于 2016-06-03T02:24:31.903 回答