You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ time composer create-project drupal/drupal drupal 8.0.*@dev
Installing drupal/drupal (8.0.x-dev cbc03163b937bd6c5de70ed88cee062286680431)
- Installing drupal/drupal (8.0.x-dev cbc0316)
Cloning cbc03163b937bd6c5de70ed88cee062286680431
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "git clone --no-checkout 'http://git.drupal.org/project/drupal.
git' 'drupal/' && cd 'drupal/' && git remote add composer 'http://git.drupa
l.org/project/drupal.git' && git fetch composer" exceeded the timeout of 30
0 seconds.
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [package] [directory] [version]
real 6m15.607s
user 0m1.136s
sys 0m0.116s
Set environment variable COMPOSER_PROCESS_TIMEOUT to 100000s. The git clone
process times-out after 300s.
$ export COMPOSER_PROCESS_TIMEOUT=100000
$ echo $COMPOSER_PROCESS_TIMEOUT100000
$ time composer create-project drupal/drupal drupal 8.0.*@dev
Installing drupal/drupal (8.0.x-dev cbc03163b937bd6c5de70ed88cee062286680431)
- Installing drupal/drupal (8.0.x-dev cbc0316)
Cloning cbc03163b937bd6c5de70ed88cee062286680431
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "git clone --no-checkout 'http://git.drupal.org/project/drupal.
git' 'drupal/' && cd 'drupal/' && git remote add composer 'http://git.drupa
l.org/project/drupal.git' && git fetch composer" exceeded the timeout of 30
0 seconds.
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [package] [directory] [version]
real 5m22.282s
user 0m0.988s
sys 0m0.116s
The command was successfully executed by modifying the following line:
class ProcessExecutor
{
protected static $timeout = 100000; # replaced 300 with a high value
protected $captureOutput;
Output with above modification:
$ time ~/projects/composer/bin/composer create-project drupal/drupal drupal 8.0.*@dev
Installing drupal/drupal (8.0.x-dev cbc03163b937bd6c5de70ed88cee062286680431)
- Installing drupal/drupal (8.0.x-dev cbc0316)
Cloning cbc03163b937bd6c5de70ed88cee062286680431
Created project in drupal
Loading composer repositories with package information
Installing dependencies (including require-dev)
# ...
Writing lock file
Generating autoload files
Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]? y
real 17m43.599s
user 0m29.718s
sys 0m9.485s
The text was updated successfully, but these errors were encountered:
The
git cloneprocess does not respect~/.composer/config.jsonorenvironment variable
COMPOSER_PROCESS_TIMEOUT. Time-out is fixed at 300s.300s is the default value in
class ProcessExecutor.Changing the default value of
ProcessExecutor->timeoutto a high value allowsthe successful execution of the commands below.
Composer and php versions:
Global config process-timeout set to 100000s.
The
git cloneprocess times-out after 300s.Set environment variable COMPOSER_PROCESS_TIMEOUT to 100000s. The
git cloneprocess times-out after 300s.
The command was successfully executed by modifying the following line:
Output with above modification:
The text was updated successfully, but these errors were encountered: