Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fetch Failed during git repo sync - Help is much appreciated

5,208 views
Skip to first unread message

Rod Carlo Santillan

unread,
Jun 18, 2013, 8:27:36 AM6/18/13
to
Hi Guys, I'm trying to download the Firefox OS source code but i keep getting a Fetch failed error. I'm not sure if this is a connection issue with the server or something needs fixn on my side. some output:

Fetching projects: 9% (7/77) From http://android.git.linaro.org/git-ro/platform/bionic
560e9f7..977a331 master -> linaro/master
Fetching projects: 10% (8/77) error: Could not resolve host: (nil); Name or service not known while accessing http://android.git.linaro.org/git-ro/platform/bootable/recovery/info/refs?service=git-upload-pack
fatal: HTTP request failed
Fetching projects: 20% (16/77) error: Unable to find be31c632ab0740c74ca0e92f929a447c301e2780 under http://android.git.linaro.org/git-ro/platform/external/dnsmasq
Cannot obtain needed object be31c632ab0740c74ca0e92f929a447c301e2780
while processing commit 61e587d3802fe674c4a8f7eab59a5c58b1943536.
error: Fetch failed.
Fetching projects: 46% (36/77) error: Could not resolve host: (nil); Name or service not known while accessing http://android.git.linaro.org/git-ro/platform/external/iptables/info/refs?service=git-upload-pack
fatal: HTTP request failed
Fetching projects: 49% (38/77) error: Unable to find be31c632ab0740c74ca0e92f929a447c301e2780 under http://android.git.linaro.org/git-ro/platform/external/dnsmasq
Cannot obtain needed object be31c632ab0740c74ca0e92f929a447c301e2780
while processing commit 61e587d3802fe674c4a8f7eab59a5c58b1943536.
error: Fetch failed.
Fetching projects: 61% (47/77) error: Cannot fetch platform/external/dnsmasq
Fetching projects: 66% (51/77)
error: Exited sync due to fetch errors
[root@localhost B2G]# ./repo sync
Fetching projects: 19% (15/77) error: Unable to find be31c632ab0740c74ca0e92f929a447c301e2780 under http://android.git.linaro.org/git-ro/platform/external/dnsmasq
Cannot obtain needed object be31c632ab0740c74ca0e92f929a447c301e2780
while processing commit 61e587d3802fe674c4a8f7eab59a5c58b1943536.
error: Fetch failed.
Fetching projects: 22% (17/77) error: Could not resolve host: (nil); Name or service not known while accessing http://android.git.linaro.org/git-ro/platform/external/bluetooth/glib/info/refs?service=git-upload-pack
fatal: HTTP request failed
Fetching projects: 40% (31/77) error: Unable to find be31c632ab0740c74ca0e92f929a447c301e2780 under http://android.git.linaro.org/git-ro/platform/external/dnsmasq
Cannot obtain needed object be31c632ab0740c74ca0e92f929a447c301e2780
while processing commit 61e587d3802fe674c4a8f7eab59a5c58b1943536.
error: Fetch failed.
Fetching projects: 70% (54/77) error: Cannot fetch platform/external/dnsmasq
Fetching projects: 74% (57/77) error: Unable to find 6da44346ce7d6cdacfad1d2901d6374ddc0386df under http://android.git.linaro.org/git-ro/platform/frameworks/base
Cannot obtain needed object 6da44346ce7d6cdacfad1d2901d6374ddc0386df
while processing commit ecc35e680b1d5093c7f7cebce25117e6fb384b1c.
error: Fetch failed.
error: Unable to find 6da44346ce7d6cdacfad1d2901d6374ddc0386df under http://android.git.linaro.org/git-ro/platform/frameworks/base
Cannot obtain needed object 6da44346ce7d6cdacfad1d2901d6374ddc0386df
while processing commit ecc35e680b1d5093c7f7cebce25117e6fb384b1c.
error: Fetch failed.
error: Cannot fetch platform/frameworks/base

