Unable to initialize repository with repo init

50 views
Skip to first unread message

Remi Colinet

unread,
Aug 25, 2019, 11:24:56 AM8/25/19
to Android Building
Hello,

I'am trying to download Android source code with below command:

root@pacome-Aspire-V3-572G:/srv/as# /root/bin/repo init --no-clone-bundle -u https://android.googlesource.com/a/platform/manifest -b android-9.0.0_r9
Get https://gerrit.googlesource.com/git-repo
remote: Counting objects: 144, done
remote: Total 4425 (delta 2045), reused 4425 (delta 2045)
Receiving objects: 100% (4425/4425), 5.25 MiB | 8.19 MiB/s, done.
Resolving deltas: 100% (2045/2045), done.
From https://gerrit.googlesource.com/git-repo
 * [new branch]      maint      -> origin/maint
 * [new branch]      master     -> origin/master
 * [new branch]      stable     -> origin/stable
 * [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.9.4     -> v1.9.4
 * [new tag]         v1.9.5     -> v1.9.5
 * [new tag]         v1.9.6     -> v1.9.6
Get https://android.googlesource.com/a/platform/manifest

[STUCK HERE. No download any more. CPU at 100% with git-remote-http]

Any hint?

I've tries a dozen times.
No way

Regards
Remi


Alessio Balsini

unread,
Aug 27, 2019, 5:57:36 AM8/27/19
to Android Building
Hello Remi,

How long have you been waiting before terminating the init?
Why are you doing this as root?
Why are you using --no-clone-bundle as "repo init" flag?
Where did you find these instructions?


Regards,
Alessio

Remi Colinet

unread,
Aug 27, 2019, 11:29:51 AM8/27/19
to android-...@googlegroups.com
Alessio,

I've just tried again from office on a vanilla CentOS 7.6.
It works...

[root@XXXXXX somedir]# repo init -u https://android.googlesource.com/platform/manifest
gpg: keyring `/root/.repoconfig/gnupg/secring.gpg' created
gpg: keyring `/root/.repoconfig/gnupg/pubring.gpg' created
gpg: /root/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 920F5C65: public key "Repo Maintainer <re...@android.kernel.org>" imported
gpg: key 692B382C: public key "Conley Owens <cc...@android.com>" imported
gpg: Total number processed: 2
gpg:               imported: 2  (RSA: 1)

Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Finding sources: 100% (17/17)
remote: Total 17 (delta 2), reused 17 (delta 2)
Unpacking objects: 100% (17/17), done.
From https://gerrit.googlesource.com/git-repo
   3069be2..8a11f6f  master     -> origin/master
Get https://android.googlesource.com/platform/manifest
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
remote: Sending approximately 50.91 MiB ...
remote: Counting objects: 927, done
remote: Finding sources: 100% (66/66)
remote: Total 60849 (delta 16469), reused 60845 (delta 16469)
Receiving objects: 100% (60849/60849), 50.19 MiB | 29.43 MiB/s, done.
Resolving deltas: 100% (16469/16469), done.
From https://android.googlesource.com/platform/manifest
 * [new branch]      adt_23.0.3 -> origin/adt_23.0.3
 * [new branch]      afw-test-harness-1.5 -> origin/afw-test-harness-1.5
 * [new branch]      afw-test-harness-2.1 -> origin/afw-test-harness-2.1
 * [new branch]      afw-test-harness-marshmallow-dev -> origin/afw-test-harness-marshmallow-dev
 * [new branch]      afw-test-harness-nougat-dev -> origin/afw-test-harness-nougat-dev
 * [new branch]      android-1.6_r1 -> origin/android-1.6_r1
 * [new branch]      android-1.6_r1.1 -> origin/android-1.6_r1.1
...

There is only a small warning 

I can see 2 differences:
- OS Fedora 30 versus CentOS 7.6 (with latest patches)
- Corporate network versus ISP provider network.

Regards
Remi

Le mar. 27 août 2019 à 12:37, Remi Colinet <remi.c...@gmail.com> a écrit :
Hello Alessio,

Thx for your time.

We have been waiting up to 30 minutes at least. No way. It is stucked.
Looks very unexpected as I've used Git for 10 years.

I'am doing this as root because I'am used to work with root account on my laptop.
Someone suggested to try with a non root account. Will try.

I've used the --no-clone-bundle because it writes a warning message which is harmless as per my google searches.

I've used the instruction located at the URL https://source.android.com/setup/build/downloading
And also some searches from Google to try get a workaround.

I'am using Fedora 30 with latest Git client.

I'am very surprised to face such issue.
Few people seem to have a similar issue.

Regards
Remi

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/931f088b-4c70-476b-98e1-3874e95e67fc%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages