Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer update freezed #2703

Closed
h3llr4iser opened this issue Feb 14, 2014 · 4 comments
Closed

composer update freezed #2703

h3llr4iser opened this issue Feb 14, 2014 · 4 comments

Comments

@h3llr4iser
Copy link

I have problems with composer update

php composer.phar update --no-dev --verbose --prefer-dist -vvv --profile --optimize-autoloader
 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in phar:///var/www/vhosts/xxxxx/httpdocs/releases/20140214175821/composer.phar/src/Composer/DependencyResolver/Rule.php on line 62

I increase memory_limit 4096M

php -r "echo ini_get('memory_limit').PHP_EOL;"

4096M

php composer.phar update --no-dev --verbose --prefer-dist -vvv --profile --optimize-autoloader

It freezes at:

[367.5MB/27.25s] Reading /root/.composer/cache/repo/https---packagist.org/provider-igorw$config-service-provider.json from cache
[367.6MB/27.25s] Reading /root/.composer/cache/repo/https---packagist.org/provider-cilex$console-service-provider.json from cache
[367.7MB/27.26s] Reading /root/.composer/cache/repo/https---packagist.org/provider-justinrainbow$json-schema.json from cache
[367.9MB/27.26s] Reading /root/.composer/cache/repo/https---packagist.org/provider-mlebkowski$crane.json from cache
[380.8MB/28.56s] Reading /root/.composer/cache/repo/https---packagist.org/provider-pimple$pimple.json from cache
[427.2MB/32.30s] Reading /root/.composer/cache/repo/https---packagist.org/provider-knplabs$gaufrette.json from cache

I have tryed to clear composer cache and the same.

My composer.json:
"require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.3.*",
        "doctrine/orm": ">=2.2.3,<2.4-dev",
        "doctrine/doctrine-bundle": "1.2.*@dev",
        "twig/extensions": "1.0.*@dev",
        "symfony/assetic-bundle": "2.3.*",
        "symfony/swiftmailer-bundle": "2.3.*",
        "symfony/monolog-bundle": "2.3.*",
        "sensio/distribution-bundle": "2.3.*",
        "sensio/framework-extra-bundle": "2.3.*",
        "sensio/generator-bundle": "2.3.*",
        "incenteev/composer-parameter-handler": "~2.0",
        "jms/security-extra-bundle": "1.5.*@dev",
        "friendsofsymfony/jsrouting-bundle": "~1.1",
        "genemu/form-bundle": "2.2.*@dev",
        "knplabs/knp-paginator-bundle": "dev-master",
        "stof/doctrine-extensions-bundle": "1.1.*@dev",
        "stfalcon/tinymce-bundle": "dev-master",
        "liip/imagine-bundle": "dev-master",
        "doctrine/doctrine-fixtures-bundle": "dev-master",
        "bcc/extra-tools-bundle": "dev-master",
        "knplabs/knp-menu-bundle":"2.0.*@dev",
        "beberlei/DoctrineExtensions": "*",
        "friendsofsymfony/rest-bundle": "1.1.*",
        "jms/serializer-bundle": "0.13.*@dev",
        "white-october/pagerfanta-bundle": "dev-master",
        "symfony/icu": "1.1.0",
        "doctrine/migrations": "dev-master",
        "doctrine/doctrine-migrations-bundle": "dev-master"

    },
    "scripts": {
        "post-install-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ],
        "post-update-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ]
    },
@robocoder
Copy link
Contributor

Sounds like a duplicate of #1898.

How long did you wait? I don't think it's actually frozen -- rather composer is just busy solving dependencies.

@h3llr4iser
Copy link
Author

It did not finish. I had to change deploy method and I update dependencies in my local machine.
In the server composer takes 100% cpu, I wait 20 min. and I close process. In my local machine update dependencies takes no more than 4 min.

@Seldaek
Copy link
Member

Seldaek commented Feb 18, 2014

@h3llr4iser you should not run update on the server, you should deploy your composer.lock file and run install on the server to get the same state as the last update you ran locally.

@Seldaek Seldaek closed this as completed Feb 18, 2014
@h3llr4iser
Copy link
Author

I will do it. Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants