Repo sync fail to sync the code

2,831 views
Skip to first unread message

suganesh

unread,
Nov 22, 2011, 8:01:32 AM11/22/11
to Repo and Gerrit Discussion
Hi All,

I am using following command to sync 'android-4.0.1_r1' branch from
source.android.com site.


1)repo init -u https://android.googlesource.com/platform/manifest -b
android-4.0.1_r1 --mirror
2) repo sync

In some certain stage i'm getting following error also it fails to
sync the code.

ERROR:--


Initializing project platform/abi/cpp ...
fatal: '../platform/abi/cpp.git' does not appear to be a git
repository
fatal: The remote end hung up unexpectedly
error: Cannot fetch platform/abi/cpp


Seems to be cpp.git repo is not available on google server. please any
give me some alternative solution to sync this code base.

-Suganesh V

Magnus Bäck

unread,
Nov 22, 2011, 8:18:02 AM11/22/11
to Repo and Gerrit Discussion
On Tuesday, November 22, 2011 at 14:01 CET,
suganesh <sugn...@gmail.com> wrote:

You need to upgrade your version of the repo script. Please review the
source code download instructions again. Pay special attention to this
part:

$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo >
~/bin/repo
$ chmod a+x ~/bin/repo

http://source.android.com/source/downloading.html

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

suganesh

unread,
Nov 23, 2011, 12:16:06 AM11/23/11
to Repo and Gerrit Discussion
Thanks for your suggestion Magnus.
Now i am struck up with upgraded repo script error.

gitz01> repo init -u https://android.googlesource.com/platform/manifest
-b android-4.0.1_r1
Traceback (most recent call last):
File "/home/suganesh/bin/repo", line 685, in ?
main(sys.argv[1:])
File "/home/suganesh/bin/repo", line 652, in main
_Init(args)
File "/home/suganesh/bin/repo", line 192, in _Init
_Clone(url, dst, opt.quiet)
File "/home/suganesh/bin/repo", line 431, in _Clone
if _DownloadBundle(url, local, quiet):
File "/home/suganesh/bin/repo", line 370, in _DownloadBundle
r = urllib2.urlopen(url)
File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
File "/usr/lib/python2.4/urllib2.py", line 573, in <lambda>
lambda r, proxy=url, type=type, meth=self.proxy_open: \
File "/usr/lib/python2.4/urllib2.py", line 597, in proxy_open
return self.parent.open(req)
File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
File "/usr/lib/python2.4/urllib2.py", line 1032, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.4/urllib2.py", line 1004, in do_open
r = h.getresponse()
File "/usr/lib/python2.4/httplib.py", line 872, in getresponse
response.begin()
File "/usr/lib/python2.4/httplib.py", line 336, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.4/httplib.py", line 300, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine


On Nov 22, 6:18 pm, Magnus Bäck <magnus.b...@sonyericsson.com> wrote:
> On Tuesday, November 22, 2011 at 14:01 CET,

>      suganesh <sugnes...@gmail.com> wrote:
>
>
>
> > I am using following command to sync 'android-4.0.1_r1' branch from
> > source.android.com site.
>
> > 1)repo init -uhttps://android.googlesource.com/platform/manifest-b
> > android-4.0.1_r1 --mirror
> > 2) repo sync
>
> > In some certain stage i'm getting following error also it fails to
> > sync the code.
>
> > ERROR:--
>
> > Initializing project platform/abi/cpp ...
> > fatal: '../platform/abi/cpp.git' does not appear to be a git
> > repository
> > fatal: The remote end hung up unexpectedly
> > error: Cannot fetch platform/abi/cpp
>
> > Seems to be cpp.git repo is not available on google server. please any
> > give me some alternative solution to sync this code base.
>
> You need to upgrade your version of the repo script. Please review the
> source code download instructions again. Pay special attention to this
> part:
>

> $ curlhttps://dl-ssl.google.com/dl/googlesource/git-repo/repo>

Shawn Pearce

