These forums are read-only!
Gitosis and Capistrano 2.5
  • I'm having trouble getting capistrano setup. The issue is that my repository uses git and is managed by Gitosis. I followed the instructions over at: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way to get gitosis setup. The git user has a disabled password and uses a minimal shell.. not sure if that has anything to do with it.

    The line in my deploy.rb is:
    set :repository, "git@example.com:foo.git"

    I'm asked for my passphrase twice. The first time it's ok and the second time I get an error:

    [example.com] executing command
    ** [example.com :: err] Permission denied (publickey).
    ** [example.com :: err] fatal: The remote end hung up unexpectedly
    ** [example.com :: err] fetch-pack from 'git@example.com:foo.git' failed.

    I can manually clone the repo by entering my passphrase so I'm a bit stumped as to the problem. Can anyone help me?
  • I am having the exact same problem.

    To add some information to this, I have just tried adding the server to gitosis.conf file and I still get this error as well.

    Anyone know what we are doing wrong?
  • I'm on Linux and I had the same problem on Github. I fixed with this suggestion...

    1. `chmod 600 .pub’ after creation.
    2. `ssh-add ’ in my shell.

    Edit: I believe this is also relevant for Mac.
  • Based on the info I found on this page:

    http://blog.theedgecase.com/2008/7/15/easier-capistrano-deployments-from-github

    I added the following to my deploy.rb

    @
    set :ssh_options, {:forward_agent => true}
    on :start do
    `ssh-add`
    end
    @

    At least this got me pass the above problem (only to find another problem). Boy! Setting up a rails applications is difficult to do.
    :)
  • So you are thinking about having your wedding during the winter?
    href="http://www.rs2guru.com/">unique wedding invitations

    If you want a winter wedding, there a few things that you going to need to account for.
    href="http://www.vponsale.com/">wedding dresses

    With the right planning, winter weddings can be just as beautiful as spring weddings.
    href="http://www.vponsale.com/">wedding gowns

    In my opinion, they can be more so.bridesmaid

    dresses

    However, with the wrong planning a winter wedding can be ten times more disastrous than the worst

    of springtime weddings. cheap wedding invitations
    Your wedding could be a winter wonderland or if you are not careful, a winter wasteland.