repo init fails with error "fatal: The remote end hung up unexpectedly"

2,072 views
Skip to first unread message

Anndy

unread,
Oct 16, 2009, 5:03:49 PM10/16/09
to Repo and Gerrit Discussion
Hi,

i am trying to enlist the android source using the instructions given
at http://source.android.com


i tried bunch of solutions posted on this forum.
1. make and entry in /etc/hosts to map with android2.git.kernel.org
2. remove .repo file and download it again
3. try running repo init multiple times.

none of these options worked for me.

here is the console output for the command repo init -u
git://android.git.kernel.org/platform/manifest.git
Getting repo ...
from git://android.git.kernel.org/tools/repo.git
remote: Counting objects: 945, done.
remote: Compressing objects: 100% (372/372), done.
remote: Total 945 (delta 592), reused 894 (delta 553)
Receiving objects: 100% (945/945), 282.14 KiB | 11 KiB/s, done.
Resolving deltas: 100% (592/592), done.
From git://android.git.kernel.org/tools/repo
* [new branch] master -> origin/master
* [new branch] stable -> origin/stable
* [new tag] v1.6.8.7 -> v1.6.8.7
From git://android.git.kernel.org/tools/repo
* [new tag] v1.0 -> v1.0
* [new tag] v1.0.1 -> v1.0.1
* [new tag] v1.0.2 -> v1.0.2
* [new tag] v1.0.3 -> v1.0.3
* [new tag] v1.0.4 -> v1.0.4
* [new tag] v1.0.5 -> v1.0.5
* [new tag] v1.0.6 -> v1.0.6
* [new tag] v1.0.7 -> v1.0.7
* [new tag] v1.0.8 -> v1.0.8
* [new tag] v1.0.9 -> v1.0.9
* [new tag] v1.1 -> v1.1
* [new tag] v1.2 -> v1.2
* [new tag] v1.3 -> v1.3
* [new tag] v1.3.1 -> v1.3.1
* [new tag] v1.3.2 -> v1.3.2
* [new tag] v1.4 -> v1.4
* [new tag] v1.4.1 -> v1.4.1
* [new tag] v1.4.2 -> v1.4.2
* [new tag] v1.4.3 -> v1.4.3
* [new tag] v1.4.4 -> v1.4.4
* [new tag] v1.5 -> v1.5
* [new tag] v1.5.1 -> v1.5.1
* [new tag] v1.6 -> v1.6
* [new tag] v1.6.1 -> v1.6.1
* [new tag] v1.6.2 -> v1.6.2
* [new tag] v1.6.3 -> v1.6.3
* [new tag] v1.6.4 -> v1.6.4
* [new tag] v1.6.5 -> v1.6.5
* [new tag] v1.6.6 -> v1.6.6
* [new tag] v1.6.7 -> v1.6.7
* [new tag] v1.6.7.1 -> v1.6.7.1
* [new tag] v1.6.7.2 -> v1.6.7.2
* [new tag] v1.6.7.3 -> v1.6.7.3
* [new tag] v1.6.7.4 -> v1.6.7.4
* [new tag] v1.6.7.5 -> v1.6.7.5
* [new tag] v1.6.8 -> v1.6.8
* [new tag] v1.6.8.1 -> v1.6.8.1
* [new tag] v1.6.8.2 -> v1.6.8.2
* [new tag] v1.6.8.3 -> v1.6.8.3
* [new tag] v1.6.8.4 -> v1.6.8.4
* [new tag] v1.6.8.5 -> v1.6.8.5
* [new tag] v1.6.8.6 -> v1.6.8.6
Getting manifest ...
from git://android.git.kernel.org/platform/manifest.git
fatal: The remote end hung up unexpectedly
fatal: cannot obtain manifest git://android.git.kernel.org/platform/manifest.git

i tried running the same command without deleting the .repo directory
created by the earlier command.

repo init -u git://android.git.kernel.org/platform/manifest.git
Traceback (most recent call last):
File "/home/nitin/android/.repo/repo/main.py", line 235, in <module>
_Main(sys.argv[1:])
File "/home/nitin/android/.repo/repo/main.py", line 217, in _Main
repo._Run(argv)
File "/home/nitin/android/.repo/repo/main.py", line 123, in _Run
cmd.Execute(copts, cargs)
File "/home/nitin/android/.repo/repo/subcmds/init.py", line 218, in
Execute
self._SyncManifest(opt)
File "/home/nitin/android/.repo/repo/subcmds/init.py", line 110, in
_SyncManifest
m.PreSync()
File "/home/nitin/android/.repo/repo/project.py", line 1440, in
PreSync
cb = self.CurrentBranch
File "/home/nitin/android/.repo/repo/project.py", line 271, in
CurrentBranch
b = self.work_git.GetHead()
File "/home/nitin/android/.repo/repo/project.py", line 1226, in
GetHead
fd = open(path, 'rb')
IOError: [Errno 2] No such file or directory: '/home/nitin/
android/.repo/manifests/.git/HEAD'