error: Exited sync due to fetch errors
[root@localhost B2G]# ./repo sync
Fetching projects: 14% (11/77) error: Could not resolve host: (nil); Name or service not known while accessing http://android.git.linaro.org/git-ro/platform/abi/cpp/info/refs?service=git-upload-pack
fatal: HTTP request failed
Fetching projects: 18% (14/77) error: Unable to find be31c632ab0740c74ca0e92f929a447c301e2780 under http://android.git.linaro.org/git-ro/platform/external/dnsmasq
Cannot obtain needed object be31c632ab0740c74ca0e92f929a447c301e2780
while processing commit 61e587d3802fe674c4a8f7eab59a5c58b1943536.
error: Fetch failed.
Fetching projects: 22% (17/77) error: Could not resolve host: (nil); Name or service not known while accessing http://android.git.linaro.org/git-ro/platform/external/dhcpcd/info/refs?service=git-upload-pack
fatal: HTTP request failed
Fetching projects: 25% (20/77) error: Unable to find be31c632ab0740c74ca0e92f929a447c301e2780 under http://android.git.linaro.org/git-ro/platform/external/dnsmasq
Cannot obtain needed object be31c632ab0740c74ca0e92f929a447c301e2780
while processing commit 61e587d3802fe674c4a8f7eab59a5c58b1943536.
error: Fetch failed.
Fetching projects: 36% (28/77) error: Cannot fetch platform/external/dnsmasq
Fetching projects: 41% (32/77)
error: Exited sync due to fetch errors

Rod Carlo Santillan

unread,
Jun 18, 2013, 6:07:38 PM6/18/13
to
Ok i think I got it running. It got better when I ran:
repo init -u https://android.googlesource.com/platform/manifest

no more fetch errors. I hope I didn't mess anything in my local repo

Rod Santillan

unread,
Jun 18, 2013, 6:19:01 PM6/18/13
to
It looks like I need to sync with google repo first

Nicolas B. Pierron

unread,
Jun 19, 2013, 6:03:38 AM6/19/13
to mozilla...@lists.mozilla.org
On 06/18/2013 03:07 PM, Rod Carlo Santillan wrote:
> On Tuesday, June 18, 2013 8:27:36 PM UTC+8, Rod Carlo Santillan wrote:
>> Hi Guys, I'm trying to download the Firefox OS source code but i keep getting a Fetch failed error. I'm not sure if this is a connection issue with the server or something needs fixn on my side. some output:
>>
>> error: Exited sync due to fetch errors
>
> Ok i think I got it running. It got better when I ran:
> repo init -u https://android.googlesource.com/platform/manifest

Doing that will do the checkout of Android sources instead of B2G sources.
you should redo it from scratch and if you still have a fetch error, you can
try to run "./repo sync --force-broken", which will at least do the checkout
of the others, and you can work around the one which does not want to be
updated.

--
Nicolas B. Pierron

Rod Santillan

unread,
Jun 21, 2013, 9:58:31 PM6/21/13
to
Thanks Nicolas. I'll give it a shot.

Rod Santillan

unread,
Jun 25, 2013, 8:37:51 AM6/25/13
to
Man this is frustrating! It's raining 'fetch issues' 'The remote end hung up unexpectedly' and that linaro issue! (http://android.git.linaro.org/git-ro/platform/prebuilt Cannot obtain needed object) everytime I do a ./config.sh nexus-s. Do i have to start over again? with the repo sync? When I do a repo sync it's telling me 100%(77/77) project. I'm guessing that Im already sync.


Nicolas B. Pierron

unread,
Jun 25, 2013, 9:55:54 AM6/25/13
to mozilla...@lists.mozilla.org
Yeah, it might be good to start over again, I am surprized you only have 77
projects because I am counting 80 in the manifest file which correspond to
the nexus-s.