unread,
Nov 23, 2011, 2:56:02 PM11/23/11
to suganesh, Repo and Gerrit Discussion
On Tue, Nov 22, 2011 at 21:16, suganesh <sugn...@gmail.com> wrote:
> Thanks for your suggestion Magnus.
>  Now i am struck up with upgraded repo script error.
>
> gitz01> repo init -u https://android.googlesource.com/platform/manifest
> -b android-4.0.1_r1
> Traceback (most recent call last):
...
>    r = urllib2.urlopen(url)
...

>  File "/usr/lib/python2.4/httplib.py", line 300, in _read_status
>    raise BadStatusLine(line)
> httplib.BadStatusLine

Do you need to use an HTTP proxy server to reach external sites? This
error is because
https://android.googlesource.com/tools/repo/clone.bundle returned an
invalid HTTP response that the Python library cannot understand. I
doubt the problem is with the android.googlesource.com servers, which
makes me think there is some sort of proxy in the way that is blocking
or mangling the reply, making it impossible for Python to read.

suganesh

unread,
Nov 24, 2011, 6:03:42 AM11/24/11
to Repo and Gerrit Discussion
Since my server is behind the proxy , it fails to sync the code.

I had done two things , upgraded my repo version and removed that
culprit proxy from my sever.

Now i could be able to sync ICE code base without any hamper.

Thanks Shawn .

-Suganesh V
System Engineer
Sasken Communication Technologies.

On Nov 24, 12:56 am, Shawn Pearce <s...@google.com> wrote:


> On Tue, Nov 22, 2011 at 21:16, suganesh <sugnes...@gmail.com> wrote:
> > Thanks for your suggestion Magnus.
> >  Now i am struck up with upgraded repo script error.
>

> > gitz01> repo init -uhttps://android.googlesource.com/platform/manifest


> > -b android-4.0.1_r1
> > Traceback (most recent call last):
> ...
> >    r = urllib2.urlopen(url)
> ...
> >  File "/usr/lib/python2.4/httplib.py", line 300, in _read_status
> >    raise BadStatusLine(line)
> > httplib.BadStatusLine
>
> Do you need to use an HTTP proxy server to reach external sites? This

> error is becausehttps://android.googlesource.com/tools/repo/clone.bundlereturned an

Shawn Pearce

unread,
Nov 24, 2011, 6:34:53 PM11/24/11
to suganesh, Repo and Gerrit Discussion
On Thu, Nov 24, 2011 at 03:03, suganesh <sugn...@gmail.com> wrote:
> Since my server is behind the proxy , it fails to sync the code.
>
> I had done two things , upgraded my repo version and removed that
> culprit proxy from my sever.
>
> Now i could be able to sync ICE code base without any hamper.

If you have a standard HTTP proxy server available, you may have been
able to set the http_proxy (yes all lowercase) environment variable to
the host:port of your proxy server, e.g:

export http_proxy=proxy.mycompany.com:4981

repo and Git should both honor this setting, perhaps making it easier
for you to keep current.

suganesh

unread,
Nov 25, 2011, 6:37:08 AM11/25/11
to Repo and Gerrit Discussion
Okay let me try this one.

On Nov 25, 4:34 am, Shawn Pearce <s...@google.com> wrote:

Emmanuel Grumbach

unread,
Nov 28, 2011, 3:20:41 AM11/28/11
to suganesh, Repo and Gerrit Discussion
On Fri, Nov 25, 2011 at 13:37, suganesh <sugn...@gmail.com> wrote:
> Okay let me try this one.
>
> On Nov 25, 4:34 am, Shawn Pearce <s...@google.com> wrote:
>> On Thu, Nov 24, 2011 at 03:03, suganesh <sugnes...@gmail.com> wrote:
>> > Since my server is behind the proxy , it fails to sync the code.
>>
>> > I had done two things , upgraded my repo version and removed that
>> > culprit proxy from my sever.
>>
>> > Now i could be able to sync ICE code base without any hamper.
>>
>> If you have a standard HTTP proxy server available, you may have been
>> able to set the http_proxy (yes all lowercase) environment variable to
>> the host:port of your proxy server, e.g:
>>
>>   export http_proxy=proxy.mycompany.com:4981
>>

Don't forget https_proxy too

Reply all
Reply to author
Forward
0 new messages