Welcome Guest | Login

No such file or directory... svn issue

I think that I have everything set up correctly for automating deployment with Capistrano and svn, but I have an error when I deploy:cold or deploy. The message that I am getting is:

c:/ruby/lib/gems/1.8/gems/capistrano-2.1/lib/capistrano/recipies/deploy.rb:37:in ``': No such file or directory - svn info: svn+ssh://<username>@<ip>/home/<username>/svn/Blog/trunk -rHead (Errno::ENOENT)

I have navigated to the trunk directory on the server so I know that it exists. What could be causing this error to happen?

My deploy file:

set :application, "Blog"
set :repository,  "<ip>"
set :user, "serious"
set :repository,  "svn+ssh://serious@<ip>/home/serious/svn/Blog/trunk"

set :use_sudo, false                
set :deploy_to, "/home/serious/apps/Blog"          # Where on the server your app will be deployed
set :deploy_via, :checkout                # For this tutorial, svn checkout will be the deployment method
set :chmod755, "app config db lib public vendor script script/* public/disp*"   # Some files that will need proper permissions
# set :mongrel_port, "4444"                # Mongrel port
# set :mongrel_nodes, "4"                # Number of Mongrel instances for those with multiple Mongrels

default_run_options[:pty] = true


# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
# set :deploy_to, "/var/www/#{application}"

# If you aren't using Subversion to manage your source code, specify
# your SCM below:
# set :scm, :subversion

#ssh_options[:keys] = %w(/Path/To/id_rsa)            # If you are using ssh_keys

role :app, "<ip>"
role :web, "<ip>"
role :db,  "<ip>", :primary => true

2008-02-14 11:03 PM

Hi - Are you getting the same error while running

svn info: svn+ssh://<username>@<ip>/home/<username>/svn/Blog

If you are using a windows machine you must install the SVN binaries and make sure that they are in your PATH. Capistrano uses svn on the local machine to find out what the latest repository revision is.

2008-02-15 05:14 AM

HostingRails Support
Thank you for your quick reply.

I will try both of your suggestions today, starting with taking out the "trunk" in the path and if that don't work I will download the binaries. There are a lot of available downloads on the subversion site. Could you hint to me the correct one for installing the binaries needed for this issue? The link that I am going to is:
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91

I would assume that it is the  svn-1.4.5-setup.exe because that has just the basic binaries, but I would like to make sure. Also, is there any other software that I would need to install after the subversion binaries?

One more question:
"If you are using a windows machine you must install the SVN binaries and make sure that they are in your PATH". What "PATH" are you referring to and how would I make sure that the binaries are in this "PATH"?

2008-02-15 08:28 AM

Hi there -  that top one on the URL you gave is the correct install.

Also, to find and edit your path, right click my computer -> properties -> advanced -> environment variables

2008-02-15 10:33 AM

Thanks for your reply.

How would the path look? This is what is in my Path now:

<CurrentVars>;C:\Subversion\bin;

I am just wondering if this is the folder that I am supposed to reference. If it is, this is something that subversion did upon install.

2008-02-15 01:59 PM

That looks correct. What is your full output when you cap deploy:cold? Did you cap deploy:setup?  (did it work?)

2008-02-15 06:14 PM

Here is the error that I was missing when I did cap deploy:cold

 * executing `deploy:cold'
 * executing `deploy:update'
** transaction: start
 * executing `deploy:update_code'
svn: Can't create tunnel: The system cannot find the file specified.
*** [deploy:update_code] rolling back
 * executing "rm -rf /home/serious/apps/Blog/releases/20080216051351; true"
   servers: <ip>
Password:

2008-02-15 08:17 PM

cap deploy:setup looked like this...

 * executing `deploy:setup'
 * executing "umask 02 && mkdir -p /home/<user>/apps/Blog /home/<user>/apps/B
log/releases /home/<user>/apps/Blog/shared /home/<user>/apps/Blog/shared/syste
m /home/<user>/apps/Blog/shared/log /home/<user>/apps/Blog/shared/pids"
   servers: <ip>
