Hello all,
I’m having a problem re-deploying a rails app with capistrano. It has
been working fine previously but now it’s running into the following
error:
“command “sudo chgrp -R /var/www/apps/mountainboardmag.co.uk/current/
tmp /var/www/apps/mountainboardmag.co.uk/shared” failed on
www.mountainboardmag.co.uk”
My capistrano deploy log looks like:
cap deploy
- executing task deploy
- executing task update
** transaction: start - executing task update_code
- querying latest revision…
- executing “if [[ ! -d /var/www/apps/mountainboardmag.co.uk/
releases/20070712185807 ]]; then\n svn co --no-auth-
cache -q -r303 http://[email protected]/Kozmo/010MBM/trunk /
var/www/apps/mountainboardmag.co.uk/releases/20070712185807 &&
\n (test -e /var/www/apps/mountainboardmag.co.uk/
revisions.log || (touch /var/www/apps/mountainboardmag.co.uk/
revisions.log && chmod 666 /var/www/apps/mountainboardmag.co.uk/
revisions.log)) && echodate +\"%Y-%m-%d %H:%M:%S\"
$USER 303
20070712185807 >> /var/www/apps/mountainboardmag.co.uk/revisions.log;
\n fi”
servers: [“www.mountainboardmag.co.uk”]
Password:
[www.mountainboardmag.co.uk] executing command
command finished - executing task set_permissions
- executing “chmod -R g+w /var/www/apps/mountainboardmag.co.uk/
releases/20070712185807”
servers: [“www.mountainboardmag.co.uk”]
[www.mountainboardmag.co.uk] executing command
command finished - executing “rm -rf /var/www/apps/mountainboardmag.co.uk/releases/
20070712185807/log /var/www/apps/mountainboardmag.co.uk/releases/
20070712185807/public/system &&\n ln -nfs /var/www/apps/
mountainboardmag.co.uk/shared/log /var/www/apps/mountainboardmag.co.uk/
releases/20070712185807/log &&\n ln -nfs /var/www/apps/
mountainboardmag.co.uk/shared/system /var/www/apps/
mountainboardmag.co.uk/releases/20070712185807/public/system”
servers: [“www.mountainboardmag.co.uk”]
[www.mountainboardmag.co.uk] executing command
command finished - executing “test -d /var/www/apps/mountainboardmag.co.uk/shared/
pids && \n rm -rf /var/www/apps/mountainboardmag.co.uk/releases/
20070712185807/tmp/pids && \n ln -nfs /var/www/apps/
mountainboardmag.co.uk/shared/pids /var/www/apps/
mountainboardmag.co.uk/releases/20070712185807/tmp/pids; true”
servers: [“www.mountainboardmag.co.uk”]
[www.mountainboardmag.co.uk] executing command
command finished - executing “TZ=UTC find /var/www/apps/mountainboardmag.co.uk/
releases/20070712185807/public/images /var/www/apps/
mountainboardmag.co.uk/releases/20070712185807/public/stylesheets /var/
www/apps/mountainboardmag.co.uk/releases/20070712185807/public/
javascripts -exec touch -t 200707121858.53 {} \;; true”
servers: [“www.mountainboardmag.co.uk”]
[www.mountainboardmag.co.uk] executing command
command finished - executing task after_update_code
- executing task symlink
- executing “ls -x1 /var/www/apps/mountainboardmag.co.uk/releases”
servers: [“www.mountainboardmag.co.uk”]
[www.mountainboardmag.co.uk] executing command
command finished - executing “ln -nfs /var/www/apps/mountainboardmag.co.uk/releases/
20070712185807 /var/www/apps/mountainboardmag.co.uk/current”
servers: [“www.mountainboardmag.co.uk”]
[www.mountainboardmag.co.uk] executing command
command finished - executing task after_symlink
- executing task set_perms_for_mongrel_dirs
- executing “sudo chgrp -R /var/www/apps/mountainboardmag.co.uk/
current/tmp /var/www/apps/mountainboardmag.co.uk/shared”
servers: [“www.mountainboardmag.co.uk”]
[www.mountainboardmag.co.uk] executing command
** [out :: www.mountainboardmag.co.uk] chgrp: invalid group `/var/www/
apps/mountainboardmag.co.uk/current/tmp’
command finished
*** [set_perms_for_mongrel_dirs] transaction: rollback - [set_perms_for_mongrel_dirs] rolling back
- [after_symlink] rolling back
- [symlink] rolling back
- executing “ln -nfs /var/www/apps/mountainboardmag.co.uk/releases/
20070710162753 /var/www/apps/mountainboardmag.co.uk/current”
servers: [“www.mountainboardmag.co.uk”]
[www.mountainboardmag.co.uk] executing command
command finished - [after_update_code] rolling back
- [set_permissions] rolling back
- [update_code] rolling back
- executing “rm -rf /var/www/apps/mountainboardmag.co.uk/releases/
20070712185807”
servers: [“www.mountainboardmag.co.uk”]
[www.mountainboardmag.co.uk] executing command
command finished
command “sudo chgrp -R /var/www/apps/mountainboardmag.co.uk/current/
tmp /var/www/apps/mountainboardmag.co.uk/shared” failed on
www.mountainboardmag.co.uk
Any help would be much appreciated!
Thanks,
Alastair