Downloading/cloning Composer dependencies take really long time and timeouts

Rafa's Avatar


19 Nov, 2015 09:29 AM


I would like to understand why the Composer dependencies are taking so much time to download on AppVeyor for my PHP project. The total time is around ~1h which is sick! and usually after that time it freezees. I don't know if it's related to my configuration or maybe the platform.

My config is:

build: false
shallow_clone: true
  - x86
  - x64
clone_folder: c:\projects\webrenderer

  - '%LOCALAPPDATA%\Composer\files'
  - c:\tools\php -> appveyor.yml

  - SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
  - SET PHP=1

    - COMPOSER_OPTIONS: --prefer-lowest --prefer-stable

  - IF EXIST c:\tools\php (SET PHP=0)
  - IF %PHP%==1 cinst -y OpenSSL.Light
  - IF %PHP%==1 cinst -y php
  - IF %PHP%==1 cd c:\tools\php
  - IF %PHP%==1 copy php.ini-production php.ini /Y
  - IF %PHP%==1 echo date.timezone="UTC" >> php.ini
  - IF %PHP%==1 echo extension_dir=ext >> php.ini
  - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
  - IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
  - IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
  - cd c:\projects\webrenderer
  - appveyor DownloadFile
  - php composer.phar update %COMPOSER_OPTIONS% --prefer-source --no-interaction --no-progress --profile

  - cd c:\projects\webrenderer
  - vendor\bin\phpunit.bat -c app/ --verbose

Composer partial output in the AppVeyor terminal:

php composer.phar update %COMPOSER_OPTIONS% --prefer-source --no-interaction --no-progress --profile
[6.7MB/4.16s] Loading composer repositories with package information
[6.9MB/5.08s] Updating dependencies (including require-dev)
[755.0MB/105.12s]   - Installing symfony/polyfill-mbstring (dev-master 0b6a894)
[755.4MB/105.13s]     Cloning 0b6a8940385311a24e060ec1fe35680e17c74497
[755.4MB/114.93s]   - Installing twig/twig (1.x-dev db93842)
[755.4MB/114.93s]     Cloning db93842e80d758f6c74c3e1f1f088badb3fc84f0
[755.5MB/129.16s]   - Installing symfony/polyfill-util (dev-master 4271c55)
[755.5MB/129.16s]     Cloning 4271c55cbc0a77b2641f861b978123e46b3da969
[755.5MB/140.10s]   - Installing paragonie/random_compat (1.1.0)
[755.5MB/140.10s]     Cloning 19f765b66c6fbb56ee3b11bc16d52e38eebdc295

What is the issue ?


  1. Support Staff 1 Posted by Feodor Fitsner on 19 Nov, 2015 10:41 AM

    Feodor Fitsner's Avatar

    What project/build URL is that?

  2. 2 Posted by Rafa on 19 Nov, 2015 10:49 AM

    Rafa's Avatar
  3. 3 Posted by Rafa on 23 Nov, 2015 11:22 AM

    Rafa's Avatar

    Hi Feodor,

    any idea so far ?

    Best Regards

  4. Support Staff 4 Posted by Feodor Fitsner on 23 Nov, 2015 06:32 PM

    Feodor Fitsner's Avatar

    Hi Rafal,

    Yes. It looks like the project is too "heavy" for a single CPU core we offer for OSS environment VMs (I logged into VM with RDP and noticed php.exe process was 100% while installing composer dependencies). I've tested on 2 cores and it took pretty reasonable time:

    You may get more powerful VM configuration on a paid OSS plan ($29.50/month).

  5. 5 Posted by Rafa on 24 Nov, 2015 08:59 AM

    Rafa's Avatar

    thanks for your help Feodor!

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:02 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac