score:127
try composer update/install -o -vvv
and check wether the package is being loaded from composer's cache.
if yes try clearing composer's cache or try adding -cache-dir=/dev/null
.
to force downloading an archive instead of cloning sources, use the --prefer-dist
option in combination with --no-dev
.
otherwise you could try raising composer's process timeout value:
export composer_process_timeout=600 ( defaults to 300 )
score:-1
this is the problem slow nfs. composer write cache into nfs directory. you must install composer globally and rewrite cache path.
this doesnt work:
php composer.phar install
using this:
composer install
before this run you must config composer globally. see this https://getcomposer.org/doc/00-intro.md#globally
also, you must add this lines to your config.json:
"config": {
"cache-dir": "/var/cache/composer"
}
works for me.
score:2
i agree with most of what has been suggested above, but i had the same issue and what worked for me was deleting the vendor folder and re-run composer install
regards
score:4
the symfony component has process timeout set to 60 by default. that's why you get errors like this:
[symfony\component\process\exception\processtimedoutexception]
the process "composer update" exceeded the timeout of 60 seconds.
solution
set timeout to 5 minutes or more
$process = new process("composer update");
$process->settimeout(300); // 5 minutes
$process->run();
score:5
deleting composer cache worked for me.
rm -rf ~/.composer/cache/*
score:5
it's an old thread but i found out the reason for time out was running a php debugger (phpstorm was listening to xdebug connections) which caused the process timeout. when i closed the phpstorm or disabled the xdebug extension, no time out occurred.
score:5
old thread but new problem for me. no solutions here were working when trying to install google/apiclient (it failed on google/apiclient-services) on an ubuntu vm within a windows 10 host.
after noticing windows' "antimalware executable" taking up considerable cpu cycles when doing this composer install/update, i disabled "real-time protection" on the windows 10 machine, and my composer update/install worked!!
hope that helps someone.
score:30
composer itself impose a limit on how long it would allow for the remote git operation. a look at the composer documentation confirms that the environment variable composer_process_timeout governs this. the variable is set to a default value of 300 (seconds) which is apparently not enough for a large clone operation using a slow internet connection.
raise this value using:
composer_process_timeout=2000 composer install
score:70
the easiest method is add config option to composer.json file, add process-timeout 0, that's all. it works anywhere.
{
.....
"scripts": {
"start": "php -s 0.0.0.0:8080 -t public public/index.php"
},
"config": {
"process-timeout":0
}
}
score:79
composer config --global process-timeout 2000
Source: stackoverflow.com
Related Query
- Why composer install timeouts after 300 seconds?
- Fatal error: Method class@anonymous::__toString() must not throw an exception after composer install
- bin/console missing after running composer install
- Overriding parameters.yml values dynamically after running composer install in symfony
- composer install fails on heroku after upgrading to symfony3
- Why isn't bin/console script found nor recreated in "bin" after composer install?
- hybridauth thirdparty Facebook autoload failed opening laravel after composer install
- Why Composer install never works
- Why updating of dependencies in composer is so slow?
- Group exclusion in Nelmio Api Doc does not work After updating composer
- Why is my Symfony2 install 404ing when I access app.php?
- New Symfony 3 installation: Could not open input file: app/console in composer install
- How do I run a Symfony Console command after composer install?
- Symfony 4 - no such service exists for ObjectManager after composer update
- Install PHPUNIT with Composer
- Use composer to install bundle in custom directory
- How to properly change what composer or Symfony2 does after running 'composer update/install'?
- Can't install mongodb doctrine in symfony2 with composer
- Why is my PHP extension used by Symfony invalid after ubuntu update?
- Symfony composer install - Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "SensioGeneratorBundle"
- Unable to install bundle for Symfony 3 using Composer
- composer install fails when unable to see mysql database
- ClassNotFoundException in SncRedisExtension Factory" from namespace "Predis\Profile" after composer update
- Symfony 2 can't install doctrine with composer
- Struggling to install mink and behat using composer for use with symfony2
- Symfony Composer install without clearing cache
- InvalidArgumentException composer install symfony
- Permissions issue when trying to install Symfony Application with Composer
- Cannot install DoctrineMigrationsBundle via composer
- Why composer update updates symfony to 2.5 but it's "symfony/symfony": "~2.4"?
More Query from same tag
- Symfony form wrong property mapping in enities
- Redirect to NEW Action with prefilled values in EasyAdmin 3
- Genemu JQueryColor Field Symfony2 error ColorPicker
- YUICompressor error: RuntimeException: The filename, directory name, or volume label syntax is incorrect
- How to merge a duplicated code, one instance being in PHP the other one with Doctrine Query Builder?
- Symfony2: Error "Property was already declared, but it must be declared only once"
- Symfony 3.4 FOSCommentBundle Can not autowire service inside listener
- Debian - Symfony 2 - The file "file" exceeds your upload_max_filesize ini directive (limit is 2048 kb). (500 Internal Server Error)
- When the url contains "e" it no longer matchs the requested route
- Symfony2 locale ignored for base twig template
- How much is the similarity between django and symfony2
- Error after cloning a remote symfony3 repository
- Why is my controller so slow?
- In Symfony2, how can I refresh the page, changing just one parameter of the GET string?
- Set external ID of a ManyToOne relation without getting the object
- Symfony - Ldap create don't connect to serveur
- How get field value in form builder in Symfony
- Symfony Forms, sub/embedded forms
- How to test that EventListener has been called on event in Symfony?
- Symfony2 - extending entities, abstract entity
- How to read Soap WSSE Headers from Symfony 2.0
- Can someone suggest a way to do this query using Doctrine (QueryBuilder) with multiple "where" clause?
- serviceContainer returns an IdentityTranslator in symfony 2.8
- Symfony2 (as php-fpm, behind nginx) not Last-Modified or ETage headers sent?
- Symfony 3 - Pass Object to EntityType
- How can I replace a variable in my Symfony 4 function?
- Accessing Symfony parameters from Service
- Zend Ldap attribute error in Synfony 2 and Active Directory
- How can I define global block then render inside twig?
- Symfony2 Many-to-Many relationship sharing one JoinTable