Capistrano Git SSH problem

98 views
Skip to first unread message

news.anand11

unread,
Jun 26, 2013, 3:24:42 AM6/26/13
to RubyOnRails
Hi, I am using Capistrano for deployment. And bitnami in my ec2 linux instance. I have configured Capistrano for deployment and deploy:check says all is fine. But I am facing problem while doing deploy. Here is the full stack

$ cap deploy:check
    triggering load callbacks
  * 2013-06-26 08:38:11 executing `staging'
    triggering start callbacks for `deploy:check'
  * 2013-06-26 08:38:11 executing `multistage:ensure'
  * 2013-06-26 08:38:11 executing `deploy:check'
  * executing "test -d /var/www/app/releases"
    servers: ["54.227.250.222"]
    [54.227.250.222] executing command
    command finished in 705ms
  * executing "test -w /var/www/app"
    servers: ["54.227.250.222"]
    [54.227.250.222] executing command
    command finished in 710ms
  * executing "test -w /var/www/app/releases"
    servers: ["54.227.250.222"]
    [54.227.250.222] executing command
    command finished in 697ms
  * executing "which git"
    servers: ["54.227.250.222"]
    [54.227.250.222] executing command
    command finished in 702ms
You appear to have all necessary dependencies installed

$ cap staging deploy
    triggering load callbacks
  * 2013-06-26 08:38:49 executing `staging'
    triggering start callbacks for `deploy'
  * 2013-06-26 08:38:49 executing `multistage:ensure'
  * 2013-06-26 08:38:49 executing `deploy'
    triggering before callbacks for `deploy'
  * 2013-06-26 08:38:49 executing `check_production'
  * 2013-06-26 08:38:49 executing `deploy:update'
 ** transaction: start
  * 2013-06-26 08:38:49 executing `deploy:update_code'
    executing locally: "git ls-remote g...@github.com:abc/abc.git master"
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
*** [deploy:update_code] rolling back
  * executing "rm -rf /var/www/app/releases/20130626030853; true"
    servers: ["54.227.250.222"]
    [54.227.250.222] executing command
    command finished in 738ms
Command git ls-remote g...@github.com:abc/abc.git master returned status code pid 19398 exit 128

I have checked and get to know that it is git configuration problem. I want to confirm that it is not capsitrano problem ? Do I really need to do git ssh configuration in my ec2 instance ?


Thanks.

aman mangal

unread,
Jun 26, 2013, 3:30:12 AM6/26/13
to rubyonra...@googlegroups.com
Hi,

You can use your local keys too! have a look here-
https://help.github.com/articles/deploying-with-capistrano

Aman Mangal
3rd year Undergraduate
Department of Computer Science & Engineering
IIT Bombay
www.cse.iitb.ac.in/~amanmangal


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL9wd7cQh1Gm6B2r5qSA01oxbHX375wcNnrt%2ByUPGOt77QeCkg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages