repo Sync Failure "not a valid SHA1" - General Topics

when trying to sync the source for a rom by existx, i get the following error:
Code:
$ repo sync -f
Fetching projects: 6% (17/274) Exception in thread Thread-19:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/patrick/src/aospX/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/home/patrick/src/aospX/.repo/repo/project.py", line 985, in Sync_NetworkHalf
self._InitMRef()
File "/home/patrick/src/aospX/.repo/repo/project.py", line 1786, in _InitMRef
self._InitAnyMRef(R_M + self.manifest.branch)
File "/home/patrick/src/aospX/.repo/repo/project.py", line 1798, in _InitAnyMRef
self.bare_git.UpdateRef(ref, dst, message = msg, detach = True)
File "/home/patrick/src/aospX/.repo/repo/project.py", line 1972, in UpdateRef
self.update_ref(*cmdv)
File "/home/patrick/src/aospX/.repo/repo/project.py", line 2033, in runner
p.stderr))
GitError: platform/external/aac update-ref: fatal: 2bda038c163298531d47394bc2c09e1409c5d0db^0: not a valid SHA1
Fetching projects: 7% (20/274)
error: Exited sync due to fetch errors
I took at look at Google's git site and saw the the the SHA1 matches the one in the manifest file (se attachment).
Line from the manifest file:
Code:
<project name="platform/external/aac" path="external/aac" revision="2bda038c163298531d47394bc2c09e1409c5d0db"/>
I have tried resyncing, and the force option (-f), but nothing has worked thus far.
I'm running Ubuntu 10.04 x86_64, and I have all the required packages for building roms installed. Can anyone help?

after waiting for the next commit it is working now. not sure what was wrong.

Related

Git error...

This error happened after a repo sync, where I was downloading the entire AOSP source. There is no trace of the downloaded source...which is kind of lame as I just waited for a few hours...
But whatever...time to sleep I guess. Let me know if you have any ideas
Here's the error:
Code:
Fetching projects: 100% (158/158), done.
Traceback (most recent call last):
File "/Users/wdfowty/bin/mydroid/.repo/repo/main.py", line 235, in <module>
_Main(sys.argv[1:])
File "/Users/wdfowty/bin/mydroid/.repo/repo/main.py", line 217, in _Main
repo._Run(argv)
File "/Users/wdfowty/bin/mydroid/.repo/repo/main.py", line 123, in _Run
cmd.Execute(copts, cargs)
File "/Users/wdfowty/bin/mydroid/.repo/repo/subcmds/sync.py", line 338, in Execute
project.Sync_LocalHalf(syncbuf)
File "/Users/wdfowty/bin/mydroid/.repo/repo/project.py", line 712, in Sync_LocalHalf
lost = self._revlist(not_rev(revid), HEAD)
File "/Users/wdfowty/bin/mydroid/.repo/repo/project.py", line 1211, in _revlist
return self.work_git.rev_list(*a, **kw)
File "/Users/wdfowty/bin/mydroid/.repo/repo/project.py", line 1356, in rev_list
p.stderr))
error.GitError: platform/external/opencore rev-list ('^61bf9af643abf0011dcf82ae8a436aeb7e8aae97', 'HEAD', '--'): fatal: bad object HEAD

[Q] error Downloading AOSP

I was downloading the AOSP following the steps mentioned in the page
source.android.com/source/downloading
and I kept geting the same error when i was initializing the Repo client:
[email protected]:/home/andres# repo init -u android.googlesource.com/platform/manifest
Traceback (most recent call last):
File "/root/bin/repo", line 91, in <module>
import readline
ImportError: No module named readline
I tried doing loading the python tools using:
apt-get install python-setuptools
and then the: easy_install pyreadline
Later I got the same error, did someone solve this problem???

[Q] CM9 souce code download error

Hi friends,
I am a noob to XDA, and have a question to ask for help.
I try to download CM9 souce code as steps:
1. repo init -u XXXXXXX -b ics
2. repo sync
But when run "repo sync", the download can't complete.
The error info is,
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/nick/android_project/cyanogen_ics/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/home/nick/android_project/cyanogen_ics/.repo/repo/project.py", line 978, in Sync_NetworkHalf
and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
File "/home/nick/android_project/cyanogen_ics/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
File "/home/nick/android_project/cyanogen_ics/.repo/repo/project.py", line 1583, in _FetchBundle
raise DownloadError('%s: %s ' % (req.get_host(), str(e)))
DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>
How can I resovle this problem?
Thanks a lot!
Could anyone help me to resolve this problem?
Try again, this happens sometimes.
Sent from my LT26i using XDA
K900 said:
Try again, this happens sometimes.
Sent from my LT26i using XDA
Click to expand...
Click to collapse
Just try again, still doesn't work
Exception in thread Thread-1:9/60988), 4.41 MiB | 203 KiB/s /60988), 1.81 MiB | 169 KiB/s
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/nick/android_project/cyanogen_ics/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/home/nick/android_project/cyanogen_ics/.repo/repo/project.py", line 978, in Sync_NetworkHalf
and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
File "/home/nick/android_project/cyanogen_ics/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
File "/home/nick/android_project/cyanogen_ics/.repo/repo/project.py", line 1583, in _FetchBundle
raise DownloadError('%s: %s ' % (req.get_host(), str(e)))
DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>

