* inted problems when upgrading to 1.6.0.4
@ 2008-11-25 9:29 Luis Gutierrez
2008-11-25 10:14 ` Johannes Sixt
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Luis Gutierrez @ 2008-11-25 9:29 UTC (permalink / raw)
To: git
Hi All,
At my company we have been using git for the past months, and except for
a few people, everyone is happy with it. Last week, we discovered that
the mac version of git was misbehaving (v1.5.6.4), but upgrading the
client to the latest one (v1.6.0.4) fixed the issue. Fearing consistency
issue between version, I decided to update the version of the central
repository (ie, the place were people can go and synchronize their code)
on a RHEL4 box from 1.5.6.4 to 1.6.0.4.
went to my git directory, pulled, checkout v1.6.0.4, and compiled with
'make --prefix=/usr/loca/ all' and installed with the same comamnd.
xinted dameon was restarted and then all hell broke loose.
All push/pull/clone operations were failing with the dreaded 'fatal: The
remote end hung up unexpectedly'. After a few tests, this is what I found:
- I can clone/pull/push if I do it through ssh (ie, git clone
ssh://server/project)
- I can clone/pull/push if I start git daemon on the command line through
git daemon --syslog --verbose --export-all
--base-path=/vol0/git/projects --verbose --reuseaddr
But the way I had setup git, through xinetd is broken.
This is my current xinetd config:
service git
{
disable = yes
socket_type = stream
wait = no
user = git
type = UNLISTED
protocol = tcp
log_on_failure += USERID
port = 9418
server = /usr/local/bin/git
server_args = daemon --inetd --syslog --verbose --export-all
--base-path=/vol0/git/projects --allow-override=uploadpack
}
And I'm getting the following errors:
> git clone git://romanticism/tutorial tutorial.git
Initialized empty Git repository in /tmp/tutorial.git/.git/
fatal: protocol error: bad line length character
before adding the --allow-override=uploadpack I was getting this:
> git clone git://romanticism/tutorial tutorial.git
Initialized empty Git repository in /tmp/tutorial.git/.git/
fatal: The remote end hung up unexpectedly
Since the error appeared after the upgrade, it seems likely it is either
a but, or something change regarding inte/xinetd, but I can't find any
documentation about changes here.
Any help will be appreciated.
Luis Gutierrez
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: inted problems when upgrading to 1.6.0.4
2008-11-25 9:29 inted problems when upgrading to 1.6.0.4 Luis Gutierrez
@ 2008-11-25 10:14 ` Johannes Sixt
2008-11-25 10:20 ` Arafangion
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Johannes Sixt @ 2008-11-25 10:14 UTC (permalink / raw)
To: Luis Gutierrez; +Cc: git
Luis Gutierrez schrieb:
> At my company we have been using git for the past months, and except for
> a few people, everyone is happy with it. Last week, we discovered that
> the mac version of git was misbehaving (v1.5.6.4), but upgrading the
> client to the latest one (v1.6.0.4) fixed the issue. Fearing consistency
> issue between version, I decided to update the version of the central
> repository (ie, the place were people can go and synchronize their code)
> on a RHEL4 box from 1.5.6.4 to 1.6.0.4.
> went to my git directory, pulled, checkout v1.6.0.4, and compiled with
> 'make --prefix=/usr/loca/ all' and installed with the same comamnd.
It's not necessarily the cause of your problems, but didn't make install
warn you:
!! You have installed git-* commands to new gitexecdir.
!! Old version git-* commands still remain in bindir.
!! Mixing two versions of Git will lead to problems.
!! Please remove old version commands in bindir now.
Did you do as you were told?
-- Hannes
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: inted problems when upgrading to 1.6.0.4
2008-11-25 9:29 inted problems when upgrading to 1.6.0.4 Luis Gutierrez
2008-11-25 10:14 ` Johannes Sixt
@ 2008-11-25 10:20 ` Arafangion
[not found] ` <492BCFA0.5030708@xmos.com>
2008-11-25 10:36 ` Brian Foster
2008-11-25 11:04 ` Johannes Sixt
3 siblings, 1 reply; 8+ messages in thread
From: Arafangion @ 2008-11-25 10:20 UTC (permalink / raw)
To: Luis Gutierrez; +Cc: git
On Tue, 2008-11-25 at 09:29 +0000, Luis Gutierrez wrote:
<snip>
> All push/pull/clone operations were failing with the dreaded 'fatal: The
> remote end hung up unexpectedly'. After a few tests, this is what I found:
>
> - I can clone/pull/push if I do it through ssh (ie, git clone
> ssh://server/project)
> - I can clone/pull/push if I start git daemon on the command line through
> git daemon --syslog --verbose --export-all
> --base-path=/vol0/git/projects --verbose --reuseaddr
>
> But the way I had setup git, through xinetd is broken.
I'm just guessing, as I'm too new to the git world to respond with more
expertise, but I will suggest that perhaps your problem is that your
$PATH is different with the xinitd configuration as contrasted with your
ssh configuration, as the locations of the git binaries could be
different.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: inted problems when upgrading to 1.6.0.4
2008-11-25 9:29 inted problems when upgrading to 1.6.0.4 Luis Gutierrez
2008-11-25 10:14 ` Johannes Sixt
2008-11-25 10:20 ` Arafangion
@ 2008-11-25 10:36 ` Brian Foster
2008-11-25 11:04 ` Johannes Sixt
3 siblings, 0 replies; 8+ messages in thread
From: Brian Foster @ 2008-11-25 10:36 UTC (permalink / raw)
To: Luis Gutierrez; +Cc: git
On Tuesday 25 November 2008 10:29:14 Luis Gutierrez wrote:
>[ ... ]
> This is my current xinetd config:
> service git
> {
> disable = yes
> socket_type = stream
> wait = no
> user = git
> type = UNLISTED
> protocol = tcp
> log_on_failure += USERID
> port = 9418
> server = /usr/local/bin/git
> server_args = daemon --inetd --syslog --verbose --export-all --base-path=/vol0/git/projects --allow-override=uploadpack
> }
In the past I also had a problem when git was installed
in /usr/local/bin and git-daemon was launched from xinetd.
I don't recall the details now, but believe all the obvious
suspects (conflicting git installation, /usr/local/bin not
in PATH, mis-installed/mis-configured git, et al.) seemed Ok.
In any case, I debugged the problem by adding:
env += GIT_TRACE=/tmp/LOG-git-daemon
to the xinetd config. I suggest trying that and seeing
what the logfile contains.
cheers!
-blf-
p.s. In my case, *using the information in the logfile*,
I eventually worked-around it by adding
‘--exec-path=/usr/local/bin’ to the ‘server_args’.
I never did work out exactly what was going wrong (this
was with a self-built git v1.5.5 on CentOS release 5).
--
“How many surrealists does it take to | Brian Foster
change a lightbulb? Three. One calms | somewhere in south of France
the warthog, and two fill the bathtub | Stop E$$o (ExxonMobil)!
with brightly-coloured machine tools.” | http://www.stopesso.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: inted problems when upgrading to 1.6.0.4
2008-11-25 10:54 ` Arafangion
@ 2008-11-25 10:54 ` Luis Gutierrez
2008-11-25 11:14 ` Arafangion
0 siblings, 1 reply; 8+ messages in thread
From: Luis Gutierrez @ 2008-11-25 10:54 UTC (permalink / raw)
To: Arafangion; +Cc: git
Arafangion wrote:
> On Tue, 2008-11-25 at 10:12 +0000, Luis Gutierrez wrote:
>
>> Arafangion wrote:
>>
>>> On Tue, 2008-11-25 at 09:29 +0000, Luis Gutierrez wrote:
>>> <snip>
>>>
>>>
>>>> All push/pull/clone operations were failing with the dreaded 'fatal: The
>>>> remote end hung up unexpectedly'. After a few tests, this is what I found:
>>>>
>>>> - I can clone/pull/push if I do it through ssh (ie, git clone
>>>> ssh://server/project)
>>>> - I can clone/pull/push if I start git daemon on the command line through
>>>> git daemon --syslog --verbose --export-all
>>>> --base-path=/vol0/git/projects --verbose --reuseaddr
>>>>
>>>> But the way I had setup git, through xinetd is broken.
>>>>
>>>>
>>> I'm just guessing, as I'm too new to the git world to respond with more
>>> expertise, but I will suggest that perhaps your problem is that your
>>> $PATH is different with the xinitd configuration as contrasted with your
>>> ssh configuration, as the locations of the git binaries could be
>>> different.
>>>
>>>
>>>
>> I've tried that, they are the same:
>>
>> # which git
>> /usr/local/bin/git
>>
>
> What about the other git-* commands?
>
>
This is what I have now:
ls /usr/local/bin/git*
git git-cvsserver gitk git-receive-pack git-shell
git-upload-archive git-upload-pack
it seems.. a lot less than it used to be, but then again, perhaps this
is why the git-* commands were deprecated?
--
* Luis Gutierrez | * XMOS Semiconductor <http://www.xmos.com>
Venturers House, King Street, Bristol BS1 4PB, UK
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: inted problems when upgrading to 1.6.0.4
[not found] ` <492BCFA0.5030708@xmos.com>
@ 2008-11-25 10:54 ` Arafangion
2008-11-25 10:54 ` Luis Gutierrez
0 siblings, 1 reply; 8+ messages in thread
From: Arafangion @ 2008-11-25 10:54 UTC (permalink / raw)
To: Luis Gutierrez; +Cc: git
On Tue, 2008-11-25 at 10:12 +0000, Luis Gutierrez wrote:
> Arafangion wrote:
> > On Tue, 2008-11-25 at 09:29 +0000, Luis Gutierrez wrote:
> > <snip>
> >
> > > All push/pull/clone operations were failing with the dreaded 'fatal: The
> > > remote end hung up unexpectedly'. After a few tests, this is what I found:
> > >
> > > - I can clone/pull/push if I do it through ssh (ie, git clone
> > > ssh://server/project)
> > > - I can clone/pull/push if I start git daemon on the command line through
> > > git daemon --syslog --verbose --export-all
> > > --base-path=/vol0/git/projects --verbose --reuseaddr
> > >
> > > But the way I had setup git, through xinetd is broken.
> > >
> >
> > I'm just guessing, as I'm too new to the git world to respond with more
> > expertise, but I will suggest that perhaps your problem is that your
> > $PATH is different with the xinitd configuration as contrasted with your
> > ssh configuration, as the locations of the git binaries could be
> > different.
> >
> >
> I've tried that, they are the same:
>
> # which git
> /usr/local/bin/git
What about the other git-* commands?
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: inted problems when upgrading to 1.6.0.4
2008-11-25 9:29 inted problems when upgrading to 1.6.0.4 Luis Gutierrez
` (2 preceding siblings ...)
2008-11-25 10:36 ` Brian Foster
@ 2008-11-25 11:04 ` Johannes Sixt
3 siblings, 0 replies; 8+ messages in thread
From: Johannes Sixt @ 2008-11-25 11:04 UTC (permalink / raw)
To: Luis Gutierrez; +Cc: git
Luis Gutierrez schrieb:
> This is my current xinetd config:
> service git
> {
> disable = yes
Remove this line.
-- Hannes
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: inted problems when upgrading to 1.6.0.4
2008-11-25 10:54 ` Luis Gutierrez
@ 2008-11-25 11:14 ` Arafangion
0 siblings, 0 replies; 8+ messages in thread
From: Arafangion @ 2008-11-25 11:14 UTC (permalink / raw)
To: Luis Gutierrez; +Cc: git
On Tue, 2008-11-25 at 10:54 +0000, Luis Gutierrez wrote:
<snip>
> This is what I have now:
> ls /usr/local/bin/git*
> git git-cvsserver gitk git-receive-pack git-shell
> git-upload-archive git-upload-pack
> it seems.. a lot less than it used to be, but then again, perhaps this
> is why the git-* commands were deprecated?
As Johannes Sixt mentioned, they have been moved from the bindir to the
new gitexecdir.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-11-25 11:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-25 9:29 inted problems when upgrading to 1.6.0.4 Luis Gutierrez
2008-11-25 10:14 ` Johannes Sixt
2008-11-25 10:20 ` Arafangion
[not found] ` <492BCFA0.5030708@xmos.com>
2008-11-25 10:54 ` Arafangion
2008-11-25 10:54 ` Luis Gutierrez
2008-11-25 11:14 ` Arafangion
2008-11-25 10:36 ` Brian Foster
2008-11-25 11:04 ` Johannes Sixt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).