Jump to:

4938 Posts in 16588 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Composer timeout

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 441 Views
  • grumpysmurf
    Avatar
    Community Member
    1 Post

    Composer timeout Link to this post

    Trying to create a new install with composer. I've installed silverstripe probably about a dozen times on this webserver, we're evaluating the system and evaluating modules, so far so good until it just all stopped working. For some reason now the "composer create-project" keeps falling over.

    [Symfony\Component\Process\Exception\RuntimeException]
    The process timed out.

    I've done a few things
    - confirmed network connectivity
    - a tcpdump shows a bunch of https traffic from github
    - increased COMPOSER_PROCESS_TIMEOUT

    So at this stage "I don't get it". This wasn't a problem before, if I did an rm -Rf on the folder I could have a new instance up and running again in a few minutes. Any ideas?

    root@<webserver>:/opt/sites# composer create-project silverstripe/installer target_folder --verbose
    Installing silverstripe/installer (3.0.4)
    - Installing silverstripe/installer (3.0.4)
    Loading from cache
    Unpacking archive
    Cleaning up

    Created project in target_folder
    Loading composer repositories with package information
    Installing dependencies from lock file
    - Installing composer/installers (dev-master 0a584ae)
    Cloning 0a584aec8e1cf9df7a29d7a16067cd4db2632d07
    Cloning into '/opt/sites/target_folder/vendor/composer/installers'...
    Cloning into '/opt/sites/target_folder/vendor/composer/installers'...

    - Installing silverstripe/framework (3.0.x-dev 3.0.4)
    Cloning 3.0.4
    Cloning into 'framework'...
    Cloning into 'framework'...

    [Symfony\Component\Process\Exception\RuntimeException]
    The process timed out.

    Exception trace:
    () at phar:///usr/local/bin/composer/vendor/symfony/process/Symfony/Component/Process/Process.php:408
    Symfony\Component\Process\Process->wait() at phar:///usr/local/bin/composer/vendor/symfony/process/Symfony/Component/Process/Process.php:196
    Symfony\Component\Process\Process->run() at phar:///usr/local/bin/composer/src/Composer/Util/ProcessExecutor.php:43
    Composer\Util\ProcessExecutor->execute() at phar:///usr/local/bin/composer/src/Composer/Downloader/GitDownloader.php:281
    Composer\Downloader\GitDownloader->runCommand() at phar:///usr/local/bin/composer/src/Composer/Downloader/GitDownloader.php:40
    Composer\Downloader\GitDownloader->doDownload() at phar:///usr/local/bin/composer/src/Composer/Downloader/VcsDownloader.php:59
    Composer\Downloader\VcsDownloader->download() at phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:177
    Composer\Downloader\DownloadManager->download() at phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:152
    Composer\Installer\LibraryInstaller->installCode() at phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:86
    Composer\Installer\LibraryInstaller->install() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:151
    Composer\Installer\InstallationManager->install() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:138
    Composer\Installer\InstallationManager->execute() at phar:///usr/local/bin/composer/src/Composer/Installer.php:460
    Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:187
    Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/CreateProjectCommand.php:214
    Composer\Command\CreateProjectCommand->installProject() at phar:///usr/local/bin/composer/src/Composer/Command/CreateProjectCommand.php:108
    Composer\Command\CreateProjectCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:240
    Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:193
    Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:109
    Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:106
    Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:82
    Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:39
    require() at /usr/local/bin/composer:15

    create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] package [directory] [version]

  • Willr
    Avatar
    Forum Moderator
    5502 Posts

    Re: Composer timeout Link to this post

    Framework is quite a bit project so can take a while to checkout. You can tell composer to expand the timeout http://getcomposer.org/doc/03-cli.md#composer-process-timeout

    441 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.