Help with ROM build....

So I have decided to take on the task of building SlimBean using the latest Aries kernel. I believe I have everything setup correctly. Trouble is I am getting server timeout errors. I'm not so familiar with Linux and Git and am having trouble finding where these errors are occurring.
My build started like this:
I used the stickied thread and created a new folder inside my /android called "slimRoms"
Next step was to do the init and sync:
Code:
repo init -u git://github.com/SlimRoms/platform_manifest.git -b jb4.2 && mkdir -p .repo/local_manifests && curl https://raw.github.com/teamuserdebug/page/manifests/manifests/cm10.1-aries.xml > .repo/local_manifests/local_manifest.xml && repo sync
The reason that is different from the stickied thread is due to a local_manifests not found error. When I would open it it would say something like " you are being redirected" and would provived the link I used.
It goes threw the sync for a bit then errors out after maybe 5-10 minutes.
There is an error at line 1852 in the log.
Code:
52 77.8M 52 40.5M 0 0 520k 0 0:02:33 0:01:19 0:01:14 533kerror: Cannot fetch teamuserdebug/android_device_samsung_aries-common
Receiving objects: 1% (5737/383283), 1.65 MiB | 357 KiB/s
I get this as well:
Code:
[email protected]:~$ cd ~/android/slimRoms
[email protected]:~/android/slimRoms$ repo sync
Fetching projects: 4% (14/337) fatal: remote error: Git repository not found
fatal: remote error: Git repository not found
Fetching projects: 11% (38/337) % Total %
Is this just something I'll have to wait out? Or am I doing it all wrong :/

[Q] Error in building CM12.0 for Xperia-L

