Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony 2 -> Composer and CloudControl

I have a little problem to setup Symfony 2 on Cloudcontrol,

I followed the instructions and installed a Symfony 2 framework, changed the document root and so on.
Now when I try to push the changes to server server, it loads the dependencies from the composer.json and then it failed with a message :

[RuntimeException]
Could not scan for classes inside "/srv/tmp/builddir/code/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Resources/stubs" which does not appear to be a file nor a folder

This file is a vendor package, loaded from composer.

I have the same effect with a default composer.json file from a sample project (SF2)

Localy it works very well!

Can some one give me a hint ?

like image 979
Matthias Friedrich Avatar asked Aug 28 '13 12:08

Matthias Friedrich


3 Answers

Got same error after setting "minimum-stability":"dev" and running composer update.

for unknown reason symfony/symfony (dev-master ...) kept failing to download from source thus was being loaded from cache.

what worked for me was a mix of previous answers:

$ rm -rf vendor/symfony
$ composer clearcache
$ composer install
like image 179
djaed Avatar answered Dec 06 '22 08:12

djaed


Sometimes I had to clean composer cache to remove strange errors, usually it's in

/home/user/.composer/cache  

You can also try to update composer with

php composer.phar self-update

I hope it runs for you.

like image 20
Imanol Avatar answered Dec 06 '22 08:12

Imanol


I had the exact same error in my development directory.

What fixed it was :

$ rm -rf vendor/symfony
$ php composer.phar install

It reinstalled symfony/symfony, symfony/icu, symfony/assetic-bundle, symfony/monolog-bundle and symfony/swiftmailer-bundle and now everything works !

like image 35
volent Avatar answered Dec 06 '22 08:12

volent