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

install fails randomly #932

Closed
didi156 opened this issue Jul 19, 2012 · 2 comments
Closed

install fails randomly #932

didi156 opened this issue Jul 19, 2012 · 2 comments

Comments

@didi156
Copy link

didi156 commented Jul 19, 2012

We use the latest symfony 2 (master branch) with composer for 2 projects and regularly have troubles when deploying on our servers.
The issue seems to be the same as discussed in https://github.com/symfony/symfony-standard/issues/278
It's marked as solved there, but I can't confirm that.

Some version info:

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid

php --version

PHP 5.4.4-1~lucid+1 (cli) (built: Jun 17 2012 12:46:02)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

php composer.phar --version

Composer version 0d31e4c

The output of a typical failed install (here starting with empty vendors dir):

php composer.phar install

Installing dependencies from lock file

  • Installing doctrine/common (2.2.2)
    Downloading: 100%

  • Installing twig/twig (dev-master)
    Cloning c1d6c2863b8a7df20768976141b299591ee95f90

  • Installing symfony/symfony (dev-master)
    Cloning 7a138f0e2034b402725eac37f9b7e82cba881300

  • Installing bcg/finnder-bundle (dev-master)
    Cloning 565493dd7928233991cfe9208284b86e549b7bc1

  • Installing doctrine/dbal (2.2.x-dev)
    Cloning b961a3fce6bf220f1dca47d7d747b9074bea4730

  • Installing doctrine/doctrine-bundle (dev-master)
    Cloning c9ea46d1f0c48bb88bb87b44214fe44e03c0c692

  • Installing doctrine/orm (2.2.x-dev)
    Cloning 5d2a3bcb3b467f41ee58575764f3ba84937f76e4

  • Installing jms/cg (1.0.0)
    Downloading: 100%

  • Installing jms/metadata (1.1.1)
    Downloading: 100%

  • Installing swiftmailer/swiftmailer (dev-master)
    Cloning 420e227f2238d2c21e464c15f103540d83b0d23b

  • Installing monolog/monolog (1.1.0)
    Downloading: 100%

  • Installing jms/di-extra-bundle (1.0.1)
    Downloading: 100%

  • Installing jms/aop-bundle (1.0.0)
    Downloading: 100%

  • Installing jms/security-extra-bundle (1.1.0)
    Downloading: 100%

  • Installing kriswallsmith/assetic (dev-master)
    Cloning d6f89a3170c5280ad554347dc113eb25fdf00ad7

    [RuntimeException]
    Failed to execute git branch -r

install [--prefer-source] [--dry-run] [--dev] [--no-scripts]

root@testy:/var/www/finnder-beta.bak# php composer.phar install
Installing dependencies from lock file

  • Installing kriswallsmith/assetic (dev-master)
    Cloning d6f89a3170c5280ad554347dc113eb25fdf00ad7

  • Installing sensio/distribution-bundle (dev-master)
    Cloning b2b18d749d0ed24b48d1932b21f3e8b1e8d9c1f2

    [RuntimeException]
    Failed to execute git branch -r

install [--prefer-source] [--dry-run] [--dev] [--no-scripts]

As you can see, the 1st time it fails for bundle "assetic", on 2nd try that one succeeds, but another one fails. If I go on and retry again and again, I sometimes manage to get through. Sometimes I also get stuck at a bundle for 10+ times.

As you may see, the installed php package is not the one from default Ubuntu 10.04 repository bcs 5.3.2 isn't supported anymore by Symfony2 (?)
I tried on another server with Ubuntu 12.04 and default PHP package installed, didn't have this issue there. However on the vServer used for deployment, I can't switch operating system for some time to come.

Any clue what's going on here?

@Seldaek
Copy link
Member

Seldaek commented Jul 20, 2012

Could you try to update composer see if it helps? It now includes symfony/symfony#4970 which supposedly fixes that problem.

@didi156
Copy link
Author

didi156 commented Jul 20, 2012

@Seldaek
yes, that seems to have fixed it. Thanks alot, incredible response time!

@didi156 didi156 closed this as completed Jul 20, 2012
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

2 participants