[yocto] How to debug a mirror fetch error

Jimi Damon jdamon at gmail.com
Thu Jun 29 13:39:43 PDT 2017


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 

So far I have

> 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 \
> 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

> 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 

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

> 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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170629/91d70da7/attachment.html>

More information about the yocto mailing list