CyanogenMod repo sync error - Android Q&A, Help & Troubleshooting

Hi. So I decided to try out building from source so I setup a dual boot with Windows 8 and Ubuntu 12.10. I set everything up and started syncing the CM10.1 repo and all seems to be going well and then I'm nearly finished (at 99%) when it slows down at syncing something and then finally gives me this error:
Code:
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
remote: Counting objects: 20804, done.
remote: Compressing objects: 100% (6058/6058), done.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
error: Cannot fetch CyanogenMod/android_prebuilt
error: Exited sync due to fetch errors
So I was just wondering if someone could help me out and/or if someone else was having the same problems? Thanks.

I'm having the same problem as are others most likely the cm server is going through updates or getting over welmed with downloads at one time but seems to a problem right know I've repoed the aokp with no problems hopefully starts working right
Sent from my GT-N7000 using XDA Premium HD app

smithchipz said:
Hi. So I decided to try out building from source so I setup a dual boot with Windows 8 and Ubuntu 12.10. I set everything up and started syncing the CM10.1 repo and all seems to be going well and then I'm nearly finished (at 99%) when it slows down at syncing something and then finally gives me this error:
Code:
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
remote: Counting objects: 20804, done.
remote: Compressing objects: 100% (6058/6058), done.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
error: Cannot fetch CyanogenMod/android_prebuilt
error: Exited sync due to fetch errors
So I was just wondering if someone could help me out and/or if someone else was having the same problems? Thanks.
Click to expand...
Click to collapse
Hey....i was having issues with stuff as well....remove android_prebuilt from manifest....fully sync everything...then go to github.com/cyanogenmod/android_prebuilt and download the zip for whatever branch you want and add to android folder ....done

_Zoom said:
Hey....i was having issues with stuff as well....remove android_prebuilt from manifest....fully sync everything...then go to github.com/cyanogenmod/android_prebuilt and download the zip for whatever branch you want and add to android folder ....done
Click to expand...
Click to collapse
Oh kay thank you I'm doing that now and all seems to be going good. What folder do I put the android_prebuilt files into though?
Sent from my GT-I9000 using xda app-developers app

Android.....it is your working folder....the main dir
"Imagination is more important than knowledge." -Albert Einstein

_Zoom said:
Android.....it is your working folder....the main dir
"Imagination is more important than knowledge." -Albert Einstein
Click to expand...
Click to collapse
Thanks very much it all seems to be working now
Sent from my Transformer TF101 using xda app-developers app

And then, do we need re-sync again?
Sent from my GT-I9300 using XDA Premium 4 mobile app

Related

[Q] [CM 10.1 Building] Local_manifest.xml deprecated

