well i had been trying to download CM9 source (ICS) to build for my device but when i did repo sync i got stuck
here's the error...
Fetching projects: 95% (231/243) fatal: The remote end hung up unexpectedly
Fetching projects: 99% (241/243) fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt
error: Exited sync due to fetch errors
i did repo sync -j16, repo sync etc... also tries rebooting but nothing helps..
chaitanyakaul said:
well i had been trying to download CM9 source (ICS) to build for my device but when i did repo sync i got stuck
here's the error...
Fetching projects: 95% (231/243) fatal: The remote end hung up unexpectedly
Fetching projects: 99% (241/243) fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt
error: Exited sync due to fetch errors
i did repo sync -j16, repo sync etc... also tries rebooting but nothing helps..
Click to expand...
Click to collapse
Check here
http://forum.cyanogenmod.com/topic/39528-cant-dl-source/
editing repo did it work.
Sent from my Galaxy Nexus using Tapatalk
well no it isn't working for me....
I can't get this to work either. repo sync -j16 fails, repo sync fails. I attempted to edit manifest.xml in .repo but it already has https instead of git, so no ****ing idea what to do here.
Here's my errors:
Code:
Fetching projects: 55% (134/243) error: The requested URL returned error: 504 while accessing https://github.com/CyanogenMod/android_external_tinyxml/info/refs
fatal: HTTP request failed
error: The requested URL returned error: 403 while accessing https://github.com/CyanogenMod/android_external_tinyxml/info/refs
fatal: HTTP request failed
error: Cannot fetch CyanogenMod/android_external_tinyxml
error: Exited sync due to fetch errors
[email protected]:~/android/system$ repo sync
Fetching projects: 27% (66/243) error: The requested URL returned error: 403 while accessing https://github.com/CyanogenMod/android_build/info/refs
fatal: HTTP request failed
error: The requested URL returned error: 403 while accessing https://github.com/CyanogenMod/android_device_samsung_tuna/info/refs
**** you for wasting 2 days of my life, github.
I tried to completely redownload the source, but now instead of that one error I get multiple "fatal: HTTP request failed".
edit .repo/manifest.xml
<remote name="github"
fetch="git://github.com/"
review="review.cyanogenmod.com" />
<remote name="github_https"
fetch="https://github.com/"
review="review.cyanogenmod.com" />
<project path="prebuilt" name="CyanogenMod/android_prebuilt" remote="github_https" />
make sure your router is opening git ports, try DMZ mode,
if on ubuntu oneiric python 2.7.2 causes repo to die slowly
use sync -j1
or download and install pypy and edit repo to call that instead of /usr/bin/python
this is currently working for me
Seems like they modified the manifest.xml to look like kfazz one. Now it works fine.
I have inserted these lines in the beginning of the file but I have got the following errors
File "/home/husam/android/system/.repo/repo/main.py", line 366, in <module>
_Main(sys.argv[1:])
File "/home/husam/android/system/.repo/repo/main.py", line 346, in _Main
result = repo._Run(argv) or 0
File "/home/husam/android/system/.repo/repo/main.py", line 121, in _Run
copts, cargs = cmd.OptionParser.parse_args(argv)
File "/home/husam/android/system/.repo/repo/command.py", line 42, in OptionParser
self._Options(self._optparse)
File "/home/husam/android/system/.repo/repo/subcmds/sync.py", line 120, in _Options
self.jobs = self.manifest.default.sync_j
File "/home/husam/android/system/.repo/repo/manifest_xml.py", line 215, in default
self._Load()
File "/home/husam/android/system/.repo/repo/manifest_xml.py", line 255, in _Load
self._ParseManifest(True)
File "/home/husam/android/system/.repo/repo/manifest_xml.py", line 342, in _ParseManifest
(project.name, self.manifestFile))
error.ManifestParseError: duplicate project CyanogenMod/android_prebuilt in /home/husam/android/system/.repo/manifest.xml
which line should be changed?
---------- Post added at 04:23 AM ---------- Previous post was at 04:03 AM ----------
to avoid this erros I have remove this tag from the ./repo/mainfest.xml
<project path="prebuilt" name="CyanogenMod/android_prebuilt" />
because it coused that errors
kfazz said:
make sure your router is opening git ports, try DMZ mode,
if on ubuntu oneiric python 2.7.2 causes repo to die slowly
use sync -j1
or download and install pypy and edit repo to call that instead of /usr/bin/python
this is currently working for me
Click to expand...
Click to collapse
Thanks. İt is very helpful.
I have received the following error after issuing repo sync -j1
Fetching projects: 100% (221/221), done.
Syncing work tree: 3% (7/221) fatal: This operation must be run in a work tree
Syncing work tree: 4% (9/221) fatal: This operation must be run in a work tree
fatal: This operation must be run in a work tree
Syncing work tree: 6% (14/221) fatal: This operation must be run in a work tree
Traceback (most recent call last):
File "/home/christian/Documents/WORKING_ICS/.repo/repo/main.py", line 366, in <module>
_Main(sys.argv[1:])
File "/home/christian/Documents/WORKING_ICS/.repo/repo/main.py", line 346, in _Main
result = repo._Run(argv) or 0
File "/home/christian/Documents/WORKING_ICS/.repo/repo/main.py", line 137, in _Run
result = cmd.Execute(copts, cargs)
File "/home/christian/Documents/WORKING_ICS/.repo/repo/subcmds/sync.py", line 443, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/christian/Documents/WORKING_ICS/.repo/repo/project.py", line 975, in Sync_LocalHalf
self._InitWorkTree()
File "/home/christian/Documents/WORKING_ICS/.repo/repo/project.py", line 1758, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree
to solve it run the same command without -j1
afilopou said:
Check here
http://forum.cyanogenmod.com/topic/39528-cant-dl-source/
editing repo did it work.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
How did you fix the problem can you please tell me ? The link that you provided is not working.
Well i have been downloading the source for the second time now and this time i have some serious doubts.
My internet is a damn slow internet and hence downloading takes a lot of time. Also there is a damn power crisis I don't have power for about half the day (~UPS support ain't lasting that long.) So a few times my PC had to force shut down. Also a few times the downloading will stop (at fetching objects point. Know error but cant fix it.) and then I had to restart by closing the terminal and restarting the download.
My question is will any of this cause a problem cause last time my source was only about 5 gig (right after downloading. Could not build cause i messed up though.).
I use a ubuntu 10.04 32 bit (x86) LTS.
Internet @ 512kbps .
This is what i get when i repo sync -j16
Code:
[email protected]:~$ cd WORKING_DIRECTORY
[email protected]:~/WORKING_DIRECTORY$ repo sync -j16
Fetching projects: 10% (25/248) remote: Counting objects: 15, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 9 (delta 7), reused 8 (delta 6)
Unpacking objects: 100% (9/9), done.
From git://github.com/CyanogenMod/android_external_bluetooth_bluez
f7df2d3..6f8b294 ics -> github/ics
Fetching projects: 16% (40/248) error: The requested URL returned error: 403 while accessing https://android.googlesource.com/device/sample/info/refs
fatal: HTTP request failed
Fetching projects: 25% (62/248) error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/external/clang/info/refs
fatal: HTTP request failed
Fetching projects: 55% (137/248) error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/external/libnl-headers/info/refs
fatal: HTTP request failed
Fetching projects: 58% (144/248) error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/external/lohit-fonts/info/refs
fatal: HTTP request failed
Fetching projects: 62% (154/248) error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/external/qemu-pc-bios/info/refs
fatal: HTTP request failed
Fetching projects: 70% (174/248) error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/hardware/invensense/info/refs
fatal: HTTP request failed
Fetching projects: 75% (186/248) error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/hardware/ti/omap4xxx/info/refs
fatal: HTTP request failed
Fetching projects: 76% (189/248) remote: Counting objects: 17, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 9 (delta 3), reused 8 (delta 2)
Unpacking objects: 100% (9/9), done.
From git://github.com/CyanogenMod/android_frameworks_base
7dd34b8..eb3f4a1 ics -> github/ics
Fetching projects: 93% (231/248) remote: Counting objects: 19735, done.
Fetching projects: 95% (236/248) remote: Compressing objects: 0% (23/7659) Fetching projects: 97% (241/248) remote: Compressing objects: 0% (32/7659) Fetching projects: 98% (244/248) remote: Compressing objects: 1% (78/7659) error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/packages/wallpapers/HoloSpiral/info/refs
fatal: HTTP request failed
Fetching projects: 99% (246/248) remote: Compressing objects: 1% (79/7659) remote: Compressing objects: 100% (7659/7659), done.
Receiving objects: 4% (866/19735), 62.92 MiB | 60 KiB/s
So I've installed java 6 and other requried packages for android, and the android repo & tools. As well as preformed the inital sync of 10~ GBs of files. But now that I'm changing things in my source folders and trying to re-sync I'm getting this:
Code:
Fetching projects: 13% (48/362) From https://github.com/UnicornButter/external_openssl
* [new branch] jb-mr1 -> pub/jb-mr1
Fetching projects: 80% (290/362) error: Failed connect to github.com:443; Connection refused while accessing https://github.com/CyanogenMod/android_hardware_qcom_bt/info/refs
fatal: HTTP request failed
Fetching projects: 87% (315/362) error: Failed connect to github.com:443; Connection refused while accessing https://github.com/CyanogenMod/android_external_guava/info/refs
fatal: HTTP request failed
Fetching projects: 96% (348/362) error: Failed connect to github.com:443; Connection refused while accessing https://github.com/CyanogenMod/android_external_ipsec-tools/info/refs
fatal: HTTP request failed
I can view all the above repos in my web browser so I'm confused as to why git is being refused. My machine is running linux mint 14 nadia following the JB on ubuntu tut
Code:
Fetching project CyanogenMod/android_external_esd Fetching projects: 98% (436/444)
Fetching project CyanogenMod/android_external_bouncycastle
Fetching project CyanogenMod/android_external_embunit
Fetching project CyanogenMod/android_packages_providers_ApplicationsProvider
Fetching project CyanogenMod/android_external_zxing Fetching projects: 99% (440/444)
Fetching project CyanogenMod/android_external_safe-iop Fetching projects: 100% (444/444), done.
Syncing work tree: 12% (54/444) fatal: This operation must be run in a work tree
Syncing work tree: 100% (444/444), done.
error: external/chromium_org/third_party/angle_dx11/: platform/external/chromium_org/third_party/angle_dx11 checkout 6cbe8582436925dcc89fbbf6d43d16d57ff6cfab
I do not know what happens. Who can help? Thanks!!
If Repo Sync Fails due to Fetch Errors
Use This Command ->
Code:
repo sync -f
"-f" Means to (continue sync even if a project fails to sync)
Happy Developing
not working for me as I am trying to do an initial sync from Liquid Smooth Lollipop repo ... without -f flag this error stops me:
error: Cannot fetch android_packages_inputmethods_LatinIME
With the -f flag another error relating to same package stops me a step further LOL:
Fetching projects: 98% (447/456) Fetching project CyanogenMod/android_external_ebtables
Fetching projects: 99% (452/456) fatal: Invalid refspec '+refs/heads/lollipop :refs/remotes/ls/lollipop '
error: Cannot fetch android_packages_inputmethods_LatinIME
warn: --force-broken, continuing to sync
Fetching projects: 100% (456/456), done.
Syncing work tree: 87% (397/456) error: in `sync -j2 -f`: revision lollipop in android_packages_inputmethods_LatinIME not found