【发布时间】:2015-07-28 09:13:48
【问题描述】:
我正在尝试将我的 Symfony 2 应用程序部署到 Microsoft Azure 网站云。 为此,我按照本指南中的步骤http://symfony.com/doc/current/cookbook/deployment/azure-website.html#configure-the-symfony-application
现在,当我进入“配置 Symfony 应用程序”步骤时,我运行命令 php composer.phar install。我省略了-d extension=php_intl.dllswitch,因为扩展已经加载。其实我都试过了,没啥区别。
现在,运行安装后命令时出现以下错误:
[Symfony\Component\Process\Exception\RuntimeException]
Unable to kill the process
我尝试增加 max_execution_time(但它无论如何都设置为 0),还尝试将 app_settings 中的 SCM_COMMAND_IDLE_TIMEOUT 参数设置为 3600 之类的值。仍然无法正常工作。
有什么想法吗? 这是完整的输出:
D:\home\site\wwwroot>php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception
[Symfony\Component\Process\Exception\RuntimeException]
Unable to kill the process
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no- progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
Fatal error: Uncaught exception 'Symfony\Component\Process\Exception\RuntimeException' with message 'Unable to kill the process' in phar://D:/home/site/wwwroot /composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php:801
Stack trace:
#0 phar://D:/home/site/wwwroot/composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php(177): Symfony\Component\Process\Process->stop()
#1 [internal function]: Symfony\Component\Process\Process->__destruct()
#2 {main}
thrown in phar://D:/home/site/wwwroot/composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php on line 801
【问题讨论】:
-
要按照您的指南,向下滚动到有关数据库连接字符串的部分。在作曲家安装过程中,控制台会提示问题。你是回答还是不回答?
-
我已经回答了这些问题。但我必须尽快回答。如果我等待的时间过长,我猜大概是 30 秒,那么脚本会以 [RuntimeException] Aborted 消息中止。也许这有助于找到原因
-
它在尝试运行
exec(sprintf('taskkill /F /T /PID %d 2>&1', $this->getPid()), $output, $exitCode);时似乎超时过程,您应该检查没有pid冲突,或者您可以重新启动Azure(如果可能)并重试。