I have built android before on Ubuntu (12.04). This is my first attempt at building on arch linux. (I temp switch to python2 when building android)
However when I do a repo sync, I get a lot of warnings which I never got on Ubuntu (baring in mind I haven't built for about a month, I'm a little rusty ;P)
Code:
[[email protected] system]$ repo sync
warning: local_manifest.xml is deprecated; put local manifests in local_manifests instead
Fetching projects: 3% (11/354) remote: Counting objects: 5, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 3 (delta 2), reused 3 (delta 2)
Unpacking objects: 100% (3/3), done.
Fetching projects: 4% (15/354) From git://github.com/CyanogenMod/android_build
eded398..c4fd5ea cm-10.1 -> github/cm-10.1
Fetching projects: 81% (287/354) remote: Counting objects: 9, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 5 (delta 3), reused 5 (delta 3)
Unpacking objects: 100% (5/5), done.
From git://github.com/CyanogenMod/android_packages_apps_Trebuchet
96fee2c..a0e17fc cm-10.1 -> github/cm-10.1
Fetching projects: 100% (354/354), done.
warning: local_manifest.xml is deprecated; put local manifests in local_manifests instead
Checking out files: 100% (38123/38123), done.ut files: 23% (9009/38123)
Syncing work tree: 100% (354/354), done.
[[email protected] system]$
I have tried creating a folder local_manifest and putting in the xml. I have tried putting the xml into manifests (both in ~/android/system/.repo) but neither seemed to work
any ideas?
(P.S I'm building for Nexus 7 CM 10.1 and am following the cyanogenmod N7 tutorial on their wiki)
I had the same issue and it was from a corrupt .repo directory. Try deleting the repo directory and starting over.
sudo rm -r ~/android/system/.repo
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo sync
Hope this helps.
[edited to show instructions for CM 10.1 instead of AOKP ]
rm -r ./.repo/local_manifest.xml
Nice one
ccb1208 said:
I had the same issue and it was from a corrupt .repo directory. Try deleting the repo directory and starting over.
sudo rm -r ~/android/system/.repo
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo sync
Hope this helps.
[edited to show instructions for CM 10.1 instead of AOKP ]
Click to expand...
Click to collapse
I think it worked, i'm sinking repo now (and have had no warning messages)
I had also tried nuking android and that didn't work before, weird :S
If I can't build cm, I did see today a warning that it is currently not working anyways... Ill post back a conclusion
I don't ever use the local_manifest.xml anyways but I tried just now to do a new build and local_manifests.xml just didn't grab anything i put in it. so I am back to junking up my manifest.xml with no local_manifest.xml or local_manifests.xml If y'all know a better way please share. TY:highfive:
justlovejoy said:
I don't ever use the local_manifest.xml anyways but I tried just now to do a new build and local_manifests.xml just didn't grab anything i put in it. so I am back to junking up my manifest.xml with no local_manifest.xml or local_manifests.xml If y'all know a better way please share. TY:highfive:
Click to expand...
Click to collapse
How would I use manifest.xml instead of local?
(Also, I have installed a ubuntu 12.10 partition now, so I'm building on that since most support, for anything linux in fact, seems to be aimed at debian base)

need some help

Hi trying to build miui v5 with patchrom and i keep getting this error any ideas?
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
remote: Counting objects: 46819, done.
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
i done tried git fskf
thanks in advance.
i know i'm bumping an irrelevant thread, but does anyone know why bbrad's account got canned again? he just came back iirc

[Q] Multiple Errors while "repo sync"ing CyanogenMod 12.1

I've "repo sync"ed almost 89% of the CM12.1 source and now when I'm trying to repo sync the source, I'm getting the following errors-
Cannot fetch CyanogenMod/android_random_package_name
RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
SSL read: error:00000000:lib(0):func(0):reason(0), errno 104
I'm also getting pathetically low download speeds of ~5-10Kbps on a 1Mbps connection. I'm using Arch Linux and I followed the CyanogenMod wiki and the Android Wiki.
Am I doing something wrong?
Could be that github is being attacked again. It happens alot. Just wait awhile and try again.
zelendel said:
Could be that GitHub is being attacked again. It happens a lot. Just wait awhile and try again.
Click to expand...
Click to collapse
Attacked? By hackers?
ChosenTorture said:
Attacked? By hackers?
Click to expand...
Click to collapse
In a way. It has been getting alot of DDOS attacks lately.

[Q&A] [DEV] Docker template for building CyanogenMod

Q&A for [DEV] Docker template for building CyanogenMod
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [DEV] Docker template for building CyanogenMod. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Docker issues?
I'm running Windows 10 and I've installed Docker on my device. Everything works until I use the "./run.sh" command. It keeps returning:
Code:
invalid value "c:\\Users\\booge_000\\docker-cyanogenmod\\android;C:\\Program Files (x86)\\Git\\home\\cmbuild\\android" for flag -v: \Users\booge_000\docker-cyanogenmod\android;C:\Program Files (x86)\Git\home\cmbuild\android is not an absolute path
See 'c:\Program Files\Boot2Docker for Windows\docker.exe run --help'.
Is there any way I can fix this?
spenceboy98 said:
I'm running Windows 10 and I've installed Docker on my device. Everything works until I use the "./run.sh" command. It keeps returning:
Code:
invalid value "c:\\Users\\booge_000\\docker-cyanogenmod\\android;C:\\Program Files (x86)\\Git\\home\\cmbuild\\android" for flag -v: \Users\booge_000\docker-cyanogenmod\android;C:\Program Files (x86)\Git\home\cmbuild\android is not an absolute path
See 'c:\Program Files\Boot2Docker for Windows\docker.exe run --help'.
Is there any way I can fix this?
Click to expand...
Click to collapse
Hmm, I haven't tried this out with Windows (10 and older). I'm surprised that you can even run run.sh because that is a Unix shell script.
However if this really works then it's probably just a problem of setting the right paths for the shared volumes. I suggest that you remove the two "-v ..." parameters from run.sh and see if that helps.
Most likely I don't think that your problem is specific to my Docker project, it's rather a general issue with Docker on Windows. So you might ask on the Docker forum: https://forums.docker.com/
You can also install Ubuntu 14.04 (e.g. inside a VirtualBox machine) and install it there. This will work for sure!
Now I'm using VirtualBox with Ubuntu 14.04. I'm syncing the source files and now it's giving me:
Code:
Fetching projects: 99% (552/557) fatal: Not a git repository: '/home/cmbuild/android/.repo/projects/system/netd.git'
error: Cannot fetch CyanogenMod/android_system_netd
error: Exited sync due to fetch errors
spenceboy98 said:
Now I'm using VirtualBox with Ubuntu 14.04. I'm syncing the source files and now it's giving me:
Code:
Fetching projects: 99% (552/557) fatal: Not a git repository: '/home/cmbuild/android/.repo/projects/system/netd.git'
error: Cannot fetch CyanogenMod/android_system_netd
error: Exited sync due to fetch errors
Click to expand...
Click to collapse
Delete the netd.git folder and sync again.
michael_ch said:
Delete the netd.git folder and sync again.
Click to expand...
Click to collapse
It keeps recreating the folder and giving me the same error.
spenceboy98 said:
It keeps recreating the folder and giving me the same error.
Click to expand...
Click to collapse
Hmm really can't reproduce. Some things to try:
"repo selfupdate" - make sure that repo is up to date
"repo sync -j 1" - sync with only 1 concurrent connection
"repo sync --force-sync" - overwrite an existing git directory if it needs to point to a different object directory
michael_ch said:
Hmm really can't reproduce. Some things to try:
"repo selfupdate" - make sure that repo is up to date
"repo sync -j 1" - sync with only 1 concurrent connection
"repo sync --force-sync" - overwrite an existing git directory if it needs to point to a different object directory
Click to expand...
Click to collapse
Okay, I've tried that and it gives me the same error. I've tried deleting the netg file while syncing and then it just gives me this:
Code:
Fetching projects: 72% (394/546) Fetching project CyanogenMod/android_system_netd
fatal: Not a git repository: '/home/cmbuild/android/.repo/projects/system/netd.git'
fatal: Not a git repository: '/home/cmbuild/android/.repo/projects/system/netd.git'
error: Cannot fetch CyanogenMod/android_system_netd (GitError: CyanogenMod/android_system_netd pack-refs: fatal: Not a git repository: '/home/cmbuild/android/.repo/projects/system/netd.git'
)
Traceback (most recent call last):
File "/home/cmbuild/android/.repo/repo/main.py", line 513, in <module>
_Main(sys.argv[1:])
File "/home/cmbuild/android/.repo/repo/main.py", line 489, in _Main
result = repo._Run(argv) or 0
File "/home/cmbuild/android/.repo/repo/main.py", line 162, in _Run
result = cmd.Execute(copts, cargs)
File "/home/cmbuild/android/.repo/repo/subcmds/sync.py", line 672, in Execute
fetched = self._Fetch(to_fetch, opt)
File "/home/cmbuild/android/.repo/repo/subcmds/sync.py", line 363, in _Fetch
self._FetchProjectList(**kwargs)
File "/home/cmbuild/android/.repo/repo/subcmds/sync.py", line 254, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/cmbuild/android/.repo/repo/subcmds/sync.py", line 297, in _FetchHelper
optimized_fetch=opt.optimized_fetch)
File "/home/cmbuild/android/.repo/repo/project.py", line 1181, in Sync_NetworkHalf
no_tags=no_tags)):
File "/home/cmbuild/android/.repo/repo/project.py", line 1960, in _RemoteFetch
self.bare_git.pack_refs('--all', '--prune')
File "/home/cmbuild/android/.repo/repo/project.py", line 2668, in runner
p.stderr))
error.GitError: CyanogenMod/android_system_netd pack-refs: fatal: Not a git repository: '/home/cmbuild/android/.repo/projects/system/netd.git'
I'm going to try to start again from scratch while booting from a disc and see if that makes a difference.
spenceboy98 said:
Okay, I've tried that and it gives me the same error.
Click to expand...
Click to collapse
Hmm, I wonder if one of your local manifest files includes a wrong repository?
What is the output of this:
Code:
grep -ri "netd" .repo/*manifest*
spenceboy98 said:
I'm going to try to start again from scratch while booting from a disc and see if that makes a difference.
Click to expand...
Click to collapse
Ok, let me know! In any case, your problem is clearly not Docker related...
michael_ch said:
Hmm, I wonder if one of your local manifest files includes a wrong repository?
What is the output of this:
Code:
grep -ri "netd" .repo/*manifest*
Ok, let me know! In any case, your problem is clearly not Docker related...
Click to expand...
Click to collapse
I encountered the same error "fatal: Not a git repository: 'xxxxxx/.repo/projects/external/blktrace.git'" and google brought me here.
I tried to delete the blktrace.git, but after I resync it with "repo sync -j1", it created the blktrace.git again and threw the same error out. Then I tried to update the repo, but failed. And the result of "grep -ri "netd" .repo/*manifest*" is like this in the picture.
BobbyCurry said:
I encountered the same error "fatal: Not a git repository: 'xxxxxx/.repo/projects/external/blktrace.git'" and google brought me here.
I tried to delete the blktrace.git, but after I resync it with "repo sync -j1", it created the blktrace.git again and threw the same error out. Then I tried to update the repo, but failed. And the result of "grep -ri "netd" .repo/*manifest*" is like this in the picture.
Click to expand...
Click to collapse
No matter what, it has nothing to do with the Docker image. Besides this, it's really hard for me to help with this because I'm not able to reproduce the issue.
I suggest that you're trying to debug the problem on your own. Run "git fetch" in the corresponding directories and see if that helps, etc.
Good luck!

AOSP help

i am trying to setup aosp in ubuntu 14.04 and i am getting a fatal error when trying to repo sync. any ideas?
fatal: remote error: Service Temporarily Unavailable
remote: Counting objects: 207, done
remote: Finding sources: 100% (506/506)
remote: Total 506 (delta 60), reused 506 (delta 60)
Receiving objects: 100% (506/506), 11.87 MiB | 549.00 KiB/s, done.
Resolving deltas: 100% (60/60), completed with 27 local objects.
fatal: bad object a1d632a7815a0766986c9ff9de501ac1f7afbb7b
error: androidgooglesource/platform/prebuilts/misc[] did not send all necessary objects
error: Cannot fetch platform/prebuilts/misc
warn: --force-broken, continuing to sync
Fetching projects: 100% (455/455)
error: Exited sync due to fetch errors
[email protected]:~/ASDK/workingdir$
what repo is syncing to platform/prebuilts/misc? (you can see that in your manifest xml)
can you "git clone" that repo?
well i got passed that error by doing a complete delete and re-download now im having trouble with the compile stage
including ./external/aac/Android.mk ...
build/core/base_rules.mk:157: *** external/aac: MODULE.TARGET.STATIC_LIBRARIES.libFraunhoferAAC already defined by android/external/aac. Stop.
after reviewing the code i see that it is one of the first files included. why would this be calling this twice?
could this be from not merging the kernel files?
any thoughts
i wont lie i am a complete noob at turning source code in to flash-able images. i have learned a lot from various sources, i actually am taking a liking to this. now i am trying to figure out pre-compiling the kernel and including that with the the build. this is a Android 6.0.1_r3 build. is there much difference in building procedure from android 4-5? any tips and tricks will be greatly appreciated. thanks ahead of time.

Categories

Resources