repo sync error

657 views
Skip to first unread message

K Madhuri

unread,
Mar 10, 2012, 5:37:01 AM3/10/12
to repo-d...@googlegroups.com
Hi,

I have installed custom ROM (Team EOS - nightly build) on my moto xoom and now I want create my own ROM with some modifications.

I referred to their page to download the Team Eos source code.

$ mkdir eos
$ cd eos
$ repo init -u mirror-dir/platform/manifest.git -b android-4.0.1_r1  
(I have local mirror for aosp code)
$ repo sync

$ repo init -u http://git.teameos.org/eos/platform/manifest.git -b ics  
(Changed git: to http: because I am behind proxy)

Then I modified .repo/manifests/default.xml (again, changed git: to http: or to https:)

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

  <remote  name="eos"  fetch="http://git.teameos.org/"
           review="https://review.teameos.org/" sync-j="4" />

  <remote   name="github" fetch="https://github.com/" />

  <default revision="ics" remote="eos" />

  <project path="build" name="eos/platform/build">
  ....
  ....

.repo/manifests/versioned.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

  <remote fetch="http://git.teameos.org/" name="eos" review="https://review.teameos.org/" sync-j="4"/>

  <remote fetch="https://github.com/" name="github"/>

  <default remote="eos" revision="ics"/>

  <project name="eos/platform/build" path="build" revision="80ee625520fefea912037529a025615dff46">
  .....


$ repo sync -j4
I executed this command number of times & I got different errors each time:

$ repo sync
Fetching projects:   4% (10/250)  Traceback (most recent call last):
  File "teameos/.repo/repo/main.py", line 366, in <module>
    _Main(sys.argv[1:])
  File "teameos/.repo/repo/main.py", line 346, in _Main
    result = repo._Run(argv) or 0
  File "teameos/.repo/repo/main.py", line 137, in _Run
    result = cmd.Execute(copts, cargs)
  File "teameos/.repo/repo/subcmds/sync.py", line 416, in Execute
    fetched = self._Fetch(to_fetch, opt)
  File "teameos/.repo/repo/subcmds/sync.py", line 220, in _Fetch
    current_branch_only=opt.current_branch_only):
  File "teameos/.repo/repo/project.py", line 925, in Sync_NetworkHalf
    if alt_dir is None and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "teameos/.repo/repo/project.py", line 1462, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "teameos/.repo/repo/project.py", line 1532, in _FetchBundle
    size = r.headers['content-length']
  File "/usr/lib/python2.7/rfc822.py", line 388, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'


$ repo sync
Fetching projects:   4% (10/250)  error: 'teameos/.repo/projects/device/asus/tf101.git/clone.bundle' does not look like a v2 bundle file
fatal: Could not read bundle 'teameos/.repo/projects/device/asus/tf101.git/clone.bundle'.
Fetching projects:   6% (15/250)  Traceback (most recent call last):
  File "teameos/.repo/repo/main.py", line 366, in <module>
    _Main(sys.argv[1:])
  File "teameos/.repo/repo/main.py", line 346, in _Main
    result = repo._Run(argv) or 0
  File "teameos/.repo/repo/main.py", line 137, in _Run
    result = cmd.Execute(copts, cargs)
  File "teameos/.repo/repo/subcmds/sync.py", line 416, in Execute
    fetched = self._Fetch(to_fetch, opt)
  File "teameos/.repo/repo/subcmds/sync.py", line 220, in _Fetch
    current_branch_only=opt.current_branch_only):
  File "teameos/.repo/repo/project.py", line 925, in Sync_NetworkHalf
    if alt_dir is None and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "teameos/.repo/repo/project.py", line 1462, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "teameos/.repo/repo/project.py", line 1532, in _FetchBundle
    size = r.headers['content-length']
  File "/usr/lib/python2.7/rfc822.py", line 388, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'


$ repo sync
Fetching projects:   8% (20/250)  error: 'teameos/.repo/projects/device/samsung/crespo.git/clone.bundle' does not look like a v2 bundle file
fatal: Could not read bundle 'teameos/.repo/projects/device/samsung/crespo.git/clone.bundle'.
error: 'teameos/.repo/projects/device/samsung/crespo4g.git/clone.bundle' does not look like a v2 bundle file
fatal: Could not read bundle 'teameos/.repo/projects/device/samsung/crespo4g.git/clone.bundle'.
Fetching projects:   9% (23/250)  Traceback (most recent call last):
  File "teameos/.repo/repo/main.py", line 366, in <module>
    _Main(sys.argv[1:])
  File "teameos/.repo/repo/main.py", line 346, in _Main
    result = repo._Run(argv) or 0
  File "teameos/.repo/repo/main.py", line 137, in _Run
    result = cmd.Execute(copts, cargs)
  File "teameos/.repo/repo/subcmds/sync.py", line 416, in Execute
    fetched = self._Fetch(to_fetch, opt)
  File "teameos/.repo/repo/subcmds/sync.py", line 220, in _Fetch
    current_branch_only=opt.current_branch_only):
  File "teameos/.repo/repo/project.py", line 925, in Sync_NetworkHalf
    if alt_dir is None and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "teameos/.repo/repo/project.py", line 1462, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "teameos/.repo/repo/project.py", line 1532, in _FetchBundle
    size = r.headers['content-length']
  File "/usr/lib/python2.7/rfc822.py", line 388, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'


Why repo sync is not working? Is this because of repo tool or is this team eos' repository error?
And why am I  getting different error every time I execute repo sync?

Shawn Pearce

unread,
Mar 10, 2012, 7:06:33 PM3/10/12
to K Madhuri, repo-d...@googlegroups.com

This is a bug in repo that was just reported to me yesterday by a
different user. We haven't made any changes, it just seems to be an
issue with a specific version of Python urllib where the
content-length is not always present in the response headers.

K Madhuri

unread,
Mar 11, 2012, 1:34:22 PM3/11/12
to Shawn Pearce, repo-d...@googlegroups.com
If I install older / newer version of Python, will that solve the problem?

Shawn Pearce

unread,
Mar 11, 2012, 2:57:01 PM3/11/12
to K Madhuri, repo-d...@googlegroups.com

It may. But really this is a bug in repo that I need to fix tomorrow.

Reply all
Reply to author
Forward
0 new messages