Skip to contentSkip to conversation

How to debug a mirror fetch error

DISCUSSION Jimi Damon 1 participant 1 message Jun 29, 2017

lore
Share & tools
lore

Jimi Damon

author
#0 lore raw

Hi,

I've gotten almost all of my files downloaded using a local mirror for a new build. I'm having trouble debugging one specific case where it appears my mirror rules can't find the package that it should be finding in the local mirror directory. This is my hypothesis as I've worked through other issues by adding more rules to the MIRRORS variable in local.conf

So far I have

Quoted 10 lines

MIRRORS ?= "\

git://.*/.*         file://media/build/mirror/ \n \
git://.*/.*/.*      file://media/build/mirror/ \n \
git://.*/.*/.*/.*   file://media/build/mirror/ \n \
ftp://.*/.*         file://media/build/mirror/ \n \
http://.*/.*        file://media/build/mirror/ \n \
svn://.*/.*         file://media/build/mirror/ \n \
https://.*/.*       file://media/build/mirror/ \n \
https://.*/.*/.*    file://media/build/mirror/ \n \
Quoted 2 lines

https://.*/.*/.*/.* file://media/build/mirror/ \n \
"

I'm running into a problem debugging while this one final package isn't being found from my local mirror. The package is adbd and the error I'm seeing is

Quoted 6 lines

ERROR: adbd-android-5.0.1_r1-r0 do_fetch: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command git -c core.fsyncobjectfiles=0 ls-remote https://android.googlesource.com/platform/system/core (for url None)
ERROR: adbd-android-5.0.1_r1-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /media/build/NewestBuild/build-nitrogen6x/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/adbd/android-5.0.1_r1-r0/temp/log.do_fetch.25649
ERROR: Task (/media/build/NewestBuild/sources/meta-boot2qt/recipes/adbd/adbd.bb:do_fetch) failed with exit code '1'
DEBUG: Teardown for bitbake-worker
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and 1 failed.

I've inspected the mirror file, /media/build/mirror and there is the package git2_android.googlesource.com.platform.system.core.tar.gz

If I untar it to another location, I find it is a git repo that does in fact have adbd

Quoted 8 lines

mkdir tmpdir
cp git2_android.googlesource.com.platform.system.core.tar.gz tmpdir cd tmpdir
tar -xvf git2_android.googlesource.com.platform.system.core.tar.gz mkdir ../testdir
cd ../testdir
git clone ../tmpdir
cd tmpdir

and adb exists

What is the recommended way to debug this more ?

I've seen on yocto the -nv switch, but this doesn't seem to produce any useful information for a local mirror Git clone.

Thanks,