I''m trying to deploy a rails app with no success. I can execute: ''rake remote_exec ACTION=setup'' but when I try to execute : ''rake deploy'' I got this error: loading configuration c:/ruby/lib/ruby/gems/1.8/gems/switchtower-0.10.0 /lib/switchtower/recipes/standard.rb loading configuration ./config/deploy.rb executing task deploy transaction: start executing task update_code querying latest revision... [update_code] transaction: rollback [update_code] rolling back executing "rm -rf /home/[my_user]/apps/[my_app]/releases/20060127192840" servers: ["www.[my_server].com"] Password: ******* processing command [www.[my_server].com] executing command command finished rake aborted! No such file or directory - svn log -q -rhead file:///home/[my_user]/repo/[my_app]/trunk ------------------- But if I connect to my server with the same user I can execute the command: svn log -q -rhead file:///home/[my_user]/repo/[my_app]/trunk I can use tortoiseSVN no access my repo via svn+ssh I change my shell to bash, with not success Any clue? Thx -- Edgar Gonz?lez Gonz?lez E-mail: edgargonzalez@gmail.com -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060127/35a30d19/attachment-0001.html
Edgar, SwitchTower won''t work with file:// repositories. The repository must be accessible to both the local host, and the remote host. Also, in your case, the error is due to the ''svn'' executable not being found on the remote host. Is svn installed on the remote host? If so, is it in the path? - Jamis On Jan 27, 2006, at 1:47 PM, Edgar Gonzalez wrote:> > I''m trying to deploy a rails app with no success. > > I can execute: ''rake remote_exec ACTION=setup'' > > but when I try to execute : ''rake deploy'' > > I got this error: > loading configuration c:/ruby/lib/ruby/gems/1.8/gems/switchtower- > 0.10.0/lib/switchtower/recipes/standard.rb > loading configuration ./config/deploy.rb > executing task deploy > transaction: start > executing task update_code > querying latest revision... > [update_code] transaction: rollback > [update_code] rolling back > executing "rm -rf /home/[my_user]/apps/[my_app]/releases/ > 20060127192840" > servers: ["www.[my_server].com"] > Password: ******* > > processing command > [www.[my_server].com] executing command > command finished > rake aborted! > No such file or directory - svn log -q -rhead file:///home/ > [my_user]/repo/[my_app]/trunk > > ------------------- > > But if I connect to my server with the same user I can execute the > command: > > svn log -q -rhead file:///home/[my_user]/repo/[my_app]/trunk > > I can use tortoiseSVN no access my repo via svn+ssh > > I change my shell to bash, with not success > > Any clue? > > Thx > > -- > Edgar Gonz?lez Gonz?lez > E-mail: edgargonzalez@gmail.com > -- > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Jamis, The subversion is installed in the same server. In the server (using the same user as I configure in deploy.rb) I can execute: svn log -q -rhead file:///home/[my_user]/repo/[my_app]/trunk In the server the svn is in the PATH, also I added to the deploy.rb: set :svn, "/usr/bin/svn" with the same error BTW, you said that "SwitchTower won''t work with file:// repositories", so I have to change the url for some like svn+ssh? Thx On 1/27/06, Jamis Buck <jamis@37signals.com> wrote:> > Edgar, > > SwitchTower won''t work with file:// repositories. The repository must > be accessible to both the local host, and the remote host. > > Also, in your case, the error is due to the ''svn'' executable not > being found on the remote host. Is svn installed on the remote host? > If so, is it in the path? > > - Jamis > > On Jan 27, 2006, at 1:47 PM, Edgar Gonzalez wrote: > > > > > I''m trying to deploy a rails app with no success. > > > > I can execute: ''rake remote_exec ACTION=setup'' > > > > but when I try to execute : ''rake deploy'' > > > > I got this error: > > loading configuration c:/ruby/lib/ruby/gems/1.8/gems/switchtower- > > 0.10.0/lib/switchtower/recipes/standard.rb > > loading configuration ./config/deploy.rb > > executing task deploy > > transaction: start > > executing task update_code > > querying latest revision... > > [update_code] transaction: rollback > > [update_code] rolling back > > executing "rm -rf /home/[my_user]/apps/[my_app]/releases/ > > 20060127192840" > > servers: ["www.[my_server].com"] > > Password: ******* > > > > processing command > > [www.[my_server].com] executing command > > command finished > > rake aborted! > > No such file or directory - svn log -q -rhead file:///home/ > > [my_user]/repo/[my_app]/trunk > > > > ------------------- > > > > But if I connect to my server with the same user I can execute the > > command: > > > > svn log -q -rhead file:///home/[my_user]/repo/[my_app]/trunk > > > > I can use tortoiseSVN no access my repo via svn+ssh > > > > I change my shell to bash, with not success > > > > Any clue? > > > > Thx > > > > -- > > Edgar Gonz?lez Gonz?lez > > E-mail: edgargonzalez@gmail.com > > -- > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Edgar Gonz?lez Gonz?lez E-mail: edgargonzalez@gmail.com -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060127/62254b0a/attachment-0001.html
Jamis, I changed my repo to: set :repository, "svn+ssh://[my_user]@[my_server]/[my_app]/trunk/" This url is what I use in tortoiseSVN and works fine but the error is the same: No such file or directory - svn log -q -rhead svn+ssh://[my_user]@[my_server]/[my_app]/trunk/ maybe the error is not related to SVN? thx again On 1/27/06, Jamis Buck <jamis@37signals.com> wrote:> > Edgar, > > SwitchTower won''t work with file:// repositories. The repository must > be accessible to both the local host, and the remote host. > > Also, in your case, the error is due to the ''svn'' executable not > being found on the remote host. Is svn installed on the remote host? > If so, is it in the path? > > - Jamis > > On Jan 27, 2006, at 1:47 PM, Edgar Gonzalez wrote: > > > > > I''m trying to deploy a rails app with no success. > > > > I can execute: ''rake remote_exec ACTION=setup'' > > > > but when I try to execute : ''rake deploy'' > > > > I got this error: > > loading configuration c:/ruby/lib/ruby/gems/1.8/gems/switchtower- > > 0.10.0/lib/switchtower/recipes/standard.rb > > loading configuration ./config/deploy.rb > > executing task deploy > > transaction: start > > executing task update_code > > querying latest revision... > > [update_code] transaction: rollback > > [update_code] rolling back > > executing "rm -rf /home/[my_user]/apps/[my_app]/releases/ > > 20060127192840" > > servers: ["www.[my_server].com"] > > Password: ******* > > > > processing command > > [www.[my_server].com] executing command > > command finished > > rake aborted! > > No such file or directory - svn log -q -rhead file:///home/ > > [my_user]/repo/[my_app]/trunk > > > > ------------------- > > > > But if I connect to my server with the same user I can execute the > > command: > > > > svn log -q -rhead file:///home/[my_user]/repo/[my_app]/trunk > > > > I can use tortoiseSVN no access my repo via svn+ssh > > > > I change my shell to bash, with not success > > > > Any clue? > > > > Thx > > > > -- > > Edgar Gonz?lez Gonz?lez > > E-mail: edgargonzalez@gmail.com > > -- > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Edgar Gonz?lez Gonz?lez E-mail: edgargonzalez@gmail.com -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060127/c45fd590/attachment.html
I have switchtower running fine on my Mac mini using Locomotive, which is my main dev box. I also have a Debian Linux box. I also use it for development. I whenever I do a rake deploy from my linux box I get an error: loading configuration /usr/lib/ruby/gems/1.8/gems/switchtower-0.10.0/lib/switchtower/recipes/standard.rb loading configuration ./config/deploy.rb executing task deploy transaction: start executing task update_code querying latest revision... Password: executing "if [[ ! -d /www/tennis/releases/20060210103521 ]]; then\n svn co -q -r143 svn+ssh://svn.example.com/var/lib/svn/rails/tennis/trunk /www/tennis/releases/20060210103521 &&\n echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 143 20060210103521 >> /www/tennis/revisions.log && chmod 666 /www/tennis/revisions.log;\n fi" servers: ["example.com"] [update_code] transaction: rollback [update_code] rolling back executing "rm -rf /www/tennis/releases/20060210103521" servers: ["example.com"] [update_code] exception while rolling back: NameError, uninitialized constant OSSL rake aborted! no such file to load -- openssl Any ideas? Jeroen
Jeroen Houben wrote:> I have switchtower running fine on my Mac mini using Locomotive, which > is my main dev box. I also have a Debian Linux box. I also use it for > development. I whenever I do a rake deploy from my linux box I get an > error: > > no such file to load -- opensslFixed it by installing libopenssl-ruby So how does this work, what''s the order of things? Does it do a checkout from the development server and copy that to the production server, or does it login to the production server first and checkout a copy from there? Jeroen
>So how does this work, what''s the order of things? >Does it do a checkout from the development server and copy that to the >production server, or does it login to the production server first and >checkout a copy from there? > >Jeroen >_______________________________________________It logs in to prod, and do all the stuff from there Mikkel Bruun www.strongside.dk - Football Portal(DK) nflfeed.helenius.org - Football News(DK) ting.minline.dk - Buy Old Stuff!(DK) -- Posted with http://DevLists.com. Sign up and save your time!
Seemingly Similar Threads
- Switchtower different svn repo urls from my local box and my shared hosting
- Capistrano: update_code - "No such file or directory" -
- validates_unlike plugin
- Specs don''t find modules when using the secure_actions or ssl_requirement plugin
- Problem with GetText 1.6.0 - undefined method ''N_''