Git and fetching the repo


#1

Hi
Im downloading: ​$ git clone git://github.com/mozilla-b2g/B2G.git
it goes automatic to ~/B2G
And get:

error: Exited sync due to fetch errors
Repo sync failed

so i did: $ cd ~/B2G and then $ ./repo sync

and got: ​…

A new repo command ( 1.23) is available.
… You should upgrade soon:

cp /home/novski/B2G/.repo/repo/repo /home/novski/B2G/repo

First question: why do i get so mucht fetch errors since june 2016?
Second question: is that the right way to handle aborted git clone commands? or is “./repo sync -f” better?
Third question: whats that new command (1.23) about?


(Lissyx) #2

For this, we need the rest of the log to know which repo is failing :confused:. The why is hard to say, though, it depends on each. It’s possible that moving away from git.mozilla.org we are hitting connectivity issues on other repos that were mirrored onto Mozilla’s. I think this is why we had the mirror in the first place :slight_smile:

Since you seem to be |git clone| and then |./repo sync|, did you made any |./config.sh | ? If no, that is needed. Once the first config.sh is completed, |./repo sync| is good. The --force-sync is useful when some repos are changing badly, but you get an obvious error in this case, so don’t worry.

It just states we have an outdated version, it’s not a big deal :slight_smile:


#3

Hi, Thanks for the Answer. I tested it a bit further but need to know how to log:

How can i log the repo clone? I tried this:

$ git clone git://github.com/mozilla-b2g/B2G.git | tee cloneB2G.log

It takes about 2sec. to clone and state “done”. The log file is writen as well but its empty…

yes i did:
$./config fairphone2
and

$./repo sync

It also finishes after about 10 x redoing $./repo sync
And it fills the ./repo folder with files but the ~/B2G folder still lacks the gaia, gecko and many other folders…

What is outdated? (name of software)


(Lissyx) #4

I guess you need to use tee during the config step to catch those errors:

$ ./config.sh fairphone2 2>&1 | tee fp2.log

repo is the tool used to play with Git repositories, it’s the one outdated.


(Lissyx) #5

OK just a dumb question: when you say ~/B2G is not filled with anything, is
that where you did the git clone?

After you git clone you should cd to the clone and run config.sh from
there, and then the directory should be filled but that requires all
repositories to have been successfully cloned. If you have Obe failing then
config.sh cannot complete and you might get into the state you describe.

You can use repo sync only once you got config.sh to complete successfully
:-). If not then you have to use again config.sh but what has been
downloaded will not be redownloaded.

<
https://ci5.googleusercontent.com/proxy/kY0yCMmDzLJk1E96ido5ikNAHe5zh52D3YphR1X2xsrOEU-akWaRVcb05gCxw4tWSLqENnwem5Tm-NtFWoV2NCt4Wc-JGW_Dh5C7jzgcntlxIgUGOQWTDe7tfUEQonn_B38KBuLWG02k6YjYTd1RxOikuyZQHm2_UG72p17U=s0-d-e1-ft#https://discourse.mozilla-community.org/user_avatar/discourse.mozilla-community.org/novski/45/4829_1.png>
Novski
September 1

Hi, Thanks for the Answer. I tested it a bit further but need to know how
to log:

<
https://ci3.googleusercontent.com/proxy/a6EMeT_h5MyWLSl50LcVcJUcuUEikIXcNOGXGJp-rrXv_7kQn0Wq-HQyymFXmI0doJHrcmzOsl7o4aRl636hcMyALwftzCNk9QPOpt9NxLIADNXTj0GcC0i1vgWFaHC0yIhNPOj5vscsw7s=s0-d-e1-ft#https://discourse.mozilla-community.org/letter_avatar_proxy/v2/letter/l/ecb155/40.png
lissyx:

For this, we need the rest of the log to know which repo is failing

How can i log the repo clone? I tried this:

$ git clone git://github.com/mozilla-b2g/B2G.git | tee cloneB2G.log

It takes about 2sec. to clone and state “done”. The log file is writen as
well but its empty…

<
https://ci3.googleusercontent.com/proxy/a6EMeT_h5MyWLSl50LcVcJUcuUEikIXcNOGXGJp-rrXv_7kQn0Wq-HQyymFXmI0doJHrcmzOsl7o4aRl636hcMyALwftzCNk9QPOpt9NxLIADNXTj0GcC0i1vgWFaHC0yIhNPOj5vscsw7s=s0-d-e1-ft#https://discourse.mozilla-community.org/letter_avatar_proxy/v2/letter/l/ecb155/40.png
lissyx:

Since you seem to be |git clone| and then |./repo sync|, did you made any
|./config.sh | ?

yes i did:
$./config fairphone2
and

$./repo sync

It also finishes after about 10 x redoing $./repo sync
And it fills the ./repo folder with files but the ~/B2G folder still
lacks the gaia, gecko and many other folders…

