I have small project made in symfony2 when I try to build it on my server it\'s always fails when unzipping symfony. Build was OK and suddenly composer won\'t unzip symfony
Deleting composer cache worked for me.
rm -rf ~/.composer/cache/*
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 )
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.