repo init fatal: unable to connect a socket (network is unreachable)

1,714 views
Skip to first unread message

JiSook Kang

unread,
Aug 18, 2011, 9:01:37 PM8/18/11
to Repo and Gerrit Discussion
Hi all,

I'm going through the setup of repo mirror using gitosis's user
account 'git'.
I'm trying downloading the android source for codeaurora using gitosis
admin account which named 'git'.

when I run the command:

<code>$ /home/git/repositories/android$ sudo -H -u git repo init -u
git://codeaurora.org/platform/manifest.git -b gingerbread -m
M8960AAAAA100530.xml --mirror</code>

I get this:

<code>dpi@DELLPB23U:

Getting repo ...
from git://android.git.kernel.org/tools/repo.git
android.git.kernel.org[0: 149.20.20.141]: errno=Connection timed out
android.git.kernel.org[0: 199.6.1.173]: errno=Connection timed out
android.git.kernel.org[0: 130.239.17.13]: errno=Connection timed out
android.git.kernel.org[0: 149.20.4.77]: errno=Connection timed out
android.git.kernel.org[0: 2001:6b0:e:4017:1972:112:1:0]: errno=Network
is unreachable
android.git.kernel.org[0: 2001:4f8:1:10:1972:112:1:0]: errno=Network
is unreachable
android.git.kernel.org[0: 2001:4f8:8:10:1972:112:1:0]: errno=Network
is unreachable
android.git.kernel.org[0: 2001:500:60:10:1972:112:1:0]: errno=Network
is unreachable
fatal: unable to connect a socket (Network is unreachable)

fatal: unable to connect a socket (Network is unreachable)
</code>

This problem is being considered for firewall.
So I installed proxy. But it didn't resolved.

can anyone point me in the right direction to get this fixed.
Thanks in advanced

Magnus Bäck

unread,
Aug 19, 2011, 2:26:18 AM8/19/11
to Repo and Gerrit Discussion
On Friday, August 19, 2011 at 03:01 CEST,
JiSook Kang <js4u...@samsung.com> wrote:

> I'm going through the setup of repo mirror using gitosis's user
> account 'git'.
> I'm trying downloading the android source for codeaurora using gitosis
> admin account which named 'git'.
>
> when I run the command:
>
> <code>$ /home/git/repositories/android$ sudo -H -u git repo init -u
> git://codeaurora.org/platform/manifest.git -b gingerbread -m
> M8960AAAAA100530.xml --mirror</code>
>
> I get this:

[...]

> fatal: unable to connect a socket (Network is unreachable)
> </code>
>
> This problem is being considered for firewall.
> So I installed proxy. But it didn't resolved.
>
> can anyone point me in the right direction to get this fixed.

Either talk to your local IT department about making it possible for
you to access port 9418 at android.git.kernel.org and codeaurora.org,
or explore the possibilities of using other transport protocols like
HTTP (which your firewall or proxy is likely to accept). I know for sure
that review.source.android.com (and maybe also android.git.kernel.org)
provides HTTP access but I don't know about codeaurora.org (I believe
the list has a couple of readers who know).

If you can't use the git protocol and if all repositories provide HTTP
access you need to use a couple of insteadOf blocks in your .gitconfig
to rewrite the git:// URL in the manifest to something that'll work for
you. It could look like this:

[url "https://review.source.android.com//p/"]
insteadOf = git://android.git.kernel.org/

--
Magnus Bäck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson

Nasser Grainawi

unread,
Aug 19, 2011, 10:25:29 AM8/19/11
to Magnus Bäck, Repo and Gerrit Discussion

AFAIK, we don't support HTTP access on codeaurora.org. You'll need to get 9418 unblocked by your IT group.

Nasser

>
> If you can't use the git protocol and if all repositories provide HTTP
> access you need to use a couple of insteadOf blocks in your .gitconfig
> to rewrite the git:// URL in the manifest to something that'll work for
> you. It could look like this:
>
> [url "https://review.source.android.com//p/"]
> insteadOf = git://android.git.kernel.org/
>
> --
> Magnus Bäck Opinions are my own and do not necessarily
> SW Configuration Manager represent the ones of my employer, etc.
> Sony Ericsson
>

> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en

--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum

Reply all
Reply to author
Forward
0 new messages