I tried to builld CM12 for Xperia-L. After issuing 'breakfast taoshan', the process apparently got stuck at 66%. I aborted by pressing Ctrl+C. When I am reissuing the command, it's throwing error. Can anybody please help me out?
Code:
[email protected]:~/CM12/build$ breakfast taoshan
ls: cannot access device/*/taoshan/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_taoshan". Stop.
Device taoshan not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_sony_taoshan
Default revision: cm-12.0
Checking branch info
Adding dependency: CyanogenMod/android_device_sony_taoshan -> device/sony/taoshan
Using default branch for android_device_sony_taoshan
Syncing repository to retrieve project.
Fetching project CyanogenMod/android_device_sony_taoshan
Fetching projects: 100% (1/1), done.
Repository synced!
Looking for dependencies
Adding dependencies to manifest
Adding dependency: CyanogenMod/android_device_sony_msm8960-common -> device/sony/msm8960-common
Using default branch for android_device_sony_msm8960-common
Adding dependency: CyanogenMod/android_kernel_sony_msm8930 -> kernel/sony/msm8930
Using default branch for android_kernel_sony_msm8930
Adding dependency: CyanogenMod/android_hardware_qcom_fm -> hardware/qcom/fm
Using default branch for android_hardware_qcom_fm
Syncing dependencies
Fetching project CyanogenMod/android_kernel_sony_msm8930
Fetching project CyanogenMod/android_hardware_qcom_fm
Fetching project CyanogenMod/android_device_sony_msm8960-common
Fetching projects: 66% (2/3) ^C
^C^C^C^C^C^C^C^C
error: Cannot fetch CyanogenMod/android_kernel_sony_msm8930
aborted by user
Looking for dependencies
Dependencies file not found, bailing out.
Looking for dependencies
Dependencies file not found, bailing out.
Looking for dependencies
Dependencies file not found, bailing out.
Done
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/sony/taoshan/cm.mk]]: "device/sony/common/resources.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_taoshan'
** Do you have the right repo manifest?
=======================================================
[email protected]:~/CM12/build$
[email protected]:~/CM12/build$ breakfast taoshan
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/sony/taoshan/cm.mk]]: "device/sony/common/resources.mk" does not exist. Stop.
Device taoshan not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_sony_taoshan
Default revision: cm-12.0
Checking branch info
CyanogenMod/android_device_sony_taoshan already exists
Syncing repository to retrieve project.
Fetching project CyanogenMod/android_device_sony_taoshan
Fetching projects: 100% (1/1), done.
Repository synced!
Looking for dependencies
Done
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/sony/taoshan/cm.mk]]: "device/sony/common/resources.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_taoshan'
** Do you have the right repo manifest?
clone this paste RAW Paste Data
Pastebin.com Tools & Applications
iPhone/iPad Windows Firefox Chrome WebOS Android Mac Opera Click.to UNIX WinPhone
create new paste | api | trends | syntax languages | faq | tools | privacy | cookies | contact | dmca | advertise on pastebin | go pro
Follow us: pastebin on facebook | pastebin on twitter | pastebin in the news
Dedicated Server Hosting by Steadfast
Pastebin v3.11 rendered in: 0.008 seconds
Holmes.Sherlock said:
I tried to builld CM12 for Xperia-L. After issuing 'breakfast taoshan', the process apparently got stuck at 66%. I aborted by pressing Ctrl+C. When I am reissuing the command, it's throwing error. Can anybody please help me out?
Click to expand...
Click to collapse
I'm getting the same error, seems like repo couldn't find the device kernel from cyanogenmod's github so I added a local_manifest extracted from android_device_sony_taoshan/blob/cm-12.0/cm.dependencies/ but to no avail. Still getting the error as below.
Code:
[email protected]:~/android/system$ breakfast taoshan
including vendor/cm/vendorsetup.sh
build/core/combo/select.mk:65: build/core/combo/HOST_linux-.mk: No such file or directory
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
build/core/clang/config.mk:76: build/core/clang/HOST_.mk: No such file or directory
make: *** No rule to make target `build/core/clang/HOST_.mk'. Stop.
Device taoshan not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_sony_taoshan
Default revision: cm-12.0
Checking branch info
CyanogenMod/android_device_sony_taoshan already exists
Syncing repository to retrieve project.
fatal: error parsing manifest /home/manu/android/system/.repo/local_manifests/myoldphone.xml: XML or text declaration not at start of entity: line 3, column 0
Repository synced!
Looking for dependencies
Done
build/core/combo/select.mk:65: build/core/combo/HOST_linux-.mk: No such file or directory
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
build/core/clang/config.mk:76: build/core/clang/HOST_.mk: No such file or directory
make: *** No rule to make target `build/core/clang/HOST_.mk'. Stop.
** Don't have a product spec for: 'cm_taoshan'
** Do you have the right repo manifest?
[email protected]:~/android/system$
Any idea how to get past this issue?
manubhargav said:
I'm getting the same error, seems like repo couldn't find the device kernel from cyanogenmod's github so I added a local_manifest extracted from android_device_sony_taoshan/blob/cm-12.0/cm.dependencies/ but to no avail. Still getting the error as below.
Code:
[email protected]:~/android/system$ breakfast taoshan
including vendor/cm/vendorsetup.sh
build/core/combo/select.mk:65: build/core/combo/HOST_linux-.mk: No such file or directory
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
build/core/clang/config.mk:76: build/core/clang/HOST_.mk: No such file or directory
make: *** No rule to make target `build/core/clang/HOST_.mk'. Stop.
Device taoshan not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_sony_taoshan
Default revision: cm-12.0
Checking branch info
CyanogenMod/android_device_sony_taoshan already exists
Syncing repository to retrieve project.
fatal: error parsing manifest /home/manu/android/system/.repo/local_manifests/myoldphone.xml: XML or text declaration not at start of entity: line 3, column 0
Repository synced!
Looking for dependencies
Done
build/core/combo/select.mk:65: build/core/combo/HOST_linux-.mk: No such file or directory
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
build/core/clang/config.mk:76: build/core/clang/HOST_.mk: No such file or directory
make: *** No rule to make target `build/core/clang/HOST_.mk'. Stop.
** Don't have a product spec for: 'cm_taoshan'
** Do you have the right repo manifest?
[email protected]:~/android/system$
Any idea how to get past this issue?
Click to expand...
Click to collapse
your manifest seems broken.... please make a clean sync (delete complete workingfolder and resync)
SdtBarbarossa said:
your manifest seems broken.... please make a clean sync (delete complete workingfolder and resync)
Click to expand...
Click to collapse
Thank you for your reply, I overlooked some requirements for building from source and I had a 32-bit Ubuntu system which gave me the error
Code:
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
Now switching to 64-bit Ubuntu.

Categories

Resources