Maybe you can modify the remote in .repo/manifest.xml such as it tries to
pull the changes from another location. Be aware that this file might be
overwritten by the repo binary, so you might have to edit
..repo/manifests/nexus-s.xml and resolve the merge conflicts when there is one.

--
Nicolas B. Pierron

Rod Santillan

unread,
Jun 25, 2013, 7:34:21 PM6/25/13
to
Thanks Nicolas! Do I always have to start from scratch every time I get a fetch issue?
Message has been deleted
Message has been deleted

Rod Santillan

unread,
Jun 27, 2013, 10:45:34 AM6/27/13
to
Im going in circles! ahaha! The only repo that works is https://android.googlesource.com/ in place of linaro

I wonder if i can use these:
<remote name="gaia" fetch="https://github.com/mozilla-b2g/" />
<remote name="gecko" fetch="git://gitorious.org/gecko/gecko.git" />

Nicolas B. Pierron

unread,
Jun 27, 2013, 11:47:23 AM6/27/13
to mozilla...@lists.mozilla.org
On 06/27/2013 07:45 AM, Rod Santillan wrote:
> On Wednesday, June 26, 2013 7:34:21 AM UTC+8, Rod Santillan wrote:
>
> Im going in circles! ahaha! The only repo that works is https://android.googlesource.com/ in place of linaro

This is weird, everybody else is using linaro.
What is your version of git?

> I wonder if i can use these:
> <remote name="gaia" fetch="https://github.com/mozilla-b2g/" />
> <remote name="gecko" fetch="git://gitorious.org/gecko/gecko.git" />
>

For gaia yet, for gecko, we have a clone of it on:
https://github.com/mozilla/mozilla-central

--
Nicolas B. Pierron

Rod Santillan

unread,
Jun 27, 2013, 6:11:56 PM6/27/13
to
my git version 1.8.1.4.

Singh, Arun Kumar

unread,
Jul 5, 2013, 8:33:13 AM7/5/13
to Nicolas B. Pierron, mozilla...@lists.mozilla.org
Almost similar problem for me with linaro and fetch error for bionic and platform/prebuild

Unable to find version when doing config.sh for galaxy-s2

********************************
Fetching projects: 9% (7/77) error: Unable to find 2c222c49066e46208ea5ed75141978a5c3974d10 under http://android.git.linaro.org/git-ro/platform/bionic
Cannot obtain needed object 2c222c49066e46208ea5ed75141978a5c3974d10

Fetching projects: 93% (72/77) error: Unable to find 91266e60bd77a848a98e677807e7b6ce61a9867d under http://android.git.linaro.org/git-ro/platform/prebuilt
Cannot obtain needed object 91266e60bd77a848a98e677807e7b6ce61a9867d


error: Fetch failed.
error: Exited sync due to fetch errors
***********************************

Below is remote server set in manifest file

<remote name="aosp" fetch="https://android.googlesource.com/"/>
<remote name="b2g" fetch="git://github.com/mozilla-b2g/"/>
<remote name="linaro" fetch="http://android.git.linaro.org/git-ro/"/>
<remote name="mozilla" fetch="git://github.com/mozilla/"/>
<remote name="mozillaorg" fetch="https://git.mozilla.org/releases"/>
<default revision="refs/tags/android-4.0.4_r1.2" remote="linaro" sync-j="4"/>


-Arun

-----Original Message-----
From: dev-b2g-bounces+arun.kumar.singh=inte...@lists.mozilla.org [mailto:dev-b2g-bounces+arun.kumar.singh=inte...@lists.mozilla.org] On Behalf Of Nicolas B. Pierron
Sent: Thursday, June 27, 2013 9:17 PM
To: mozilla...@lists.mozilla.org
Subject: Re: [b2g] Fetch Failed during git repo sync - Help is much appreciated

