Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

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

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

Composer timeout


Go to End


2 Posts   1377 Views

Avatar
grumpysmurf

Community Member, 1 Post

20 February 2013 at 1:07pm

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]

Avatar
Willr

Forum Moderator, 5523 Posts

28 February 2013 at 9:27pm

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