Error when downloading for first time

6,838 views
Skip to first unread message

Dan S

unread,
Oct 20, 2011, 1:34:03 PM10/20/11
to Android Building
Hey all i'm trying to download the repository for the first time. I've
got repo setup and tried to follow each step precisely but there must
be a step I'm missing, this is what i'm getting:

$ ~/bin/repo init -u https://android.googlesource.com/platform/manifest
Get https://android.googlesource.com/tools/repo
fatal: https://android.googlesource.com/tools/repo/info/refs download
error - The requested URL returned error: 403

andrio

unread,
Oct 21, 2011, 2:14:27 PM10/21/11
to Android Building
Hi,
I'm getting exactly the same problem please help
thanks

Yuhan Lin

unread,
Oct 24, 2011, 6:10:17 AM10/24/11
to android-...@googlegroups.com
Hi,
It happened to me, too. But what i get was :

error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://android.googlesource.com/tools/repo/info/refs

fatal: HTTP request failed

Shawn Pearce

unread,
Oct 24, 2011, 12:51:11 AM10/24/11
to Android Building
On Oct 20, 10:34 am, Dan S <king...@gmail.com> wrote:
> Hey all i'm trying to download the repository for the first time. I've
> got repo setup and tried to follow each step precisely but there must
> be a step I'm missing, this is what i'm getting:
>
> error - The requested URL returned error: 403

What version of Git are you using? It looks like you need to upgrade
Git to be 1.6.6 or newer.

Ken

unread,
Oct 26, 2011, 1:01:55 PM10/26/11
to Android Building
I seriously doubt that this is an isolated problem. I also am
experiencing
problems downloading the source for android... Anyways, the long post
below cut
short is that it appears the Google code git server appears to be
down, and the
subversion repositories are working just fine.

Begin long post of diagnostics.
===============================================================================

Error 1: ( ssl cert issue? )
===============================================================================
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/
repo
% 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: (60) Peer certificate cannot be authenticated with given CA
certificates
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a
"bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
$


Error 2: ( misconfigured git repository? )
Note: I forced the download of repo ( ignoring ssl), and when i tried
to
checkout the source using repo, the following happens:
===============================================================================
$ repo init -u https://android.googlesource.com/platform/manifest
Get https://android.googlesource.com/tools/repo
error: while accessing https://android.googlesource.com/tools/repo/info/refs

fatal: HTTP request failed
$

Error 3: ( misconfigured git repository? )
Note: This is just a simple test of the git repo to see if my tools
work
properly.
===============================================================================
$ git clone https://android.googlesource.com/tools/repo.git
Cloning into repo...
error: while accessing https://android.googlesource.com/tools/repo.git/info/refs

fatal: HTTP request failed
$

Side Test 1 ( another google code project using git):
==============================================================================
$ git clone https://code.google.com/p/phantomjs/
Cloning into phantomjs...
error: while accessing https://code.google.com/p/phantomjs/info/refs

fatal: HTTP request failed

Side Test 2 ( another google code project using git):
===============================================================================
$ git clone git://code.google.com/p/phantomjs/
Cloning into phantomjs...

(Hangs around here, so ctrl + c)
$


Now as for software, I am certain i am running new enough software.
The machine
is running linux kernel 3.0.0, git is 1.7.6 and curl is v 7.21.x. I
also can
verify that attempting to download source using git works ( Tested
using
github.com ). However when i attempt to checkout source using git on
google code
the checkout fails. ( server down? ) However, I am certain it's not a
dns issue
because i can checkout source using subversion just fine.

andrio

unread,
Oct 26, 2011, 6:22:27 PM10/26/11
to Android Building
thanks a lot,
seams like git 1.6.3 is not good enough. I upgraded my whole system
now i have git 1.7.0.4 repo init and source code download is okay
thanks once again

> Hi,
> I'm getting exactly the same problem please help
> thanks

dusted

unread,
Oct 27, 2011, 8:26:23 AM10/27/11
to Android Building
Older git versions will make the repo download fail.

On 20 Okt., 19:34, Dan S <king...@gmail.com> wrote:
> Hey all i'm trying to download the repository for the first time. I've
> got repo setup and tried to follow each step precisely but there must
> be a step I'm missing, this is what i'm getting:
>

jimtahu

unread,
Oct 28, 2011, 12:32:40 AM10/28/11
to Android Building
I'm trying to checkout with:
repo init -u https://android.googlesource.com/platform/manifest -b
2.3.3_r1

And I'm getting:
git --version
git version 1.7.7.1

Mathew Says IdareYou

unread,
Oct 30, 2011, 3:46:42 AM10/30/11
to Android Building
On Oct 28, 12:32 pm, jimtahu <jimt...@gmail.com> wrote:
> I'm trying to checkout with:
>  repo init -uhttps://android.googlesource.com/platform/manifest-b
> 2.3.3_r1
>
> And I'm getting:
> Gethttps://android.googlesource.com/tools/repo
> error:  while accessinghttps://android.googlesource.com/tools/repo/info/refs
>
> fatal: HTTP request failed
>
> git --version
> git version 1.7.7.1

I've had that error to, it seems that I went to the website itself and
it gave me a 403 Forbidden.

Jean-Baptiste Queru

unread,
Oct 31, 2011, 5:50:45 PM10/31/11
to android-...@googlegroups.com
Occasionally a server gets itself in a bad state, and normally detects
it and restarts itself. When you see a 403 or a 503, wait a little bit
(say, half an hour), and retry.

Sorry for the inconvenience. the team working on googlesource.com is
tracking down those issues.

JBQ

> --
> 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
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

tr4nc3

unread,
Oct 31, 2011, 6:06:56 PM10/31/11
to android-...@googlegroups.com
I got some errors, but I had to reinstall my git version with libcurl4-openssl-dev installed.  May be that would work.

manoj gupta

unread,
Feb 16, 2012, 3:16:51 AM2/16/12
to android-...@googlegroups.com
Hi,
I got the solution. go to repo executable open it and change from https->http and at run time in comand prompt run
repo init -u http ............
and it will work fine.
Regards
Manoj

Jean-Baptiste Queru

unread,
Sep 24, 2012, 11:03:31 AM9/24/12
to android-...@googlegroups.com
Is there any specific reason why you're not getting repo from the
location specified in
https://source.android.com/source/downloading.html ?

JBQ

On Sun, Sep 23, 2012 at 9:04 AM, Zsolt BÉRCZES <zsolt....@gmail.com> wrote:
> same again, just errors....
> looks like server missconfiguration:
>
> curl http://gerrit.googlesource.com/git-repo -> The document has moved <A
> HREF="https://gerrit.googlesource.com/git-repo">here</A>.
> and with https -> reply: 'HTTP/1.1 404 Not Found\r\n' -> sometimes http
> pacge but with content-type text/plain....
> --
> 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



--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.
Reply all
Reply to author
Forward
0 new messages