everzet/capifony — Issue #75: error deploying on servergrove
Author: cordoval
Created: 2011-11-12 04:44:04+00:00
State: open

I am getting errors while deploying at servergrove, i was successful with another account but this it is hard to spot:

if you look at the paths on git

they are half paths
```sh
*** [err :: phpperu.org] PHP Warning: require_once(/symfony_projects/releases/20111112041752/app/bootstrap.php.cache): failed to open stream: No such file or directory in /symfony_projects/releases/20111112041752/app/console on line 4
```

whereas in the deploy.rb I am giving it the whole shebang as advised by sg:

```sh
set :deploy_to, "/var/www/vhosts/phpperu.org/symfony_projects/"
```

here is the long run, sorry this is collateral info:

```sh
~ cap deploy
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: "git ls-remote ssh://phperu@phpperu.org:22123/private/repos/phpperu.git master"
command finished in 564ms
* executing "git clone ssh://phperu@phpperu.org:22123/private/repos/phpperu.git /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752 && cd /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752 && git checkout -b deploy 3384dfeb21e72e6e2df8925311f9f5b459cec025 && (echo 3384dfeb21e72e6e2df8925311f9f5b459cec025 > /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/REVISION)"
servers: ["phpperu.org"]
[phpperu.org] executing command
** [phpperu.org :: out] Initialized empty Git repository in /symfony_projects/releases/20111112041752/.git/
** [phpperu.org :: err] ***************************************************************************
** NOTICE TO USERS
** This computer system is the private property of its owner.
** It is for authorized use only. Users (authorized or unauthorized)
** have no explicit or implicit expectation of privacy.
**
** Any or all uses of this system and all files on this system may be
** intercepted, monitored, recorded, copied, audited, inspected, and
** disclosed to your employer, to authorized site, government, and law
** enforcement personnel, as well as authorized officials of government
** agencies, both domestic and foreign.
**
** By using this system, the user consents to such interception, monitoring,
** recording, copying, auditing, inspection, and disclosure at the
** discretion of such personnel or officials. Unauthorized or improper use
** of this system may result in civil and criminal penalties and
** administrative or disciplinary action, as appropriate. By continuing to
** use this system you indicate your awareness of and consent to these terms
** and conditions of use. LOG OFF IMMEDIATELY if you do not agree to the
** conditions stated in this warning.
** ****************************************************************************
**
** [phpperu.org :: err] Switched to a new branch 'deploy'
command finished in 1040ms
* executing `deploy:finalize_update'
* executing "chmod -R g+w /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 419ms
* executing "if [ -d /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/cache ] ; then rm -rf /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/cache; fi"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 499ms
* executing "mkdir -p /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/cache && chmod -R 0777 /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/cache"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 579ms
* executing "chmod -R g+w /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/cache"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 490ms
* executing `deploy:share_childs'
* executing "mkdir -p /var/www/vhosts/phpperu.org/symfony_projects/shared/app/logs"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 399ms
* executing "if [ -d /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/logs ] ; then rm -rf /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/logs; fi"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 408ms
* executing "ln -nfs /var/www/vhosts/phpperu.org/symfony_projects/shared/app/logs /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/logs"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 399ms
* executing "mkdir -p /var/www/vhosts/phpperu.org/symfony_projects/shared/web/uploads"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 399ms
* executing "if [ -d /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/web/uploads ] ; then rm -rf /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/web/uploads; fi"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 399ms
* executing "ln -nfs /var/www/vhosts/phpperu.org/symfony_projects/shared/web/uploads /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/web/uploads"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 399ms
* executing "mkdir -p /var/www/vhosts/phpperu.org/symfony_projects/shared/app/cache"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 399ms
* executing "if [ -d /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/cache ] ; then rm -rf /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/cache; fi"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 409ms
* executing "ln -nfs /var/www/vhosts/phpperu.org/symfony_projects/shared/app/cache /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/cache"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 409ms
* executing "mkdir -p /var/www/vhosts/phpperu.org/symfony_projects/shared/vendor"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 469ms
* executing "if [ -d /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/vendor ] ; then rm -rf /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/vendor; fi"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 479ms
* executing "ln -nfs /var/www/vhosts/phpperu.org/symfony_projects/shared/vendor /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/vendor"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 559ms
* executing "mkdir -p /var/www/vhosts/phpperu.org/symfony_projects/shared/app/config"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 469ms
* executing "touch /var/www/vhosts/phpperu.org/symfony_projects/shared/app/config/parameters.ini"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 419ms
* executing "ln -nfs /var/www/vhosts/phpperu.org/symfony_projects/shared/app/config/parameters.ini /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/config/parameters.ini"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 399ms
* executing "find /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/web/css /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/web/images /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/web/js -exec touch -t 201111120418.03 {} ';'; true"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 419ms
triggering after callbacks for `deploy:finalize_update'
* executing `deploy:share_childs'
* executing "mkdir -p /var/www/vhosts/phpperu.org/symfony_projects/shared/app/logs"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 399ms
* executing "if [ -d /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/logs ] ; then rm -rf /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/logs; fi"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 399ms
* executing "ln -nfs /var/www/vhosts/phpperu.org/symfony_projects/shared/app/logs /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/logs"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 389ms
* executing "mkdir -p /var/www/vhosts/phpperu.org/symfony_projects/shared/web/uploads"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 400ms
* executing "if [ -d /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/web/uploads ] ; then rm -rf /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/web/uploads; fi"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 549ms
* executing "ln -nfs /var/www/vhosts/phpperu.org/symfony_projects/shared/web/uploads /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/web/uploads"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 548ms
* executing "mkdir -p /var/www/vhosts/phpperu.org/symfony_projects/shared/app/cache"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 429ms
* executing "if [ -d /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/cache ] ; then rm -rf /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/cache; fi"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 420ms
* executing "ln -nfs /var/www/vhosts/phpperu.org/symfony_projects/shared/app/cache /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/cache"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 408ms
* executing "mkdir -p /var/www/vhosts/phpperu.org/symfony_projects/shared/vendor"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 619ms
* executing "if [ -d /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/vendor ] ; then rm -rf /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/vendor; fi"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 570ms
* executing "ln -nfs /var/www/vhosts/phpperu.org/symfony_projects/shared/vendor /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/vendor"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 399ms
* executing "mkdir -p /var/www/vhosts/phpperu.org/symfony_projects/shared/app/config"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 408ms
* executing "touch /var/www/vhosts/phpperu.org/symfony_projects/shared/app/config/parameters.ini"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 400ms
* executing "ln -nfs /var/www/vhosts/phpperu.org/symfony_projects/shared/app/config/parameters.ini /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/config/parameters.ini"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 429ms
* executing `symfony:vendors:update'
* executing "cd /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752 && php bin/vendors install --reinstall"
servers: ["phpperu.org"]
[phpperu.org] executing command
** [out :: phpperu.org] > Installing/Updating symfony
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/symfony/.git/
** [out :: phpperu.org] HEAD is now at 7f21a5e bumped Symfony version in composer.json files to 2.0.5
** [out :: phpperu.org] > Installing/Updating twig
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/twig/.git/
** [out :: phpperu.org] HEAD is now at 396435e prepared 1.1.2 released
** [out :: phpperu.org] > Installing/Updating monolog
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/monolog/.git/
** [out :: phpperu.org] HEAD is now at b704c49 Only send FirePHP headers to browser advertising support for it in their user agent
** [out :: phpperu.org] > Installing/Updating doctrine-common
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/doctrine-common/.git/
** [out :: phpperu.org] HEAD is now at b385ca7 Release 2.1.2
** [out :: phpperu.org] > Installing/Updating doctrine-dbal
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/doctrine-dbal/.git/
** [out :: phpperu.org] HEAD is now at e0b6979 Update dependency to Common 2.1.2
** [out :: phpperu.org] > Installing/Updating doctrine-fixtures
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/doctrine-fixtures/.git/
** [out :: phpperu.org] HEAD is now at 76f8221 Merge branch 'Issue-17-25'
** [out :: phpperu.org] > Installing/Updating doctrine
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/doctrine/.git/
** [out :: phpperu.org] HEAD is now at 144d0de Release 2.1.2
** [out :: phpperu.org] > Installing/Updating swiftmailer
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/swiftmailer/.git/
** [out :: phpperu.org] HEAD is now at daaff2b prepared the 1.4.3 release
** [out :: phpperu.org] > Installing/Updating assetic
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/assetic/.git/
** [out :: phpperu.org] HEAD is now at f829ad2 updated changelog
** [out :: phpperu.org] > Installing/Updating twig-extensions
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/twig-extensions/.git/
** [out :: phpperu.org] HEAD is now at d5851b9 merged branch qpleple/patch-1 (PR #29)
** [out :: phpperu.org] > Installing/Updating metadata
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/metadata/.git/
** [out :: phpperu.org] HEAD is now at 8717ad2 release 1.0.0
** [out :: phpperu.org] > Installing/Updating imagine
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/imagine/.git/
** [out :: phpperu.org] HEAD is now at 78ae335 fix Rakefile
** [out :: phpperu.org] > Installing/Updating AsseticBundle
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/bundles/Symfony/Bundle/AsseticBundle/.git/
** [out :: phpperu.org] HEAD is now at 41b5913 Merge pull request #27 from stof/disable_profiler
** [out :: phpperu.org] > Installing/Updating DoctrineFixturesBundle
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/bundles/Symfony/Bundle/DoctrineFixturesBundle/.git/
** [out :: phpperu.org] HEAD is now at a66be2f Merge pull request #15 from doctrine/TruncateDeleteChoice
** [out :: phpperu.org] > Installing/Updating AvalancheImagineBundle
** [out :: phpperu.org] Initialized empty Git repository in /symfony_projects/shared/vendor/bundles/Avalanche/Bundle/ImagineBundle/.git/
** [out :: phpperu.org] HEAD is now at 72a6d86 Merge pull request #34 from HartSrlMassimilianoVentimiglia/master
command finished in 44329ms
* executing `symfony:assets:install'
* executing "cd /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752 && php app/console assets:install web --env=prod"
servers: ["phpperu.org"]
[phpperu.org] executing command
*** [err :: phpperu.org] PHP Warning: require_once(/symfony_projects/releases/20111112041752/app/bootstrap.php.cache): failed to open stream: No such file or directory in /symfony_projects/releases/20111112041752/app/console on line 4
*** [err :: phpperu.org] PHP Fatal error: require_once(): Failed opening required '/symfony_projects/releases/20111112041752/app/bootstrap.php.cache' (include_path='.:') in /symfony_projects/releases/20111112041752/app/console on line 4
command finished in 790ms
* executing `symfony:cache:warmup'
* executing "cd /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752 && php app/console cache:warmup --env=prod"
servers: ["phpperu.org"]
[phpperu.org] executing command
*** [err :: phpperu.org] PHP Warning: require_once(/symfony_projects/releases/20111112041752/app/bootstrap.php.cache): failed to open stream: No such file or directory in /symfony_projects/releases/20111112041752/app/console on line 4
*** [err :: phpperu.org] PHP Fatal error: require_once(): Failed opening required '/symfony_projects/releases/20111112041752/app/bootstrap.php.cache' (include_path='.:') in /symfony_projects/releases/20111112041752/app/console on line 4
command finished in 517ms
* executing "chmod -R g+w /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752/app/cache"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 519ms
* executing `symfony:assetic:dump'
* executing "cd /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752 && php app/console assetic:dump web --env=prod --no-debug"
servers: ["phpperu.org"]
[phpperu.org] executing command
*** [err :: phpperu.org] PHP Warning: require_once(/symfony_projects/releases/20111112041752/app/bootstrap.php.cache): failed to open stream: No such file or directory in /symfony_projects/releases/20111112041752/app/console on line 4
*** [err :: phpperu.org] PHP Fatal error: require_once(): Failed opening required '/symfony_projects/releases/20111112041752/app/bootstrap.php.cache' (include_path='.:') in /symfony_projects/releases/20111112041752/app/console on line 4
command finished in 430ms
* executing `deploy:symlink'
* executing "rm -f /var/www/vhosts/phpperu.org/symfony_projects/current && ln -s /var/www/vhosts/phpperu.org/symfony_projects/releases/20111112041752 /var/www/vhosts/phpperu.org/symfony_projects/current"
servers: ["phpperu.org"]
[phpperu.org] executing command
command finished in 417ms
** transaction: commit
* executing `deploy:restart'
```