<
https://ci3.googleusercontent.com/proxy/a6EMeT_h5MyWLSl50LcVcJUcuUEikIXcNOGXGJp-rrXv_7kQn0Wq-HQyymFXmI0doJHrcmzOsl7o4aRl636hcMyALwftzCNk9QPOpt9NxLIADNXTj0GcC0i1vgWFaHC0yIhNPOj5vscsw7s=s0-d-e1-ft#https://discourse.mozilla-community.org/letter_avatar_proxy/v2/letter/l/ecb155/40.png
lissyx:

It just states we have an outdated version, it’s not a big deal

What is outdated? (name of software)


Visit Topic or reply to this email to respond.


In Reply To

<
https://ci5.googleusercontent.com/proxy/awzTLeZSQ4NoIfBlGZA3lo26kZQVVC_BjmANCNdQ4J3ntLbC3OZJIeAQFM53I2NXMRdNwx5dc_wrzQauIPOWKNBxCWTk2WOuGwsP5-7iO_OBAvvokOOWFV5k6nWiczuxCcFLpgrVlO3SS2U=s0-d-e1-ft#https://discourse.mozilla-community.org/letter_avatar_proxy/v2/letter/l/ecb155/45.png>
lissyx
August 31
For this, we need the rest of the log to know which repo is failing
:confused:. The why is hard to say, though, it depends on each. It’s
possible that moving away from git.mozilla.org we are hitting connectivity
issues on other repos that were mirrored onto Mozilla’s. I think this is
why we had …


#6

I did that and found some strange thing:

fatal: remote error: access denied or repository not exported: /platform_frameworks_native

Also i tried to clone the ./config.sh flamingo-l what perfectly worked.

some more details out of the log:

error: Cannot fetch platform_frameworks_native
From git://codeaurora.org/platform/external/iptables


fatal: remote error: access denied or repository not exported: /platform_frameworks_native


  • [new tag] LNX.LA.3.7.c3-09400-8x16.0 -> LNX.LA.3.7.fatal: remote error: access denied or repository not exported: /platform_frameworks_native
    c3-09400-8x16.0

error: Exited sync due to fetch errors

Seams to be related to my change in the fairphone.xml – platform_frameworks_native
What do you think?


(Lissyx) #7

That you look right :-/

try another caf device like z3c (aries-kk or aries I don’t remember) and we will see

Mozilla Discourse a écrit :


Novski

September 2lissyx:

./config.sh fairphone2 2>&1 | tee fp2.log

I did that and found some strange thing:

fatal: remote error: access denied or repository not exported: /platform_frameworks_native

Also i tried to clone the ./config.sh flamingo-l what perfectly worked.

some more details out of the log:

error: Cannot fetch platform_frameworks_native

From git://codeaurora.org/platform/external/iptables


fatal: remote error: access denied or repository not exported: /platform_frameworks_native


  • [new tag] LNX.LA.3.7.c3-09400-8x16.0 -> LNX.LA.3.7.fatal: remote error: access denied or repository not exported: /platform_frameworks_native

    c3-09400-8x16.0


error: Exited sync due to fetch errors

Seams to be related to my change in the fairphone.xml -- platform_frameworks_native

What do you think?


Visit Topic or reply to this email to respond.

To stop receiving notifications for this particular topic, click here.

To unsubscribe from these emails, change your user preferences.

Envoyé depuis Firefox OS

#8

both aries fetch without problems…
I can’t see a failure in the .xml’s


#9

Ok. im clueless. I will need somebody to have a look in to this log.
http://wikisend.com/download/702376/160903-2_configFP2.log.zip

especialy the lines:
614’132
fatal: remote error: access denied or repository not exported: /platform_frameworks_native
From git://codeaurora.org/platform/system/extras
654’704
fatal: remote error: access denied or repository not exported: /platform_frameworks_native
From git://codeaurora.org/platform/external/e2fsprogs
667’283
error: Cannot fetch platform_frameworks_native
From git://codeaurora.org/platform/external/bzip2


#10

I synced and updated my repo (configured for flamingo-l) without issues today. Everything looked alright.


(Lissyx) #11

Ok, I guess I messed when verifying your patch, the line for
platform_frameworks_native lacks a b2g remote, so it tries touse a
repository that does not exists :slight_smile:

Change that line


to:


#12

Ok. Thanks for that check. I should have seen it by my self. Anyway i made a pull-request and hope its in the right direction. I still have problems making out the direction of a “pull”.
https://github.com/mozilla-b2g/b2g-manifest/pull/453
I will also update the bugnr 1294725.
Thanks for your revision!


(Luca) #13

Sorry if I add my question to this topic, but I think it’s related to main issue. I was trying to fetching the repo to port B2G OS to a CyanogenMod device. When i try:

./config.sh cm-porting

fetching always fails:

Is there anything I can do to overcome this problem?


#14

can you share the manifest? I don’t see it in my repo…
./repo/manifests


(Luca) #15

Do you referer to manifest folder or to manifest.xml file, @Novski? If you want I can share mine, though fetching is not endend! :sweat_smile:


#16

no i hope i understand the procedure correctly. So please correct me if not.
I don’t see a “cm-porting.xml” file in the https://github.com/mozilla-b2g/b2g-manifest .
Doesn’t the porting need such a file to fetch specific libraries?
For my Fairphone2 i have the fairphone2.xml file…