Stuck at downloading Android Source

2,892 views
Skip to first unread message

Novay Mawbowo

unread,
Dec 14, 2013, 4:01:26 PM12/14/13
to android-...@googlegroups.com
Hello, i'm just met this things just now:

Fetching projects:  95% (210/221)  Fetching project platform/system/core
Fetching project platform/system/extras
Fetching project platform/system/media
Fetching projects:  96% (213/221)  Fetching project platform/system/netd
Fetching project platform/system/vold
Fetching projects:  99% (219/221)  

Anyone know? Thanks before. :)

Jayesh Jayan

unread,
Dec 16, 2013, 6:06:39 AM12/16/13
to android-...@googlegroups.com
I am also stuck with the downloading AOSP source code related to Kitkat 4.4.2

Further debugging points me to the below issues, and thus sync doesn't complete. This is a fresh sync that I am doing now.

$ repo sync device/asus/deb
Fetching project device/asus/deb
Fetching projects: 100% (1/1), done.  
error: manifest required for this command -- please run init

But cloning with below command works. 


I am also stuck at 99 %. Any help in this regard would be wonderful. 

I couldn't find much help related to the error "error: manifest required for this command -- please run init".

Thank you.

Zhao Wei Liew

unread,
Dec 17, 2013, 1:01:33 AM12/17/13
to android-...@googlegroups.com
Try executing these commands in the current session and repo sync again.

$ sudo sysctl -w net.ipv4.tcp_window_scaling=0
$ repo sync
-j1

Zhao Wei Liew

unread,
Dec 17, 2013, 12:56:07 AM12/17/13
to android-...@googlegroups.com
Try executing these commands in the current session and repo sync again.

$ sudo sysctl -w net.ipv4.tcp_window_scaling=0
$ repo sync
-j1

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jayesh Jayan

unread,
Dec 18, 2013, 7:39:15 AM12/18/13
to android-...@googlegroups.com
Thank you for the help.

The issue hasn't got fixed.

Source$ repo sync  -j1

Syncing work tree:   3% (13/407)  error: manifest required for this command -- please run init

I even tried the -f option, without any help.

Am I doing something wrong ?

Zhao Wei Liew

unread,
Dec 19, 2013, 2:09:03 AM12/19/13
to android-...@googlegroups.com
Seems like you didnt manage to get the manifest file during repo init. Make sure that you have the manifest.xml in .repo folder.

Jayesh Jayan

unread,
Dec 20, 2013, 3:37:22 AM12/20/13
to android-...@googlegroups.com
Thank you, Zhao.

There is manifest file in the .repo folder

$ ls -l .repo/manifest.xml 
lrwxrwxrwx 1 jayesh jayesh 21 Dec 19 16:59 .repo/manifest.xml -> manifests/default.xml

I have initiated repo using the command as below

$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.2_r1

I had actually downloaded the entire repo using the init command


After which, I happen to unfortunately delete the .repo folder. Thus wasting the already downloaded 19 GB. 

Currently, everything seems to be downloaded and in .repo folder. But, 

$ repo sync -j1

doesn't complete.

Thank you for any guidance.

Magnus Bäck

unread,
Dec 20, 2013, 10:16:05 AM12/20/13
to android-...@googlegroups.com
On Monday, December 16, 2013 at 06:06 EST,
Jayesh Jayan <jayesh...@gmail.com> wrote:

> I am also stuck with the downloading AOSP source code related to Kitkat
> 4.4.2
>
> Further debugging points me to the below issues, and thus sync doesn't
> complete. This is a fresh sync that I am doing now.
>
> $ repo sync device/asus/deb
> Fetching project device/asus/deb
> Fetching projects: 100% (1/1), done.
> error: manifest required for this command -- please run init

This error message is rather misleading. It actually indicates that
Repo can't open the HEAD file of the git. I'd run repo under strace
(i.e. 'strace -f repo sync device/asus/deb') to see exactly what's
going on. Alternatively, change

except IOError:
raise NoManifestException(path)

in .repo/repo/project.py to

except IOError as e:
raise Exception(e)

to bypass Repo's translation of the actual error.

[...]

--
Magnus Bäck
ba...@google.com

Jayesh Jayan

unread,
Dec 23, 2013, 3:12:02 AM12/23/13
to android-...@googlegroups.com
Thank you, Magnus.

By modifying the code as recommended, I got the error as

Exception: [Errno 2] No such file or directory: u'/home/jayesh/Android-Workspace/Source/device/asus/deb/.git/HEAD'

And on checking, that is the issue.

$ ls -l /home/jayesh/Android-Workspace/Source/device/asus/deb/.git/HEAD
ls: cannot access /home/jayesh/Android-Workspace/Source/device/asus/deb/.git/HEAD: No such file or directory

I am not sure if this is the correct way, but the issue was fixed with the below commands from the source directory where repo was initiated.

$ rm -rf device/asus/deb/ .repo/projects/device/asus/deb.git/
$ repo sync device/asus/deb

$ repo sync


Thank you once again, Magnus and Zhao.
Reply all
Reply to author
Forward
0 new messages