On 06/27/2013 07:45 AM, Rod Santillan wrote:
> On Wednesday, June 26, 2013 7:34:21 AM UTC+8, Rod Santillan wrote:
>
> Im going in circles! ahaha! The only repo that works is https://android.googlesource.com/ in place of linaro

This is weird, everybody else is using linaro.
What is your version of git?

> I wonder if i can use these:
> <remote name="gaia" fetch="https://github.com/mozilla-b2g/" />
> <remote name="gecko" fetch="git://gitorious.org/gecko/gecko.git" />
>

For gaia yet, for gecko, we have a clone of it on:
https://github.com/mozilla/mozilla-central

--
Nicolas B. Pierron
_______________________________________________
dev-b2g mailing list
dev...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g

Nicolas B. Pierron

unread,
Jul 8, 2013, 6:20:03 PM7/8/13
to mozilla...@lists.mozilla.org
On 07/05/2013 05:33 AM, Singh, Arun Kumar wrote:
> Almost similar problem for me with linaro and fetch error for bionic and platform/prebuild
>
> Unable to find version when doing config.sh for galaxy-s2
>
> ********************************
> Fetching projects: 9% (7/77) error: Unable to find 2c222c49066e46208ea5ed75141978a5c3974d10 under http://android.git.linaro.org/git-ro/platform/bionic
> Cannot obtain needed object 2c222c49066e46208ea5ed75141978a5c3974d10
>
> Fetching projects: 93% (72/77) error: Unable to find 91266e60bd77a848a98e677807e7b6ce61a9867d under http://android.git.linaro.org/git-ro/platform/prebuilt
> Cannot obtain needed object 91266e60bd77a848a98e677807e7b6ce61a9867d
>
>
> error: Fetch failed.
> error: Exited sync due to fetch errors
> ***********************************

I guess the Linaro mirror might have a corrupted repository [1]. You can
send them a notification about it, and do the modifications that I suggested
before, which is to use another remote repository in your manifest file,
have a look at previous answers I gave to Rod.

[1]
http://www.definenull.com/content/how-fix-git-repository-corruption-cannot-obtain-needed-commit

--
Nicolas B. Pierron

s...@evolvetv.net

unread,
Sep 21, 2013, 10:15:39 PM9/21/13
to
I'm also getting the following errors:

Fetching projects: 91% (72/79) error: Unable to find 11e96c0dbce3425ee6ef2d180a5f5b54d007bf06 under http://android.git.linaro.org/git-ro/platform/frameworks/base
Cannot obtain needed object 11e96c0dbce3425ee6ef2d180a5f5b54d007bf06
while processing commit ecc35e680b1d5093c7f7cebce25117e6fb384b1c.
error: Fetch failed.
error: Unable to find 93784f3b5e153c90a138783162ed794bc9ffea88 under http://android.git.linaro.org/git-ro/platform/prebuilt
Cannot obtain needed object 93784f3b5e153c90a138783162ed794bc9ffea88
while processing commit a1e60337875460ecba8bc770da2aa3414068c253.
error: Fetch failed.
Fetching projects: 97% (77/79) error: Unable to find 93784f3b5e153c90a138783162ed794bc9ffea88 under http://android.git.linaro.org/git-ro/platform/prebuilt
Cannot obtain needed object 93784f3b5e153c90a138783162ed794bc9ffea88
while processing commit a1e60337875460ecba8bc770da2aa3414068c253.
error: Fetch failed.
error: Unable to find 11e96c0dbce3425ee6ef2d180a5f5b54d007bf06 under http://android.git.linaro.org/git-ro/platform/frameworks/base
Cannot obtain needed object 11e96c0dbce3425ee6ef2d180a5f5b54d007bf06
while processing commit ecc35e680b1d5093c7f7cebce25117e6fb384b1c.
error: Fetch failed.
error: Cannot fetch platform/prebuilt
error: Cannot fetch platform/frameworks/base

Does this mean linaro andriod repo is corrupt?
0 new messages