Hello all,
i changed today from my local repository to a repository on a server. The repository now lies on the same server where my application is going to be deployed. Everything went fine
create my repository on the server and checked out my working copy. After some changes on the code i wanted to deploy my application but it failed.
The error is:
“svn: Network connection closed unexpectedly”
Here is the output after the deploy:
cap deploy:update
- executing `deploy:update’
** transaction: start
- executing `deploy:update_code’
executing locally: “svn info svn+ssh://sshloginname@svn.domainname.com/kunden//svn//trunk --username ssh-username --password passwort --no-auth-cache -rHEAD”
Password:
- executing “svn checkout -q --username username --password passwort --no-auth-cache -r74 svn+ssh://ssh-username@svn.domainname.com/kunden/***/svn//trunk /kunden/284650_78052/webseiten/releases/20100909095956 && (echo 74 > /kunden/284650_78052/webseiten/releases/20100909095956/REVISION)”
servers: [“domainname.com”]
[domainname.com] executing command
** [domainname.com :: err] svn: Network connection closed unexpectedly
command finished
*** [deploy:update_code] rolling back
- executing “rm -rf /kunden//*/releases/20100909095956; true”
servers: [“domainname.com”]
[domainname.com] executing command
command finished
failed: “sh -c ‘svn checkout -q --username ssh-username --password passwort --no-auth-cache -r74 svn+ssh://username@svn.domainname.com/kunden//svn//trunk /kunden///releases/20100909095956 && (echo 74 > /kunden/*//releases/20100909095956/REVISION)’” on domainname.com
The username and Passwort for the ssh tunnel is correct, i can checkout the files locally trough a svn client. I will post my deploy.rb maybe there is something wrong:
set :application, “******”
set :domain, “*****”
set :repository, “svn+ssh://ssh-username@svn.domainname.com/kunden/*/svn//trunk”
set :scm, :subversion
set :scm_username, “ssh-username”
set :scm_password, “password”
Or: accurev
, bzr
, cvs
, darcs
, git
, mercurial
, perforce
, subversion
or none
set :deploy_via, :checkout
set :deploy_to, “/kunden/*******”
set :user, “username”
set :password, “password”
set :use_sudo, false
role :web, “domainname.com” # Your HTTP server, Apache/etc
role :app, “domainname.com” # This may be the same as your Web
server
role :db, “domainname.com”, :primary => true # This is where Rails migrations will run
If you are using Passenger mod_rails uncomment this:
if you’re still using the script/reapear helper you will need
these http://github.com/rails/irs_process_scripts
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run “#{try_sudo} touch #{File.join(current_path,‘tmp’,‘restart.txt’)}”
end
end
So far i used my local repository and depoyed the application via a copy and not with a checkout from the repository.
Maybe someone had the same problems and could help my with some hints or a solution. I would be appreciative.
Greetings Greg