Hi.
I've done "cap deploy:setup" and "cap deploy:check" and both had
finished without errors.
However I've got an error "Host key verification failed." while
"deploy:cold".
I'm trying to deploy from my git repository "/home/git/rails_app" to
rails app directory "/home/dep_user/public_html/rails_app".
Of course I can connect to remote server both user "git" and
"dep_user" by SSH.
Here is my terminal log.
Macbook $ cap deploy:cold
* executing `deploy:cold'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: "git ls-remote
ssh://[email protected]:30000/home/git/rails_app
HEAD"
* executing "git clone -q ssh://[email protected]:30000/home/git/rails_app
/home/dep_user/public_html/rails_app/releases/20101119083404 && cd /
home/dep_user/public_html/rails_app/releases/20101119083404 && git
checkout -q -b deploy 3d7492977564e24ce99d0648c03b9232949c7f88 && rm -
Rf /home/dep_user/public_html/rails_app/releases/20101119083404/.git
&& (echo 3d7492977564e24ce99d0648c03b9232949c7f88 > /home/dep_user/
public_html/rails_app/releases/20101119083404/REVISION)"
servers: ["202.111.1.22"]
[202.111.1.22] executing command
** [202.111.1.22 :: err] Host key verification failed.
** [202.111.1.22 :: err] fatal: The remote end hung up unexpectedly
command finished
*** [deploy:update_code] rolling back
* executing "rm -rf /home/dep_user/public_html/rails_app/releases/
20101119083404; true"
servers: ["202.111.1.22"]
[202.111.1.22] executing command
command finished
failed: "sh -c 'git clone -q ssh://[email protected]:30000/home/git/rails_app
/home/dep_user/public_html/rails_app/releases/20101119083404 && cd /
home/dep_user/public_html/rails_app/releases/20101119083404 && git
checkout -q -b deploy 3d7492977564e24ce99d0648c03b9232949c7f88 && rm -
Rf /home/dep_user/public_html/rails_app/releases/20101119083404/.git
&& (echo 3d7492977564e24ce99d0648c03b9232949c7f88 > /home/dep_user/
public_html/rails_app/releases/20101119083404/REVISION)'" on
202.111.1.22
Here is deploy.rb.
ssh_options[:keys] = %w(/home/git/.ssh/authorized_keys)
ssh_options[:port] = 30000
set :application_name, "rails_app"
set :application, "myapps.com"
set :repository, "ssh://[email protected]:30000/home/git/rails_app"
set :scm, :git
set :deploy_via,:export
set :deploy_to, "/home/dep_user/public_html/rails_app"
set :use_sudo, false
role :app, "202.111.1.22"
role :web, "202.111.1.22"
role :db, "202.111.1.22", :primary => true
set :user, "dep_user"
set :runner,"dep_user"
# 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
I guess it has something to do with set :user, "dep_user" and
set :runner,"dep_user", because error message changed after modified
them but I have no idea.
Could someone help me?
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en