Skip to content

Composer packages installation fails #1

Closed
@hajekj

Description

@hajekj

When deploying the example source code from GitHub, I end up getting following error (WAWS Composer site extension enabled):

Command: d:\home\SiteExtensions\ComposerExtension\Hooks\deploy.cmd
Using custom deployment setting for DEPLOYMENT_SOURCE custom value is 'web'.
Install Dependencies with Composer
Loading composer repositories with package information
Initializing PEAR repository http://pear.php.net
Installing dependencies
  - Installing pear-pear.php.net/mail_mime (1.8.9)
    Downloading
  - Installing pear-pear.php.net/mail_mimedecode (1.5.5)
    Downloading
  - Installing pear-pear.php.net/net_url2 (2.2.0)
    Downloading
  - Installing pear-pear.php.net/xml_util (1.3.0)
    Downloading
  - Installing pear-pear.php.net/console_getopt (1.4.0)
    Downloading
  - Installing pear-pear.php.net/structures_graph (1.1.0)
    Downloading
  - Installing pear-pear.php.net/archive_tar (1.3.16)
    Downloading
  - Installing pear-pear.php.net/pear (1.9.5)
    Downloading




  [UnexpectedValueException]                                                                                                                                                  
Fatal error: Uncaught exception 'Symfony\Component\Process\Exception\RuntimeException' with message 'Unable to kill the process' in phar://D:/home/SiteExtensions/ComposerExtension/Commands/composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php:803
  Failed to extract PEAR package D:\home\site\vendor/pear-pear.php.net/PEAR/PEAR-1.9.5.tgz to D:\home\site\vendor/pear-pear.php.net/PEAR. Reason: Unable to kill the process  
Stack trace:

#0 phar://D:/home/SiteExtensions/ComposerExtension/Commands/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/SiteExtensions/ComposerExtension/Commands/composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php on line 803


  [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]


Handling Basic Web Site deployment.
KuduSync.NET from: 'D:\home\site\repository\web' to: 'D:\home\site\wwwroot'
Deleting file: 'hostingstart.html'
Copying file: 'index.php'
Finished successfully.

Another useful information could be probably Ran For: 400 seconds
This seems to me like composer is timing out - possibly by changing the Kudu timeout setting SCM_COMMAND_IDLE_TIMEOUT=600 (as per here), but I haven't tested this yet.

Could you look into this please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions