Hello,
I have a basic deploy.rb recipe that was working a couple days ago,
but this afternoon when I tried to run ''rake deploy'' it
inexplicably
croaked. My partner configured the server''s security settings and
upgraded a couple of packages, and now we can''t figure out what
specifically we did that made switchtower stop working. My deploy.rb
is in my svn repo and I verified that it is exactly the same as when
it was working on wednesday. I can login to the server with the
''deploy'' user and execute commands manually just fine. It
doesn''t
seem to be a permissions error.
Here is the error that I''m getting:
EvilGenius:~/Projects/Rails/project/site/trunk admin$ rake deploy
(in /Users/admin/Projects/Rails/project/site/trunk)
loading configuration /opt/local/lib/ruby/gems/1.8/gems/
switchtower-0.9.0/lib/switchtower/recipes/standard.rb
loading configuration ./config/deploy.rb
executing task deploy
transaction: start
executing task update_code
querying latest revision...
executing "if [[ ! -d /var/www/project/releases/20051104195258 ]];
then\n svn co -q -r22 https://project.mydomain.com/
source/site/trunk/ /var/www/project/releases/20051104195258;
\n echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 22
20051104195258 >> /var/www/project//revisions.log;\n
chmod 666 /var/www/project//revisions.log;\n fi"
servers: ["beta.project.mydomain.com"]
Password:
processing command
[beta.project.mydomain.com] executing command
command finished
[update_code] transaction: rollback
[update_code] rolling back
executing "rm -rf /var/www/project/releases/20051104195258"
servers: ["beta.project.mydomain.com"]
processing command
[beta.project.mydomain.com] executing command
command finished
[update_code] exception while rolling back: RuntimeError, command "rm
-rf /var/www/project/releases/20051104195258" failed on
beta.project.mydomain.com
/opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/
command.rb:41:in `process!'': command "if [[ ! -d /var/www/project/
releases/20051104195258 ]]; then\\\n svn co -q -r22
https://project.mydomain.com/source/site/trunk/ /var/www/project/
releases/20051104195258;\\\n echo `date +\"%Y-%m-%d %H:%
M:%S\"` $USER 22 20051104195258 >> /var/www/project//revisions.log;\\
\n chmod 666 /var/www/project//revisions.log;\\
\n fi" failed on beta.project.mydomain.com (RuntimeError)
from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/
switchtower/actor.rb:145:in `run''
from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/
switchtower/scm/base.rb:38:in `run_checkout''
from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/
switchtower/scm/subversion.rb:74:in `checkout''
from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/
switchtower/recipes/standard.rb:61:in `instance_eval''
from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/
switchtower/recipes/standard.rb:58:in `instance_eval''
from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/
switchtower/actor.rb:110:in `instance_eval''
from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/
switchtower/actor.rb:110:in `update_code''
from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/
switchtower/actor.rb:105:in `update_code''
... 12 levels...
from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/
switchtower/cli.rb:7:in `execute!''
from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/bin/
switchtower:11
from /opt/local/bin/switchtower:18:in `load''
from /opt/local/bin/switchtower:18
---
Any help would be much appreciated.
Cheers,
Hans Friedrich
On Nov 4, 2005, at 2:36 PM, Hans Friedrich wrote:> Hello, > > I have a basic deploy.rb recipe that was working a couple days ago, > but this afternoon when I tried to run ''rake deploy'' it > inexplicably croaked. My partner configured the server''s security > settings and upgraded a couple of packages, and now we can''t figure > out what specifically we did that made switchtower stop working. My > deploy.rb is in my svn repo and I verified that it is exactly the > same as when it was working on wednesday. I can login to the server > with the ''deploy'' user and execute commands manually just fine. It > doesn''t seem to be a permissions error. >Try running just: rake remote_exec ACTION=update_code and see what you get. It looks like something is going wrong when the code is being updated, which is triggering a rollback (which fails), and all you''re seeing is the rollback''s failure. - Jamis> Here is the error that I''m getting: > > EvilGenius:~/Projects/Rails/project/site/trunk admin$ rake deploy > > (in /Users/admin/Projects/Rails/project/site/trunk) > loading configuration /opt/local/lib/ruby/gems/1.8/gems/ > switchtower-0.9.0/lib/switchtower/recipes/standard.rb > loading configuration ./config/deploy.rb > executing task deploy > transaction: start > executing task update_code > querying latest revision... > executing "if [[ ! -d /var/www/project/releases/20051104195258 ]]; > then\n svn co -q -r22 https://project.mydomain.com/ > source/site/trunk/ /var/www/project/releases/20051104195258; > \n echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 22 > 20051104195258 >> /var/www/project//revisions.log;\n > chmod 666 /var/www/project//revisions.log;\n fi" > servers: ["beta.project.mydomain.com"] > Password: > processing command > [beta.project.mydomain.com] executing command > command finished > [update_code] transaction: rollback > [update_code] rolling back > executing "rm -rf /var/www/project/releases/20051104195258" > servers: ["beta.project.mydomain.com"] > processing command > [beta.project.mydomain.com] executing command > command finished > [update_code] exception while rolling back: RuntimeError, command > "rm -rf /var/www/project/releases/20051104195258" failed on > beta.project.mydomain.com > /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/ > command.rb:41:in `process!'': command "if [[ ! -d /var/www/project/ > releases/20051104195258 ]]; then\\\n svn co -q -r22 > https://project.mydomain.com/source/site/trunk/ /var/www/project/ > releases/20051104195258;\\\n echo `date +\"%Y-%m-%d %H: > %M:%S\"` $USER 22 20051104195258 >> /var/www/project//revisions.log; > \\\n chmod 666 /var/www/project//revisions.log;\\ > \n fi" failed on beta.project.mydomain.com (RuntimeError) > from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > lib/switchtower/actor.rb:145:in `run'' > from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > lib/switchtower/scm/base.rb:38:in `run_checkout'' > from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > lib/switchtower/scm/subversion.rb:74:in `checkout'' > from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > lib/switchtower/recipes/standard.rb:61:in `instance_eval'' > from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > lib/switchtower/recipes/standard.rb:58:in `instance_eval'' > from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > lib/switchtower/actor.rb:110:in `instance_eval'' > from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > lib/switchtower/actor.rb:110:in `update_code'' > from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > lib/switchtower/actor.rb:105:in `update_code'' > ... 12 levels... > from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > lib/switchtower/cli.rb:7:in `execute!'' > from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > bin/switchtower:11 > from /opt/local/bin/switchtower:18:in `load'' > from /opt/local/bin/switchtower:18 > > > --- > > Any help would be much appreciated. > > Cheers, > Hans Friedrich > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Jamis, I tried running: rake remote_exec ACTION=update_code And it failed with exactly the same error. Making me pretty nuts! I rechecked the permissions and everything seems fine. I can manually check out the codebase from svn with the command that switchtower is trying to use, no problem. Thanks, Hans On Nov 4, 2005, at 2:16 PM, Jamis Buck wrote:> On Nov 4, 2005, at 2:36 PM, Hans Friedrich wrote: > >> Hello, >> >> I have a basic deploy.rb recipe that was working a couple days >> ago, but this afternoon when I tried to run ''rake deploy'' it >> inexplicably croaked. My partner configured the server''s security >> settings and upgraded a couple of packages, and now we can''t >> figure out what specifically we did that made switchtower stop >> working. My deploy.rb is in my svn repo and I verified that it is >> exactly the same as when it was working on wednesday. I can login >> to the server with the ''deploy'' user and execute commands manually >> just fine. It doesn''t seem to be a permissions error. >> > > Try running just: > > rake remote_exec ACTION=update_code > > and see what you get. It looks like something is going wrong when > the code is being updated, which is triggering a rollback (which > fails), and all you''re seeing is the rollback''s failure. > > - Jamis > >> Here is the error that I''m getting: >> >> EvilGenius:~/Projects/Rails/project/site/trunk admin$ rake deploy >> >> (in /Users/admin/Projects/Rails/project/site/trunk) >> loading configuration /opt/local/lib/ruby/gems/1.8/gems/ >> switchtower-0.9.0/lib/switchtower/recipes/standard.rb >> loading configuration ./config/deploy.rb >> executing task deploy >> transaction: start >> executing task update_code >> querying latest revision... >> executing "if [[ ! -d /var/www/project/releases/20051104195258 ]]; >> then\n svn co -q -r22 https://project.mydomain.com/ >> source/site/trunk/ /var/www/project/releases/20051104195258; >> \n echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 22 >> 20051104195258 >> /var/www/project//revisions.log;\n >> chmod 666 /var/www/project//revisions.log;\n fi" >> servers: ["beta.project.mydomain.com"] >> Password: >> processing command >> [beta.project.mydomain.com] executing command >> command finished >> [update_code] transaction: rollback >> [update_code] rolling back >> executing "rm -rf /var/www/project/releases/20051104195258" >> servers: ["beta.project.mydomain.com"] >> processing command >> [beta.project.mydomain.com] executing command >> command finished >> [update_code] exception while rolling back: RuntimeError, command >> "rm -rf /var/www/project/releases/20051104195258" failed on >> beta.project.mydomain.com >> /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/ >> switchtower/command.rb:41:in `process!'': command "if [[ ! -d /var/ >> www/project/releases/20051104195258 ]]; then\\\n svn >> co -q -r22 https://project.mydomain.com/source/site/trunk/ /var/ >> www/project/releases/20051104195258;\\\n echo `date + >> \"%Y-%m-%d %H:%M:%S\"` $USER 22 20051104195258 >> /var/www/ >> project//revisions.log;\\\n chmod 666 /var/www/ >> project//revisions.log;\\\n fi" failed on >> beta.project.mydomain.com (RuntimeError) >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >> lib/switchtower/actor.rb:145:in `run'' >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >> lib/switchtower/scm/base.rb:38:in `run_checkout'' >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >> lib/switchtower/scm/subversion.rb:74:in `checkout'' >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >> lib/switchtower/recipes/standard.rb:61:in `instance_eval'' >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >> lib/switchtower/recipes/standard.rb:58:in `instance_eval'' >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >> lib/switchtower/actor.rb:110:in `instance_eval'' >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >> lib/switchtower/actor.rb:110:in `update_code'' >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >> lib/switchtower/actor.rb:105:in `update_code'' >> ... 12 levels... >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >> lib/switchtower/cli.rb:7:in `execute!'' >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >> bin/switchtower:11 >> from /opt/local/bin/switchtower:18:in `load'' >> from /opt/local/bin/switchtower:18 >> >> >> --- >> >> Any help would be much appreciated. >> >> Cheers, >> Hans Friedrich >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
I''m having the EXACT same problem... and so far have had no luck figuring it out... Please help. Thanks, Mike On 11/4/05, Hans Friedrich <hansef-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Jamis, > > I tried running: > rake remote_exec ACTION=update_code > And it failed with exactly the same error. Making me pretty nuts! I > rechecked the permissions and everything seems fine. I can manually > check out the codebase from svn with the command that switchtower is > trying to use, no problem. > > Thanks, > Hans > > On Nov 4, 2005, at 2:16 PM, Jamis Buck wrote: > > > On Nov 4, 2005, at 2:36 PM, Hans Friedrich wrote: > > > >> Hello, > >> > >> I have a basic deploy.rb recipe that was working a couple days > >> ago, but this afternoon when I tried to run ''rake deploy'' it > >> inexplicably croaked. My partner configured the server''s security > >> settings and upgraded a couple of packages, and now we can''t > >> figure out what specifically we did that made switchtower stop > >> working. My deploy.rb is in my svn repo and I verified that it is > >> exactly the same as when it was working on wednesday. I can login > >> to the server with the ''deploy'' user and execute commands manually > >> just fine. It doesn''t seem to be a permissions error. > >> > > > > Try running just: > > > > rake remote_exec ACTION=update_code > > > > and see what you get. It looks like something is going wrong when > > the code is being updated, which is triggering a rollback (which > > fails), and all you''re seeing is the rollback''s failure. > > > > - Jamis > > > >> Here is the error that I''m getting: > >> > >> EvilGenius:~/Projects/Rails/project/site/trunk admin$ rake deploy > >> > >> (in /Users/admin/Projects/Rails/project/site/trunk) > >> loading configuration /opt/local/lib/ruby/gems/1.8/gems/ > >> switchtower-0.9.0/lib/switchtower/recipes/standard.rb > >> loading configuration ./config/deploy.rb > >> executing task deploy > >> transaction: start > >> executing task update_code > >> querying latest revision... > >> executing "if [[ ! -d /var/www/project/releases/20051104195258 ]]; > >> then\n svn co -q -r22 https://project.mydomain.com/ > >> source/site/trunk/ /var/www/project/releases/20051104195258; > >> \n echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 22 > >> 20051104195258 >> /var/www/project//revisions.log;\n > >> chmod 666 /var/www/project//revisions.log;\n fi" > >> servers: ["beta.project.mydomain.com"] > >> Password: > >> processing command > >> [beta.project.mydomain.com] executing command > >> command finished > >> [update_code] transaction: rollback > >> [update_code] rolling back > >> executing "rm -rf /var/www/project/releases/20051104195258" > >> servers: ["beta.project.mydomain.com"] > >> processing command > >> [beta.project.mydomain.com] executing command > >> command finished > >> [update_code] exception while rolling back: RuntimeError, command > >> "rm -rf /var/www/project/releases/20051104195258" failed on > >> beta.project.mydomain.com > >> /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/ > >> switchtower/command.rb:41:in `process!'': command "if [[ ! -d /var/ > >> www/project/releases/20051104195258 ]]; then\\\n svn > >> co -q -r22 https://project.mydomain.com/source/site/trunk/ /var/ > >> www/project/releases/20051104195258;\\\n echo `date + > >> \"%Y-%m-%d %H:%M:%S\"` $USER 22 20051104195258 >> /var/www/ > >> project//revisions.log;\\\n chmod 666 /var/www/ > >> project//revisions.log;\\\n fi" failed on > >> beta.project.mydomain.com (RuntimeError) > >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > >> lib/switchtower/actor.rb:145:in `run'' > >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > >> lib/switchtower/scm/base.rb:38:in `run_checkout'' > >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > >> lib/switchtower/scm/subversion.rb:74:in `checkout'' > >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > >> lib/switchtower/recipes/standard.rb:61:in `instance_eval'' > >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > >> lib/switchtower/recipes/standard.rb:58:in `instance_eval'' > >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > >> lib/switchtower/actor.rb:110:in `instance_eval'' > >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > >> lib/switchtower/actor.rb:110:in `update_code'' > >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > >> lib/switchtower/actor.rb:105:in `update_code'' > >> ... 12 levels... > >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > >> lib/switchtower/cli.rb:7:in `execute!'' > >> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ > >> bin/switchtower:11 > >> from /opt/local/bin/switchtower:18:in `load'' > >> from /opt/local/bin/switchtower:18 > >> > >> > >> --- > >> > >> Any help would be much appreciated. > >> > >> Cheers, > >> Hans Friedrich > >> _______________________________________________ > >> Rails mailing list > >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Okay, a few more things to check: 1. Does the directory /var/www/project exist on the remote server? Is it readable/writable/executable by the user you are deploying as? 2. Does the directory /var/www/project/releases exist on the remote server? Is it readable/writable/executable by the user you are deploying as: 3. Does file /var/www/project/revisions.log exist on the remote server? Is it readable/writable by the user you are deploying as? - Jamis On Nov 7, 2005, at 3:01 PM, Mike Evans wrote:> I''m having the EXACT same problem... and so far have had no luck > figuring it out... Please help. > > Thanks, > Mike > > On 11/4/05, Hans Friedrich <hansef-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Jamis, >> >> I tried running: >> rake remote_exec ACTION=update_code >> And it failed with exactly the same error. Making me pretty nuts! I >> rechecked the permissions and everything seems fine. I can manually >> check out the codebase from svn with the command that switchtower is >> trying to use, no problem. >> >> Thanks, >> Hans >> >> On Nov 4, 2005, at 2:16 PM, Jamis Buck wrote: >> >>> On Nov 4, 2005, at 2:36 PM, Hans Friedrich wrote: >>> >>>> Hello, >>>> >>>> I have a basic deploy.rb recipe that was working a couple days >>>> ago, but this afternoon when I tried to run ''rake deploy'' it >>>> inexplicably croaked. My partner configured the server''s security >>>> settings and upgraded a couple of packages, and now we can''t >>>> figure out what specifically we did that made switchtower stop >>>> working. My deploy.rb is in my svn repo and I verified that it is >>>> exactly the same as when it was working on wednesday. I can login >>>> to the server with the ''deploy'' user and execute commands manually >>>> just fine. It doesn''t seem to be a permissions error. >>>> >>> >>> Try running just: >>> >>> rake remote_exec ACTION=update_code >>> >>> and see what you get. It looks like something is going wrong when >>> the code is being updated, which is triggering a rollback (which >>> fails), and all you''re seeing is the rollback''s failure. >>> >>> - Jamis >>> >>>> Here is the error that I''m getting: >>>> >>>> EvilGenius:~/Projects/Rails/project/site/trunk admin$ rake deploy >>>> >>>> (in /Users/admin/Projects/Rails/project/site/trunk) >>>> loading configuration /opt/local/lib/ruby/gems/1.8/gems/ >>>> switchtower-0.9.0/lib/switchtower/recipes/standard.rb >>>> loading configuration ./config/deploy.rb >>>> executing task deploy >>>> transaction: start >>>> executing task update_code >>>> querying latest revision... >>>> executing "if [[ ! -d /var/www/project/releases/20051104195258 ]]; >>>> then\n svn co -q -r22 https://project.mydomain.com/ >>>> source/site/trunk/ /var/www/project/releases/20051104195258; >>>> \n echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 22 >>>> 20051104195258 >> /var/www/project//revisions.log;\n >>>> chmod 666 /var/www/project//revisions.log;\n fi" >>>> servers: ["beta.project.mydomain.com"] >>>> Password: >>>> processing command >>>> [beta.project.mydomain.com] executing command >>>> command finished >>>> [update_code] transaction: rollback >>>> [update_code] rolling back >>>> executing "rm -rf /var/www/project/releases/20051104195258" >>>> servers: ["beta.project.mydomain.com"] >>>> processing command >>>> [beta.project.mydomain.com] executing command >>>> command finished >>>> [update_code] exception while rolling back: RuntimeError, command >>>> "rm -rf /var/www/project/releases/20051104195258" failed on >>>> beta.project.mydomain.com >>>> /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/ >>>> switchtower/command.rb:41:in `process!'': command "if [[ ! -d /var/ >>>> www/project/releases/20051104195258 ]]; then\\\n svn >>>> co -q -r22 https://project.mydomain.com/source/site/trunk/ /var/ >>>> www/project/releases/20051104195258;\\\n echo `date + >>>> \"%Y-%m-%d %H:%M:%S\"` $USER 22 20051104195258 >> /var/www/ >>>> project//revisions.log;\\\n chmod 666 /var/www/ >>>> project//revisions.log;\\\n fi" failed on >>>> beta.project.mydomain.com (RuntimeError) >>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>> lib/switchtower/actor.rb:145:in `run'' >>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>> lib/switchtower/scm/base.rb:38:in `run_checkout'' >>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>> lib/switchtower/scm/subversion.rb:74:in `checkout'' >>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>> lib/switchtower/recipes/standard.rb:61:in `instance_eval'' >>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>> lib/switchtower/recipes/standard.rb:58:in `instance_eval'' >>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>> lib/switchtower/actor.rb:110:in `instance_eval'' >>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>> lib/switchtower/actor.rb:110:in `update_code'' >>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>> lib/switchtower/actor.rb:105:in `update_code'' >>>> ... 12 levels... >>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>> lib/switchtower/cli.rb:7:in `execute!'' >>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>> bin/switchtower:11 >>>> from /opt/local/bin/switchtower:18:in `load'' >>>> from /opt/local/bin/switchtower:18 >>>> >>>> >>>> --- >>>> >>>> Any help would be much appreciated. >>>> >>>> Cheers, >>>> Hans Friedrich >>>> _______________________________________________ >>>> Rails mailing list >>>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >>> _______________________________________________ >>> Rails mailing list >>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
My problem is virtually the same and so far I haven''t figured out a
solution. I have full rights to /var/www/project (in fact I''m testing
it on the same server)...
I''m getting a RuntimeError with this command: "if [[ ! -d
/ALICE/evansm/rails/switchtower_test/releases/20051107221841 ]];
then\\\n svn co -q -r1454
http://odb.biosci.arizona.edu/svn/simba/rails/trunk
/ALICE/evansm/rails/switchtower_test/releases/20051107221841;\\\n
echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 1454
20051107221841>> /ALICE/evansm/rails/switchtower_test/revisions.log;\\\n
chmod 666 /ALICE/evansm/rails/switchtower_test/revisions.log;\\\n
fi"
which I have dumped into a bash script and found it to execute fine...
any ideas?
Thanks,
Mike
$ rake deploy
(in /home/mike/rails/simba)
loading configuration
/usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/recipes/standard.rb
loading configuration ./config/deploy.rb
executing task deploy
transaction: start
executing task update_code
querying latest revision...
executing "if [[ ! -d
/ALICE/evansm/rails/switchtower_test/releases/20051107221841 ]];
then\n svn co -q -r1454
http://odb.biosci.arizona.edu/svn/simba/rails/trunk
/ALICE/evansm/rails/switchtower_test/releases/20051107221841;\n
echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 1454 20051107221841
>>
/ALICE/evansm/rails/switchtower_test/revisions.log;\n
chmod 666 /ALICE/evansm/rails/switchtower_test/revisions.log;\n
fi"
servers: ["dev.arl.arizona.edu"]
Password:
processing command
[dev.arl.arizona.edu] executing command
[out :: dev.arl.arizona.edu] if: Expression Syntax.
command finished
[update_code] transaction: rollback
[update_code] rolling back
executing "rm -rf
/ALICE/evansm/rails/switchtower_test/releases/20051107221841"
servers: ["dev.arl.arizona.edu"]
processing command
[dev.arl.arizona.edu] executing command
command finished
/usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/command.rb:41:in
`process!'': command "if [[ ! -d
/ALICE/evansm/rails/switchtower_test/releases/20051107221841 ]];
then\\\n svn co -q -r1454
http://odb.biosci.arizona.edu/svn/simba/rails/trunk
/ALICE/evansm/rails/switchtower_test/releases/20051107221841;\\\n
echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 1454
20051107221841>> /ALICE/evansm/rails/switchtower_test/revisions.log;\\\n
chmod 666 /ALICE/evansm/rails/switchtower_test/revisions.log;\\\n
fi" failed on dev.arl.arizona.edu (RuntimeError)
from
/usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/actor.rb:145:in
`run''
from
/usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/scm/base.rb:38:in
`run_checkout''
from
/usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/scm/subversion.rb:74:in
`checkout''
from
/usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/recipes/standard.rb:61:in
`instance_eval''
from
/usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/recipes/standard.rb:58:in
`instance_eval''
from
/usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/actor.rb:110:in
`instance_eval''
from
/usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/actor.rb:110:in
`update_code''
from
/usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/actor.rb:105:in
`update_code''
... 12 levels...
from
/usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/cli.rb:7:in
`execute!''
from
/usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/bin/switchtower:11
from /usr/local/bin/switchtower:18:in `load''
from /usr/local/bin/switchtower:18
Mike,
This line in your output:
[out :: dev.arl.arizona.edu] if: Expression Syntax.
Is kind of revealing. I suspect that the default shell for your user
is not bash. On my to-do list for ST is to make the scripts non-bash-
specific, but currently, you need to make sure your login shell is bash.
I''m not sure how to query the current shell to determine what it is.
Possibly look at the value of the SHELL environment variable. Maybe a
task like this can help:
desc "Show current login shell"
task :show_login_shell do
run "echo $SHELL"
end
(Assuming $SHELL tells you anything useful.)
- Jamis
On Nov 7, 2005, at 3:25 PM, Mike Evans wrote:
> My problem is virtually the same and so far I haven''t figured out
a
> solution. I have full rights to /var/www/project (in fact I''m
testing
> it on the same server)...
>
> I''m getting a RuntimeError with this command: "if [[ ! -d
> /ALICE/evansm/rails/switchtower_test/releases/20051107221841 ]];
> then\\\n svn co -q -r1454
> http://odb.biosci.arizona.edu/svn/simba/rails/trunk
> /ALICE/evansm/rails/switchtower_test/releases/20051107221841;\\\n
> echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 1454
20051107221841
>>> /ALICE/evansm/rails/switchtower_test/revisions.log;\\\n
> chmod 666 /ALICE/evansm/rails/switchtower_test/revisions.log;\\\n
> fi"
> which I have dumped into a bash script and found it to execute fine...
> any ideas?
>
> Thanks,
> Mike
>
> $ rake deploy
> (in /home/mike/rails/simba)
> loading configuration
> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/
> recipes/standard.rb
> loading configuration ./config/deploy.rb
> executing task deploy
> transaction: start
> executing task update_code
> querying latest revision...
> executing "if [[ ! -d
> /ALICE/evansm/rails/switchtower_test/releases/20051107221841 ]];
> then\n svn co -q -r1454
> http://odb.biosci.arizona.edu/svn/simba/rails/trunk
> /ALICE/evansm/rails/switchtower_test/releases/20051107221841;\n
> echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 1454
20051107221841 >>
> /ALICE/evansm/rails/switchtower_test/revisions.log;\n
> chmod 666 /ALICE/evansm/rails/switchtower_test/revisions.log;\n
> fi"
> servers: ["dev.arl.arizona.edu"]
> Password:
> processing command
> [dev.arl.arizona.edu] executing command
> [out :: dev.arl.arizona.edu] if: Expression Syntax.
> command finished
> [update_code] transaction: rollback
> [update_code] rolling back
> executing "rm -rf /ALICE/evansm/rails/switchtower_test/releases/
> 20051107221841"
> servers: ["dev.arl.arizona.edu"]
> processing command
> [dev.arl.arizona.edu] executing command
> command finished
> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/
> command.rb:41:in
> `process!'': command "if [[ ! -d
> /ALICE/evansm/rails/switchtower_test/releases/20051107221841 ]];
> then\\\n svn co -q -r1454
> http://odb.biosci.arizona.edu/svn/simba/rails/trunk
> /ALICE/evansm/rails/switchtower_test/releases/20051107221841;\\\n
> echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 1454
20051107221841
>>> /ALICE/evansm/rails/switchtower_test/revisions.log;\\\n
> chmod 666 /ALICE/evansm/rails/switchtower_test/revisions.log;\\\n
> fi" failed on dev.arl.arizona.edu (RuntimeError)
> from /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/
> lib/switchtower/actor.rb:145:in
> `run''
> from /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/
> lib/switchtower/scm/base.rb:38:in
> `run_checkout''
> from /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/
> lib/switchtower/scm/subversion.rb:74:in
> `checkout''
> from /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/
> lib/switchtower/recipes/standard.rb:61:in
> `instance_eval''
> from /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/
> lib/switchtower/recipes/standard.rb:58:in
> `instance_eval''
> from /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/
> lib/switchtower/actor.rb:110:in
> `instance_eval''
> from /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/
> lib/switchtower/actor.rb:110:in
> `update_code''
> from /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/
> lib/switchtower/actor.rb:105:in
> `update_code''
> ... 12 levels...
> from /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/
> lib/switchtower/cli.rb:7:in
> `execute!''
> from /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/
> bin/switchtower:11
> from /usr/local/bin/switchtower:18:in `load''
> from /usr/local/bin/switchtower:18
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
On 11/7/05, Jamis Buck <jamis-uHoyYlH2B+GakBO8gow8eQ@public.gmane.org> wrote:> Mike, > > This line in your output: > > [out :: dev.arl.arizona.edu] if: Expression Syntax. > > Is kind of revealing. I suspect that the default shell for your user > is not bash. On my to-do list for ST is to make the scripts non-bash- > specific, but currently, you need to make sure your login shell is bash.Aha! You''re totally right... I''m not using bash... but am now and it worked beautifully! Thanks for the quick response... Switchtower looks like it''ll be a big help for us. Mike
yes, yes and yes :) +a On Nov 7, 2005, at 2:12 PM, Jamis Buck wrote:> Okay, a few more things to check: > > 1. Does the directory /var/www/project exist on the remote server? Is > it readable/writable/executable by the user you are deploying as? > 2. Does the directory /var/www/project/releases exist on the remote > server? Is it readable/writable/executable by the user you are > deploying as: > 3. Does file /var/www/project/revisions.log exist on the remote > server? Is it readable/writable by the user you are deploying as? > > - Jamis > > On Nov 7, 2005, at 3:01 PM, Mike Evans wrote: > >> I''m having the EXACT same problem... and so far have had no luck >> figuring it out... Please help. >> >> Thanks, >> Mike >> >> On 11/4/05, Hans Friedrich <hansef-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> Jamis, >>> >>> I tried running: >>> rake remote_exec ACTION=update_code >>> And it failed with exactly the same error. Making me pretty nuts! I >>> rechecked the permissions and everything seems fine. I can manually >>> check out the codebase from svn with the command that switchtower is >>> trying to use, no problem. >>> >>> Thanks, >>> Hans >>> >>> On Nov 4, 2005, at 2:16 PM, Jamis Buck wrote: >>> >>>> On Nov 4, 2005, at 2:36 PM, Hans Friedrich wrote: >>>> >>>>> Hello, >>>>> >>>>> I have a basic deploy.rb recipe that was working a couple days >>>>> ago, but this afternoon when I tried to run ''rake deploy'' it >>>>> inexplicably croaked. My partner configured the server''s security >>>>> settings and upgraded a couple of packages, and now we can''t >>>>> figure out what specifically we did that made switchtower stop >>>>> working. My deploy.rb is in my svn repo and I verified that it is >>>>> exactly the same as when it was working on wednesday. I can login >>>>> to the server with the ''deploy'' user and execute commands manually >>>>> just fine. It doesn''t seem to be a permissions error. >>>>> >>>> >>>> Try running just: >>>> >>>> rake remote_exec ACTION=update_code >>>> >>>> and see what you get. It looks like something is going wrong when >>>> the code is being updated, which is triggering a rollback (which >>>> fails), and all you''re seeing is the rollback''s failure. >>>> >>>> - Jamis >>>> >>>>> Here is the error that I''m getting: >>>>> >>>>> EvilGenius:~/Projects/Rails/project/site/trunk admin$ rake deploy >>>>> >>>>> (in /Users/admin/Projects/Rails/project/site/trunk) >>>>> loading configuration /opt/local/lib/ruby/gems/1.8/gems/ >>>>> switchtower-0.9.0/lib/switchtower/recipes/standard.rb >>>>> loading configuration ./config/deploy.rb >>>>> executing task deploy >>>>> transaction: start >>>>> executing task update_code >>>>> querying latest revision... >>>>> executing "if [[ ! -d /var/www/project/releases/20051104195258 ]]; >>>>> then\n svn co -q -r22 https://project.mydomain.com/ >>>>> source/site/trunk/ /var/www/project/releases/20051104195258; >>>>> \n echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 22 >>>>> 20051104195258 >> /var/www/project//revisions.log;\n >>>>> chmod 666 /var/www/project//revisions.log;\n fi" >>>>> servers: ["beta.project.mydomain.com"] >>>>> Password: >>>>> processing command >>>>> [beta.project.mydomain.com] executing command >>>>> command finished >>>>> [update_code] transaction: rollback >>>>> [update_code] rolling back >>>>> executing "rm -rf /var/www/project/releases/20051104195258" >>>>> servers: ["beta.project.mydomain.com"] >>>>> processing command >>>>> [beta.project.mydomain.com] executing command >>>>> command finished >>>>> [update_code] exception while rolling back: RuntimeError, command >>>>> "rm -rf /var/www/project/releases/20051104195258" failed on >>>>> beta.project.mydomain.com >>>>> /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/ >>>>> switchtower/command.rb:41:in `process!'': command "if [[ ! -d /var/ >>>>> www/project/releases/20051104195258 ]]; then\\\n svn >>>>> co -q -r22 https://project.mydomain.com/source/site/trunk/ /var/ >>>>> www/project/releases/20051104195258;\\\n echo `date + >>>>> \"%Y-%m-%d %H:%M:%S\"` $USER 22 20051104195258 >> /var/www/ >>>>> project//revisions.log;\\\n chmod 666 /var/www/ >>>>> project//revisions.log;\\\n fi" failed on >>>>> beta.project.mydomain.com (RuntimeError) >>>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>>> lib/switchtower/actor.rb:145:in `run'' >>>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>>> lib/switchtower/scm/base.rb:38:in `run_checkout'' >>>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>>> lib/switchtower/scm/subversion.rb:74:in `checkout'' >>>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>>> lib/switchtower/recipes/standard.rb:61:in `instance_eval'' >>>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>>> lib/switchtower/recipes/standard.rb:58:in `instance_eval'' >>>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>>> lib/switchtower/actor.rb:110:in `instance_eval'' >>>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>>> lib/switchtower/actor.rb:110:in `update_code'' >>>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>>> lib/switchtower/actor.rb:105:in `update_code'' >>>>> ... 12 levels... >>>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>>> lib/switchtower/cli.rb:7:in `execute!'' >>>>> from /opt/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/ >>>>> bin/switchtower:11 >>>>> from /opt/local/bin/switchtower:18:in `load'' >>>>> from /opt/local/bin/switchtower:18 >>>>> >>>>> >>>>> --- >>>>> >>>>> Any help would be much appreciated. >>>>> >>>>> Cheers, >>>>> Hans Friedrich >>>>> _______________________________________________ >>>>> Rails mailing list >>>>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>>>> http://lists.rubyonrails.org/mailman/listinfo/rails >>>> >>>> _______________________________________________ >>>> Rails mailing list >>>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >>> _______________________________________________ >>> Rails mailing list >>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >-- alex black, founder the turing studio, inc. 510.666.0074 root-16h2cdTTKgpzNNFeSAH1EA@public.gmane.org http://www.turingstudio.com 2600 10th street, suite 635 berkeley, ca 94710
FYI the last line of out switchtower output is: servers: ["beta.projectname.com"] processing command [beta.projectname.com] executing command command finished executing task restart executing "sudo /etc/init.d/lighttpd start" servers: ["beta.projectname.com"] processing command [beta.projectname.com] executing command [out :: beta.projectname.com] Starting lighttpd: [out :: beta.projectname.com] lighttpd. after that last line the local rake deploy task just hangs. the server is restarted correctly, as far as I can tell. any ideas? _a On Nov 7, 2005, at 2:47 PM, Jamis Buck wrote:> Mike, > > This line in your output: > > [out :: dev.arl.arizona.edu] if: Expression Syntax. > > Is kind of revealing. I suspect that the default shell for your user > is not bash. On my to-do list for ST is to make the scripts > non-bash-specific, but currently, you need to make sure your login > shell is bash. > > I''m not sure how to query the current shell to determine what it is. > Possibly look at the value of the SHELL environment variable. Maybe a > task like this can help: > > desc "Show current login shell" > task :show_login_shell do > run "echo $SHELL" > end > > (Assuming $SHELL tells you anything useful.) > > - Jamis > > On Nov 7, 2005, at 3:25 PM, Mike Evans wrote: > >> My problem is virtually the same and so far I haven''t figured out a >> solution. I have full rights to /var/www/project (in fact I''m testing >> it on the same server)... >> >> I''m getting a RuntimeError with this command: "if [[ ! -d >> /ALICE/evansm/rails/switchtower_test/releases/20051107221841 ]]; >> then\\\n svn co -q -r1454 >> http://odb.biosci.arizona.edu/svn/simba/rails/trunk >> /ALICE/evansm/rails/switchtower_test/releases/20051107221841;\\\n >> echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 1454 20051107221841 >>>> /ALICE/evansm/rails/switchtower_test/revisions.log;\\\n >> chmod 666 /ALICE/evansm/rails/switchtower_test/revisions.log;\\\n >> fi" >> which I have dumped into a bash script and found it to execute fine... >> any ideas? >> >> Thanks, >> Mike >> >> $ rake deploy >> (in /home/mike/rails/simba) >> loading configuration >> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/ >> recipes/standard.rb >> loading configuration ./config/deploy.rb >> executing task deploy >> transaction: start >> executing task update_code >> querying latest revision... >> executing "if [[ ! -d >> /ALICE/evansm/rails/switchtower_test/releases/20051107221841 ]]; >> then\n svn co -q -r1454 >> http://odb.biosci.arizona.edu/svn/simba/rails/trunk >> /ALICE/evansm/rails/switchtower_test/releases/20051107221841;\n >> echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 1454 20051107221841 >> >> /ALICE/evansm/rails/switchtower_test/revisions.log;\n >> chmod 666 /ALICE/evansm/rails/switchtower_test/revisions.log;\n >> fi" >> servers: ["dev.arl.arizona.edu"] >> Password: >> processing command >> [dev.arl.arizona.edu] executing command >> [out :: dev.arl.arizona.edu] if: Expression Syntax. >> command finished >> [update_code] transaction: rollback >> [update_code] rolling back >> executing "rm -rf >> /ALICE/evansm/rails/switchtower_test/releases/20051107221841" >> servers: ["dev.arl.arizona.edu"] >> processing command >> [dev.arl.arizona.edu] executing command >> command finished >> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/ >> command.rb:41:in >> `process!'': command "if [[ ! -d >> /ALICE/evansm/rails/switchtower_test/releases/20051107221841 ]]; >> then\\\n svn co -q -r1454 >> http://odb.biosci.arizona.edu/svn/simba/rails/trunk >> /ALICE/evansm/rails/switchtower_test/releases/20051107221841;\\\n >> echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 1454 20051107221841 >>>> /ALICE/evansm/rails/switchtower_test/revisions.log;\\\n >> chmod 666 /ALICE/evansm/rails/switchtower_test/revisions.log;\\\n >> fi" failed on dev.arl.arizona.edu (RuntimeError) >> from >> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/ >> actor.rb:145:in >> `run'' >> from >> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/ >> scm/base.rb:38:in >> `run_checkout'' >> from >> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/ >> scm/subversion.rb:74:in >> `checkout'' >> from >> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/ >> recipes/standard.rb:61:in >> `instance_eval'' >> from >> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/ >> recipes/standard.rb:58:in >> `instance_eval'' >> from >> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/ >> actor.rb:110:in >> `instance_eval'' >> from >> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/ >> actor.rb:110:in >> `update_code'' >> from >> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/ >> actor.rb:105:in >> `update_code'' >> ... 12 levels... >> from >> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/ >> cli.rb:7:in >> `execute!'' >> from >> /usr/local/lib/ruby/gems/1.8/gems/switchtower-0.9.0/bin/switchtower: >> 11 >> from /usr/local/bin/switchtower:18:in `load'' >> from /usr/local/bin/switchtower:18 >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >-- alex black, founder the turing studio, inc. 510.666.0074 root-16h2cdTTKgpzNNFeSAH1EA@public.gmane.org http://www.turingstudio.com 2600 10th street, suite 635 berkeley, ca 94710
On Nov 7, 2005, at 8:24 PM, alex black wrote:> FYI the last line of out switchtower output is: > > servers: ["beta.projectname.com"] > processing command > [beta.projectname.com] executing command > command finished > executing task restart > executing "sudo /etc/init.d/lighttpd start" > servers: ["beta.projectname.com"] > processing command > [beta.projectname.com] executing command > [out :: beta.projectname.com] Starting lighttpd: > [out :: beta.projectname.com] lighttpd. > > > after that last line the local rake deploy task just hangs. the > server is restarted correctly, as far as I can tell.It''s almost as though lighttpd is being started with the -D flag (indicating that it shouldn''t daemonize, preferring to run in the foreground). Can you verify that lighttpd this isn''t the case? Does running "sudo /etc/init.d/lighttpd start" from the command line cause the process to detach and run in the background? - Jamis