Password:
   <ip> executing command
   command finished

To me, this looks like the setup was good, but this is my first deployment. Any help would be appreciated. Here is my current status...

I installed svn (from the link above) to my local system. I checked to see if the path to the svn binaries were in my Path (they are). Now I have noticed an error before the original "No such file or directory"... ie..

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

Thanks for your time.

2008-02-15 08:25 PM

To get rid of the tunnel error I believe you need to change the subversion config:

C:\Documents and Settings\YourUserName\ApplicationData\Subversion\config

in notepad Under [tunnels] add:

ssh=plink

2008-02-16 12:47 AM

I changed the config to look like this:

### Section for configuring tunnel agents.
[tunnels]
### Configure svn protocol tunnel schemes here.  By default, only
### the 'ssh' scheme is defined.  You can define other schemes to
### be used with 'svn+scheme://hostname/path' URLs.  A scheme
### definition is simply a command, optionally prefixed by an
### environment variable name which can override the command if it
### is defined.  The command (or environment variable) may contain
### arguments, using standard shell quoting for arguments with
### spaces.  The command will be invoked as:
###   <command> <hostname> svnserve -t
### (If the URL includes a username, then the hostname will be
### passed to the tunnel agent as <user>@<hostname>.)  If the
### built-in ssh scheme were not predefined, it could be defined
### as:
# ssh=plink
### ssh=plink ### $SVN_SSH ssh
### If you wanted to define a new 'rsh' scheme, to be used with
### 'svn+rsh:' URLs, you could do so as follows:
# rsh = rsh
### Or, if you wanted to specify a full path and arguments:
# rsh = /path/to/rsh -l myusername
### On Windows, if you are specifying a full path to a command,
### use a forward slash (/) or a paired backslash (\\) as the
### path separator.  A single backslash will be treated as an
### escape for the following character.





And I am still getting the following error:

 * executing `deploy:cold'
 * executing `deploy:update'
** transaction: start
 * executing `deploy:update_code'
svn: Can't create tunnel: The system cannot find the file specified.
*** [deploy:update_code] rolling back
 * executing "rm -rf /home/<user>/apps/Blog/releases/20080216182022; true"
   servers: ["<ip>"]
Password:

2008-02-16 10:48 AM

I am going to post a ticket for this. Thanks for all of your help guys...

2008-02-16 12:25 PM

I am getting the same error as the original one in this post:

c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.2/lib/capistrano/recipes/deploy.rb
:97:in ``': No such file or directory - svn info svn+ssh://username@domainname
.com/home/username/svn/projectname/trunk  -rHEAD (Errno::ENOENT)

The weird thing is that i can't see the trunk directory in the my svn/projectname/ folder but i connect to it all the time with Subclipse no problem.  I checkout all my code in Aptana with Subclipse and commit and everything.  Any help would be appreciated.

I followed these three tutorials closely:
http://www.hostingrails.com/forums/wiki_thread/4
http://www.hostingrails.com/forums/wiki_thread/5
http://www.hostingrails.com/forums/wiki_thread/46

thx,
gabe

2008-12-04 01:27 PM

- gabe
Could you please check whether your PATH variables are correct ?

2008-12-04 02:17 PM

HostingRails Support
What should they be???

Server PATH var:
/usr/local/jdk/bin:/usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/home/gabriel/bin

Local System PATH var:
c:\ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;c:\cygwin\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\SlikSvn\bin\

This error looks like the server path env must be missing something for SVN...

2008-12-04 02:58 PM

- gabe
Please make sure that the SVN binaries are installed at your local machine. You can download those binaries from the following link.
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91

After installing the binaries you need to make sure that the path of the binary is included in the PATH variables(It will get added during the installation). If you are still facing issue with this please paste the complete error logs or post a support ticket with errors, while doing cap deploy.



2008-12-04 03:31 PM

HostingRails Support
i already know that it's correctly in the PATH var locally because i can run the 'svn info' command from the command prompt anywhere.  i'll post a ticket.

2008-12-04 03:51 PM

- gabe

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