Shawn Pearce

unread,
Oct 16, 2009, 6:43:07 PM10/16/09
to repo-d...@googlegroups.com
On Fri, Oct 16, 2009 at 14:03, Anndy <see....@gmail.com> wrote:
> Getting manifest ...
>   from git://android.git.kernel.org/platform/manifest.git
> fatal: The remote end hung up unexpectedly
> fatal: cannot obtain manifest git://android.git.kernel.org/platform/manifest.git

Server load perhaps? The manifest is really small. I just cloned it,
it came down faster than I could blink. Try again?

Anndy

unread,
Oct 16, 2009, 8:47:23 PM10/16/09
to Repo and Gerrit Discussion
i am trying from last 3 days, but unable to get the the source. any
other solution apart from what i am doing?

On Oct 17, 3:43 am, Shawn Pearce <s...@google.com> wrote:

Anndy

unread,
Oct 20, 2009, 2:16:40 PM10/20/09
to Repo and Gerrit Discussion
i tried running repo init with --trace option. looks like it is
looking for a config file .gitconfig which is not there.

it is failing after following step:

* [new tag] v1.6.8.5 -> v1.6.8.5
* [new tag] v1.6.8.6 -> v1.6.8.6
: git --version 1>|
Getting manifest ...
from git://android.git.kernel.org/platform/manifest.git
: export GIT_DIR=<folder>/android/.repo/manifests.git
: git init 1>| 2>|
: git config --file <folder>/android/.repo/manifests.git/config --null
--list 1>| 2>|
: git config --file <folder>/.gitconfig --null --list 1>| 2>|
: git config --file <folder>/android/.repo/manifests.git/config --
unset-all core.bare 1>| 2>|
: git config --file <folder>/android/.repo/manifests.git/config --
replace-all remote.origin.url git://android.git.kernel.org/platform/manifest.git
1>| 2>|
: git config --file <folder>/android/.repo/manifests.git/config --
replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
1>| 2>|
: git fetch origin
fatal: The remote end hung up unexpectedly
fatal: cannot obtain manifest git://android.git.kernel.org/platform/manifest.git

On Oct 17, 5:47 am, Anndy <see.n...@gmail.com> wrote:
> i am trying from last 3 days, but unable to get the the source. any
> other solution apart from what i am doing?
>
> On Oct 17, 3:43 am, Shawn Pearce <s...@google.com> wrote:
>

Shawn Pearce

unread,
Oct 22, 2009, 3:54:17 PM10/22/09
to repo-d...@googlegroups.com

Try "touch ~/.gitconfig" ?

On Oct 20, 2009 2:16 PM, "Anndy" <see....@gmail.com> wrote:


i tried running repo init with --trace option. looks like it is
looking for a config file .gitconfig which is not there.

it is failing after following step:

* [new tag] v1.6.8.5 -> v1.6.8.5 * [new tag] v1.6.8.6 -> v1.6.8.6

: git --version 1>|

Getting manifest ... from git://android.git.kernel.org/platform/manifest.git

: export GIT_DIR=<folder>/android/.repo/manifests.git
: git init 1>| 2>|
: git config --file <folder>/android/.repo/manifests.git/config --null
--list 1>| 2>|
: git config --file <folder>/.gitconfig --null --list 1>| 2>|
: git config --file <folder>/android/.repo/manifests.git/config --
unset-all core.bare 1>| 2>|
: git config --file <folder>/android/.repo/manifests.git/config --
replace-all remote.origin.url git://android.git.kernel.org/platform/manifest.git
1>| 2>|
: git config --file <folder>/android/.repo/manifests.git/config --
replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
1>| 2>|
: git fetch origin

fatal: The remote end hung up unexpectedly fatal: cannot obtain manifest git://android.git.kernel.or...

On Oct 17, 5:47 am, Anndy <see.n...@gmail.com> wrote: > i am trying from last 3 days, but unable to ...

Anndy

