Well, hmm, Here are two more things to try, and then I'm out of ideas.
First, I wonder if the removal of the pty in cap 2.1 has somehow affected subversion in your environment. Try adding the following line to your deploy.rb:
default_run_options[:pty] = true Does that make any difference?If not, I wonder if the fact that all commands are executed via "sh - c" in cap 2.x is somehow the culprit. Try adding the following line to your deploy.rb:
default_run_options[:shell] = false Does that make any difference? - Jamis On Oct 16, 2007, at 11:43 AM, Bolo wrote:
Notice the difference in the subversion repositories: cap 1.4.1: svn+ssh://[EMAIL PROTECTED]/var/lib/svn/wexpay/ trunk cap 2: svn+ssh://[EMAIL PROTECTED]/var/lib/svn/partenaires/ I take it that you haven't tested the partenaires project with cap 1.4.1? That would be the thing to test. yes, because before i used capistrano 1.4.1 1. The use of lamp2 instead of 192.168.1.30 is somehow an issue. Ok i change all 2. The /var/www/apps/partenaires/releases directory has bad permissions on it, so subversion can't write the new release there. wexpay and partenaires [EMAIL PROTECTED]:~$ ls -l /var/www/apps/partenaires/releases total 36 drwxrwxr-x 12 b.michelin b.michelin 4096 2007-10-10 20:11 20071009142607 drwxrwxr-x 13 b.michelin b.michelin 4096 2007-10-10 20:11 20071009150557 [EMAIL PROTECTED]:~$ ls -l /var/www/apps/wexpay/releases/ total 84 drwxrwxr-x 12 b.michelin b.michelin 4096 2007-09-25 10:59 20070925102144 drwxrwxr-x 12 b.michelin b.michelin 4096 2007-09-26 11:23 20070926104632 [EMAIL PROTECTED]:~$ ls -l /var/www/apps/wexpay/ total 28lrwxrwxrwx 1 b.michelin b.michelin 44 2007-10-16 17:22 current - > /var/www/apps/wexpay/releases/20071016164911 drwxrwx--- 2 www-data svn-data 4096 2007-04-10 17:18 index drwxrwx--- 23 www-data svn-data 4096 2007-10-16 17:22 releases -rwxrwx--- 1 www-data svn-data 16207 2007-10-16 17:22 revisions.log drwxrwx--- 9 www-data svn-data 4096 2007-04-26 17:32 shared [EMAIL PROTECTED]:~$ ls -l /var/www/apps/partenaires/ total 12 lrwxrwxrwx 1 b.michelin b.michelin 49 2007-10-10 14:49 current -> / var/www/apps/partenaires/releases/20071010141507 drwxrwxr-x 11 b.michelin b.michelin 4096 2007-10-10 14:49 releases -rw-rw-rw- 1 b.michelin b.michelin 441 2007-10-10 14:49 revisions.log drwxrwxr-x 8 b.michelin b.michelin 4096 2007-10-09 15:32 shared [EMAIL PROTECTED]:~$ the only difference was the folder was created by b.michelin the problem form that ? Bolo On Oct 16, 2007, at 10:5 On 16 oct, 13:13, Jamis Buck <[EMAIL PROTECTED]> wrote:In cap 1.4.1, this command is being executed: * executing "if [[ ! -d /var/www/apps/wexpay/releases/ 20071016164911 ]]; then\n svn co --no-auth-cache -q - r999 svn+ssh://[EMAIL PROTECTED]/var/lib/svn/wexpay/trunk /var/ www/apps/wexpay/releases/20071016164911 &&\n (test -e / var/www/apps/wexpay/revisions.log || (touch /var/www/apps/wexpay/ revisions.log && chmod 666 /var/www/apps/wexpay/revisions.log)) && echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 999 20071016164911 >> /var/ www/apps/wexpay/revisions.log;\n fi" In cap 2, this command is being executed: * executing "svn checkout -q -r72 svn+ssh://[EMAIL PROTECTED]/var/lib/svn/partenaires/ /var/www/apps/partenaires/releases/ 20071016131050&& (echo 72 > /var/www/apps/partenaires/releases/20071016131050/ REVISION)" Notice the difference in the subversion repositories:cap 1.4.1: svn+ssh://[EMAIL PROTECTED]/var/lib/svn/wexpay/ trunkcap 2: svn+ssh://[EMAIL PROTECTED]/var/lib/svn/partenaires/ I take it that you haven't tested the partenaires project with cap 1.4.1? That would be the thing to test. Some theories: 1. The use of lamp2 instead of 192.168.1.30 is somehow an issue. 2. The /var/www/apps/partenaires/releases directory has bad permissions on it, so subversion can't write the new release there. - Jamis On Oct 16, 2007, at 10:51 AM, Bolo wrote:What is the difference between that command, the command that cap 1.4.1 uses?how i can know that ?as u can see with 1.4.1, it's workcap development deploy * executing task development * executing task deploy * executing task update ** transaction: start * executing task update_code * querying latest revision... [EMAIL PROTECTED]'s password: * executing "if [[ ! -d /var/www/apps/wexpay/releases/ 20071016164911 ]]; then\n svn co --no-auth-cache -q -r999 svn+ssh://[EMAIL PROTECTED]/var/lib/svn/wexpay/trunk / var/www/apps/wexpay/releases/20071016164911 &&\n (test -e / var/www/apps/wexpay/revisions.log || (touch /var/www/apps/wexpay/ revisions.log && chmod 666 /var/www/apps/wexpay/revisions.log)) && echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 999 20071016164911 >> /var/ www/apps/wexpay/revisions.log;\n fi" servers: ["192.168.1.30"] [192.168.1.30] executing command ** [out :: 192.168.1.30] [EMAIL PROTECTED]'s password: ** [out :: 192.168.1.30] subversion is asking for a password ** [out :: 192.168.1.30] [EMAIL PROTECTED]'s password: ** [out :: 192.168.1.30] subversion is asking for a password command finished * executing task set_permissions * executing "chmod -R g+w /var/www/apps/wexpay/releases/ 20071016164911" servers: ["192.168.1.30"] [192.168.1.30] executing command command finished * executing "rm -rf /var/www/apps/wexpay/releases/20071016164911/ log /var/www/apps/wexpay/releases/20071016164911/public/system &&\nln -nfs /var/www/apps/wexpay/shared/log /var/www/apps/wexpay/ releases/20071016164911/log &&\n ln -nfs /var/www/apps/wexpay/shared/ system / var/www/apps/wexpay/releases/20071016164911/public/system" servers: ["192.168.1.30"] [192.168.1.30] executing command command finished* executing "test -d /var/www/apps/wexpay/shared/pids && \n rm - rf /var/www/apps/wexpay/releases/20071016164911/tmp/pids && \n ln -nfs /var/www/apps/wexpay/shared/pids /var/www/apps/wexpay/releases/ 20071016164911/tmp/pids; true" servers: ["192.168.1.30"] [192.168.1.30] executing command ** [out :: 192.168.1.30] ln: creating symbolic link `/var/www/apps/ wexpay/releases/20071016164911/tmp/pids' to `/var/www/apps/wexpay/ shared/pids' ** [out :: 192.168.1.30] : No such file or directory command finished * executing "TZ=UTC find /var/www/apps/wexpay/releases/ 20071016164911/public/images /var/www/apps/wexpay/releases/ 20071016164911/public/stylesheets /var/www/apps/wexpay/releases/20071016164911/public/javascripts -exec touch -t 200710161649.30 {} \\;; true" servers: ["192.168.1.30"] [192.168.1.30] executing command command finished * executing task after_update_code * executing "ln -nfs /var/www/apps/wexpay/shared/config/ database.yml /var/www/apps/wexpay/releases/20071016164911/config/ database.yml" servers: ["192.168.1.30"] [192.168.1.30] executing command command finished * executing "ln -s /var/www/apps/wexpay/shared/config/ mongrel_cluster.yml /var/www/apps/wexpay/releases/20071016164911/ config/mongrel_cluster.yml" servers: ["192.168.1.30"] [192.168.1.30] executing command command finished* executing "ln -s /var/www/apps/wexpay/shared/vendor /var/www/ apps/wexpay/releases/20071016164911/vendor" servers: ["192.168.1.30"] [192.168.1.30] executing command command finished * executing "ln -nfs /var/www/apps/wexpay/shared/index /var/www/ apps/ wexpay/releases/20071016164911/index" servers: ["192.168.1.30"] [192.168.1.30] executing command command finished * executing task symlink * executing "ls -x1 /var/www/apps/wexpay/releases" servers: ["192.168.1.30"] [192.168.1.30] executing command command finished* executing "ln -nfs /var/www/apps/wexpay/releases/ 20071016164911 /var/www/apps/wexpay/current" servers: ["192.168.1.30"] [192.168.1.30] executing command command finished ** transaction: commit * executing task after_update * executing "sudo ln -nfs /var/www/apps/wexpay/shared/index /var/ www/apps/wexpay/releases/20071016164911/index" servers: ["192.168.1.30"] [192.168.1.30] executing command command finished * executing task restart * executing "sudo /etc/init.d/mongrel_cluster restart" servers: ["192.168.1.30"] [192.168.1.30] executing command command finishedsmime.p7s 3KTélécharger--~--~---------~--~----~------------~-------~--~----~To unsubscribe from this group, send email to capistrano- [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/ group/capistrano-~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature
