Welcome Guest | Login

Capistrano/SVN setup

I'm getting the following error on the cold_deploy task

 C:\rubydev\workspace\classes>cap cold_deploy
   * executing task cold_deploy
   * executing task update
  ** transaction: start
   * executing task update_code
   * querying latest revision...
 svn: Can't create tunnel: The system cannot find the file specified.
 *** [update_code] transaction: rollback
   * [update_code] rolling back

I've got putty and pageant setup to allow me to login without password and 'cap setup' ran correctly without password.  I noticed that 'revisions.log' was not created as the tutorial said it would be so I touch'd and chmod'd it.

SVN is working from tortoise (without password) with the same path as is in deploy.rb.

I've checked my .bashrc for 'mesg y'...not found.

I've added the following SSH options to deploy.rb
 ssh_options[:keys] = %w(/devel/stevej@stinkpad.ppk)
 ssh_options[:paranoid] = false

2007-08-10 04:42 AM

Are you using encrypted SSh keys for tunneling ?
Also you may try using your own SSh tunnel like tortoise SVN does.
The link given below would be helpful in this.http://forums.codeblocks.org/index.php/topic,643.msg4393.html
Also it looks like you need to create an environment variable called "SVN_SSH" that points to an executable file that accepts the same command line arguments as ssh on unix. please have a look at the link given below.
http://www.woodwardweb.com/java/000155.html

2007-08-10 06:02 AM

I just want to be clear, everything is working fine on my Windows development box.  It seems like you were giving me instructions on things to change on windows which confuses me.  I believe my problem is on your server.  Capistrano trying to execute the svn command (via ssh) on owen and its failing.  Do you have any other advice?

Thanks.

2007-08-15 01:27 PM

Stevej, are you able to deploy without your ssh_keys? It is sometimes helpful to rule that out first.

2007-08-15 06:25 PM

No, the output is below.  Interesting that the svn failure is long before I'm prompted for a password.

C:\rubydev\workspace\classes>cap cold_deploy
 * executing task cold_deploy
 * executing task update
** transaction: start
 * executing task update_code
 * querying latest revision...
svn: Can't create tunnel: The system cannot find the file specified.
*** [update_code] transaction: rollback
 * [update_code] rolling back
 * executing "rm -rf /home/fatearc/apps/classes/releases/20070818200353"
   servers: ["fatear.com"]
Password: xxxxxxxxx

   [fatear.com] executing command
   command finished
C:/rubydev/tools/ruby/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/capistrano/scm
/subversion.rb:24:in `latest_revision': Could not determine latest revision (Run
timeError)
       from C:/rubydev/tools/ruby/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/c
apistrano/configuration.rb:62:in `initialize'

2007-08-18 03:10 PM

Hi there - this issue:

svn: Can't create tunnel: The system cannot find the file specified.

means that there is likely a problem with your cap file(s) - (are you using cap 2.0 or 1.x ?) - you should open a support ticket and paste in your deploy tasks to get further help on this.

2007-08-19 04:48 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!