unread,
Oct 24, 2009, 1:44:58 PM10/24/09
to Repo and Gerrit Discussion
no luck :(

is there any pre config required for git to work with any git
repository?

i tried with pidgin git repository also, there also i got the same
error.

On Oct 23, 12:54 am, Shawn Pearce <s...@google.com> wrote:
> Try "touch ~/.gitconfig" ?
>
Message has been deleted
Message has been deleted

Adrian May

unread,
Nov 4, 2009, 9:26:39 PM11/4/09
to Repo and Gerrit Discussion
I also get this. Most of the time repo init is lucky but repo sync
takes so long it has no chance of completion. It seems to be the same
problem though: repo is intolerant of the server being loaded. Here's
the bug report I'm now posting for the third time, after being bounced
from one bug tracker to another.


Affected Version:
repo version v1.6.8.7
(from git://android.git.kernel.org/tools/repo.git)
git version 1.5.6.3
Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
[GCC 4.3.2]

Environment: Ubuntu

What steps will reproduce the problem?
These steps: http://source.android.com/download

What is the expected output? What do you see instead?
repo sync just dies with various errors. Sometimes repo init fails.
This
seems to be intermittent but very common. For instance:
Fetching projects: 7% (11/143) fatal: The remote end hung up
unexpectedly
error: Cannot fetch platform/external/astl
Fetching projects: 37% (53/143) fatal: Unable to look up
android.git.kernel.org (port 9418) (Name or service not known)
error: Cannot fetch platform/external/netcat
fatal: Unable to look up android.git.kernel.org (port 9418) (Name or
service not known)
error: Cannot fetch manifests
Fetching projects: 9% (13/143) fatal: protocol error: bad line
length
character
error: Cannot fetch platform/external/blktrace
Fetching projects: 5% (8/143) fatal: Unable to look up
android.git.kernel.org (port 9418) (Name or service not known)
error: Cannot fetch platform/development
Fetching projects: 28% (41/143) fatal: The remote end hung up
unexpectedly
error: Cannot fetch platform/external/ipsec-tools
Fetching projects: 8% (12/143) fatal: Unable to look up
android.git.kernel.org (port 9418) (Name or service not known)
error: Cannot fetch platform/external/bison
Fetching projects: 3% (5/143) fatal: Unable to look up
android.git.kernel.org (port 9418) (Name or service not known)
error: Cannot fetch platform/bootable/recovery
Fetching projects: 7% (11/143) fatal: The remote end hung up
unexpectedly
error: Cannot fetch platform/external/astl
fatal: Unable to look up android.git.kernel.org (port 9418) (Name or
service not known)
error: Cannot fetch manifests
Fetching projects: 3% (5/143) fatal: The remote end hung up
unexpectedly
error: Cannot fetch platform/bootable/recovery
Fetching projects: 5% (8/143) fatal: Unable to look up
android.git.kernel.org (port 9418) (Name or service not known)
error: Cannot fetch platform/development
Fetching projects: 11% (16/143) fatal: The remote end hung up
unexpectedly
error: Cannot fetch platform/external/clearsilver
Fetching projects: 11% (16/143)

I'm not the only one suffering this. Sometimes I can't even ping
android.git.kernel.org and the next second I can. Everything else in
my
network works fine. Somebody else reported this here:
http://code.google.com/p/android/issues/detail?id=4488

It looks like the server is flaking out under load but repo is not
designed
to handle this. It seems to quit for the slightest reasons and start
from
scratch when you restart. With so much code to pull, you don't stand
much
chance of getting to the end. I've been running repo in a loop all day
and
still got very little code down.

Why do we need repo anyway? I know git glaringly omits any repository
splitting, merging or partial pulling, but I believe it does let
repositories point to and depend on each other. So the "Android"
repository
could have just pointed to all the pieces. As for code reviewing,
isn't
that what Linus was doing all day when he decided he needed git? I
just
can't get it through my head that repo got so fat just on the
inadequacies
of git. Too much complexity.
Message has been deleted

Adrian May

unread,
Nov 5, 2009, 12:56:43 AM11/5/09
to Repo and Gerrit Discussion
One more thing: I tried this on both my office and home machines.
These are almost identical ubuntu boxes. The office machine was fine,
but the problem is extreme on my home machine. The home machine's
internet connection is much faster and more reliable than our flaky,
paranoid office network.

The only difference was that I installed the PGP key before calling
repo init at home, but did it in the prescribed order at work. Sounds
like a long shot, but maybe that's it. I prefer to think its because
the server is bombed out on weekends and relatively quiet during the
week.
Reply all
Reply to author
Forward
0 new messages