foxbox icon indicating copy to clipboard operation
foxbox copied to clipboard

[B2G] Sometime reop fetch failed, and need to re-fetch manually

Open snowmantw opened this issue 11 years ago • 4 comments

This is a bug need to be solved, if we want to automate the building process.

snowmantw avatar Feb 07 '14 06:02 snowmantw

These two errors:

error: Exited sync due to fetch errors
Repo sync failed

cause the box can't build anything, even after 5+ retries.

snowmantw avatar Feb 07 '14 09:02 snowmantw

http://stackoverflow.com/questions/16085722/when-running-repo-sync-error-exited-sync-due-to-fetch-errors

Invoking repo sync -f -j10 did the trick.

As it seems -f or --force-broken flag allows it to recover from network error and more important recover on broken/missing objects.

Maybe we can provide a set of script to run this command

gasolin avatar Feb 07 '14 15:02 gasolin

I gave up it temporarily and launch a GCE instance to test, and found that the network really affected the building. In foxbox it just failed again and again, and GCE instance would success. This may be a issue we must solve, because I failed at a standard and fast enough network.

snowmantw avatar Feb 08 '14 12:02 snowmantw

You could check https://github.com/gasolin/foxbox/commit/14644ad553993e2b5352de347e483a566956a0f7 if it fix this issue

gasolin avatar Feb 10 '14 05:02 gasolin