Hey, Looking at the output:
> ** [domain.com :: err] Permission denied, please try again. > ** [domain.com :: err] Permission denied, please try again. > ** [domain.com :: err] Received disconnect from 99.99.99.99: 2: Too > many authentication failures for git > ** [domain.com :: err] fatal: The remote end hung up unexpectedly > command finished You'll notice it is the git process running on the remote host that is complaining. I suspect you do not have your public keys configured so that SSH works (passwordlessly) from domain.com to 99.99.99.99. Perhaps on your old machine you had a local ssh-agent being forwarded, and you havent' configured that for your fresh machine? - Jamis On 2/25/09 4:23 PM, partydrone wrote: > I just moved to a fresh machine and am experiencing deploy problems. > Here are my configurations: > > Laptop: > capistrano 2.5.5 > rails 2.1.0 > rubygems 1.3.1 > git 1.6.1.3 > > Host server: > rails 2.1.0 > rubygems 1.1.1 > git 1.5.4.1 > > Git server: > git 1.6.0.1 > > I downloaded the code for my app from my git repository. Here is my > config/deploy.rb file: > > ########## > > require 'rt_capistrano' # Custom gem for working in Media Temple (gs) > environment > > set :site, "99999" > set :application, "www" > set :webpath, "domain.com" > set :domain, "domain.com" > set :user, "serveradmin%domain.com" > set :password, "password" > > # repository elsewhere > set :scm, :git > set :repository, "[email protected]:Repositories/my_app.git" > set :ssh_options, { :forward_agent => false } > set :branch, "master" > set :deploy_via, :remote_cache > > # these shouldn't be changed > role :web, "#{domain}" > role :app, "#{domain}" > role :db, "#{domain}", :primary => true > set :deploy_to, "/home/#{site}/containers/rails/#{application}" > > namespace :deploy do > desc "Creates the database configuration file in the application's > config directory." > task :update_config, :roles => :app do > database_yml = <<-CMD > production: > adapter: mysql > database: db99999_my_app_production > username: db99999 > password: password > host: internal-db.s99999.gridserver.com > CMD > put database_yml, "#{release_path}/config/database.yml" > end > after "deploy:update_code", "deploy:update_config" > end > > ########## > > When I run "cap deploy" I get the following output: > > ########## > > fiona:my_app aporter$ cap deploy > * executing `deploy' > * executing `deploy:update' > ** transaction: start > * executing `deploy:update_code' > updating the cached checkout on all servers > executing locally: "git ls-remote [email protected]:Repositories/ > my_app.git master" > * executing "if [ -d /home/99999/containers/rails/www/shared/cached- > copy ]; then cd /home/99999/containers/rails/www/shared/cached-copy && > git fetch -q origin && git reset -q --hard > 6932773a80d6a5a72ad42363ecbd6b8815e52483; else git clone -q > [email protected]:Repositories/my_app.git /home/99999/containers/ > rails/www/shared/cached-copy && cd /home/99999/containers/rails/www/ > shared/cached-copy && git checkout -q -b deploy > 6932773a80d6a5a72ad42363ecbd6b8815e52483; fi" > servers: ["domain.com"] > [domain.com] executing command > ** [domain.com :: err] Permission denied, please try again. > ** [domain.com :: err] Permission denied, please try again. > ** [domain.com :: err] Received disconnect from 99.99.99.99: 2: Too > many authentication failures for git > ** [domain.com :: err] fatal: The remote end hung up unexpectedly > command finished > *** [deploy:update_code] rolling back > * executing "rm -rf /home/99999/containers/rails/www/releases/ > 20090225231003; true" > servers: ["domain.com"] > [domain.com] executing command > command finished > failed: "sh -c \"if [ -d /home/99999/containers/rails/www/shared/ > cached-copy ]; then cd /home/99999/containers/rails/www/shared/cached- > copy && git fetch -q origin && git reset -q --hard > 6932773a80d6a5a72ad42363ecbd6b8815e52483; else git clone -q > [email protected]:Repositories/my_app.git /home/99999/containers/ > rails/www/shared/cached-copy && cd /home/99999/containers/rails/www/ > shared/cached-copy && git checkout -q -b deploy > 6932773a80d6a5a72ad42363ecbd6b8815e52483; fi\"" on domain.com > fiona:my_app aporter$ > > ########## > > I have created RSA keys and copied my public keys to both the hosting > server and to the Git server. From my laptop, I can ssh into the > hosting server successfully, and I can ssh into the Git server > successfully. Also, I can successfully ssh from the hosting server to > the Git server successfully. > > Has anyone overcome this problem or does anyone have any input on my > configuration that might help resolve this issue? Previous posts on > this topic have not been helpful. > > Thanks. > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
