Fixed the issue. I didn''t have Subversion installed on the server.
On 12/7/05, Brian Takita
<brian.takita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hello,
>
> The task update_code is failing for some reason. I am attempting my first
> deployment onto an Ubuntu server. I am running Sql Server as the database,
> so I am also attempting to disable the database deployment.
>
> Here are the permissions for the directory on the server.
> drwxr-xr-x 4 briant briant 4096 2005-12-07 13:26 .
> drwxr-xr-x 6 briant briant 4096 2005-12-07 12:47 ..
> lrwxrwxrwx 1 briant briant 27 2005-12-07 13:26 current ->
> /home/briant/ned2/releases/
> drwxr-xr-x 2 briant briant 4096 2005-12-07 13:09 releases
> -rw-rw-rw- 1 briant briant 506 2005-12-07 13:28 revisions.log
> drwxr-xr-x 4 briant briant 4096 2005-12-07 13:09 shared
>
> Does anybody have a reason that task is failing?
>
> --
> Thank you,
> Brian Takita
> http://freeopinion.org
>
> I get the following error when executing:
>
> briant@naspp15:~/src/ned$ rake remote_exec ACTION=update_code
> > (in /home/briant/src/ned)
> > loading configuration /usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0
> > /lib/switchtower/recipes/standard.rb
> > loading configuration ./config/deploy.rb
> > executing task update_code
> > querying latest revision...
> > executing "if [[ ! -d /home/briant/ned2/releases/20051207213249
]];
> > then\n svn co -q -r395
svn://executivepress.net/NED/trunk/home/briant/ned2/releases/20051207213249;\n
echo `date
> > +\"%Y-%m-%d %H:%M:%S\"` $USER 395 20051207213249 >>
> > /home/briant/ned2/revisions.log;\n chmod 666
> > /home/briant/ned2/revisions.log;\n fi"
> > servers: ["ned"]
> > processing command
> > [ned] executing command
> > [out :: ned] bash: line 1: svn: command not found
> > command finished
> > executing "rm -rf /home/briant/ned2/releases/20051207213249/log
> > /home/briant/ned2/releases/20051207213249/public/system &&\n
ln -nfs
> > /home/briant/ned2/shared/log
/home/briant/ned2/releases/20051207213249/log
> > &&\n ln -nfs /home/briant/ned2/shared/system
> > /home/briant/ned2/releases/20051207213249/public/system"
> > servers: ["ned"]
> > processing command
> > [ned] executing command
> > [out :: ned] ln:
> > [out :: ned] creating symbolic link
> > `/home/briant/ned2/releases/20051207213249/log'' to
> > `/home/briant/ned2/shared/log''
> > [out :: ned] : No such file or directory
> > command finished
> >
/usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/command.rb:41:in
> > `process!'': command "rm -rf
/home/briant/ned2/releases/20051207213249/log
> > /home/briant/ned2/releases/20051207213249/public/system &&\\\n
ln -nfs
> > /home/briant/ned2/shared/log
/home/briant/ned2/releases/20051207213249/log
> > &&\\\n ln -nfs /home/briant/ned2/shared/system
> > /home/briant/ned2/releases/20051207213249/public/system" failed
on ned
> > (RuntimeError)
> > from
/usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/actor.rb:145:in
> > `run''
> > from
/usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/recipes/standard.rb:63:in
> > `instance_eval''
> > from
/usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/recipes/standard.rb:58:in
> > `instance_eval''
> > from
/usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/actor.rb:110:in
> > `update_code''
> > from
/usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/actor.rb:105:in
> > `update_code''
> > from
/usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/cli.rb:192:in
> > `execute_recipes!''
> > from
/usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/cli.rb:192:in
> > `each''
> > from
/usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/cli.rb:192:in
> > `execute_recipes!''
> > from /usr/lib/ruby/gems/1.8/gems/switchtower-
0.9.0/lib/switchtower/cli.rb:169:in
> > `execute!''
> > from
/usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/lib/switchtower/cli.rb:7:in
> > `execute!''
> > from
/usr/lib/ruby/gems/1.8/gems/switchtower-0.9.0/bin/switchtower:11
> >
> > from /usr/bin/switchtower:18
> >
> >
--
Brian Takita
http://freeopinion.org
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails