Lee:

OK, I uninstalled git on my Ubuntu box, then reinstalled it (1.7.1).
I'm able to successfully issue the command:
  /usr/bin/git ls-remote http://[email protected]/hikari17/molex_app.git
master.

(The result is a hash followed by refs/heads/master, so git seems to
work there.)

I can also ssh into my Ubuntu box from the windows machine that I want
to deploy from:

   ssh [email protected]

gets me to the command line on my deploy server, and

   /usr/bin/git ls-remote http://[email protected]/hikari17/molex_app.git
master

is successful too, producing the same refs/heads/master result as for
the command issued at the command line on the server itself.

So I can ssh into the server directly. But capistrano still fails to.
As a review, here's the key line of the error message I get:

   *** [deploy:update_code] rolling back
     * executing "rm -rf /home/dean/rails_projects/releases/
20110314162408; true"
       servers: ["10.24.5.50"]
       [10.24.5.50] executing command
       command finished
   c:/RubyonRails/Ruby187/lib/ruby/gems/1.8/gems/capistrano-2.5.19/lib/
capistrano/r
   ecipes/deploy.rb:98:in ``': No such file or directory - /usr/bin/
git ls-remote h
   ttp://[email protected]/hikari17/molex_app.git master
(Errno::ENOENT)

Here's the output when I ssh directly into the deploy server:

   $ ssh [email protected]
   [email protected]'s password:
   Linux dgwjasonfried 2.6.35-22-server #33-Ubuntu SMP Sun Sep 19
20:48:58 UTC 2010
    x86_64 GNU/Linux
   Ubuntu 10.10

   Welcome to the Ubuntu Server!
    * Documentation:  http://www.ubuntu.com/server/doc

   *** System restart required ***
   Last login: Mon Mar 14 13:53:40 2011 from dgwhelpdesk02.molex.com

And here's the output when I issue the ls-remote command on the deploy
server after I've successfully ssh'd into it:

   dean@dgwjasonfried:~$ /usr/bin/git ls-remote 
http://[email protected]/hikari1
   7/molex_app.git master
   Password:
   48b813a4a42eebf4e5f5aa384c4a2ded19bfb1d8        refs/heads/master

Thanks for your help!

--Dean


On Mar 11, 5:27 pm, Lee Hambley <[email protected]> wrote:
> > P.S. "nerf"? As in, obscure crucial details as a side-effect of trying to
> > anonymize directory/account info? :)
>
> Absolutely… it looks Dean like your git installation is broken, git commands
> come in two parts, they historyicaly were called things like
> `git-ls-remote`, and they had some changes to make it `git ls-remote`, as a
> side effect the `git` command often has it's own $PATH in which to look for
> it's command counterparts (`git-ls-remote` in this case).
>
> Check how it's installed, and try sshing into the server directly and
> running a few Git commands, see if you can't work out if it's working or
> not.
>
> - Lee

-- 
* 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

Reply via email to