Bug 11172

Summary: bitbake: Fetcher failure when building core-image-minimal with "ERROR: socat: not found"
Product: [Build System, Metadata & Runtime] BitBake Reporter: Jose Perez C <jose.perez.carranza>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: High CC: poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 2.3 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Jose Perez C 2017-03-16 17:30:44 UTC
Build Configuration:
BB_VERSION        = "1.33.2"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "ubuntu-16.10"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "2.2+snapshot-20170315"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta              
meta-poky         
meta-yocto-bsp    = "heads/master:6e20b31d5d17133e0fca086e12a0ad06ab5c4cc8"

====== Steps =====

1. bitbake core-image-minimal 

Expected Result: 
Image is created correctly

Actual Result: 
ERROR: opkg-utils-0.3.4+gitAUTOINC+1a708fd73d-r0 do_fetch: Fetcher failure: Fetch command export GIT_PROXY_COMMAND="/usr/local/bin/git-proxy"; export no_proxy="localhost, 127.0.0.1, yctb.zpn.intel.com, 192.168.15.0/24"; export ftp_proxy="http://192.168.15.1:9111"; export https_proxy="http://192.168.15.1:9111"; export http_proxy="http://192.168.15.1:9111"; export PATH="/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/scripts:/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/build/tmp/work/core2-64-poky-linux/opkg-utils/0.3.4+gitAUTOINC+1a708fd73d-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux:/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/build/tmp/work/core2-64-poky-linux/opkg-utils/0.3.4+gitAUTOINC+1a708fd73d-r0/recipe-sysroot/usr/bin/crossscripts:/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/build/tmp/work/core2-64-poky-linux/opkg-utils/0.3.4+gitAUTOINC+1a708fd73d-r0/recipe-sysroot-native/usr/sbin:/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/build/tmp/work/core2-64-poky-linux/opkg-utils/0.3.4+gitAUTOINC+1a708fd73d-r0/recipe-sysroot-native/usr/bin:/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/build/tmp/work/core2-64-poky-linux/opkg-utils/0.3.4+gitAUTOINC+1a708fd73d-r0/recipe-sysroot-native/sbin:/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/build/tmp/work/core2-64-poky-linux/opkg-utils/0.3.4+gitAUTOINC+1a708fd73d-r0/recipe-sysroot-native/bin:/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/bitbake/bin:/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/build/tmp/hosttools"; export HOME="/home/ab"; LANG=C git -c core.fsyncobjectfiles=0 fetch -f --prune --progress git://git.yoctoproject.org/opkg-utils refs/*:refs/* failed with exit code 128, output:
/usr/local/bin/git-proxy: 4: exec: socat: not found

ERROR: opkg-utils-0.3.4+gitAUTOINC+1a708fd73d-r0 do_fetch: Fetcher failure for URL: 'git://git.yoctoproject.org/opkg-utils'. Unable to fetch URL from any source.
ERROR: opkg-utils-0.3.4+gitAUTOINC+1a708fd73d-r0 do_fetch: Function failed: base_do_fetch



******* NOTE **********

A patch was sent already to the list to solve this bug.
Comment 1 Jose Perez C 2017-03-16 17:31:40 UTC
(In reply to comment #0)
> Build Configuration:
> BB_VERSION        = "1.33.2"
> BUILD_SYS         = "x86_64-linux"
> NATIVELSBSTRING   = "ubuntu-16.10"
> TARGET_SYS        = "x86_64-poky-linux"
> MACHINE           = "qemux86-64"
> DISTRO            = "poky"
> DISTRO_VERSION    = "2.2+snapshot-20170315"
> TUNE_FEATURES     = "m64 core2"
> TARGET_FPU        = ""
> meta              
> meta-poky         
> meta-yocto-bsp    = "heads/master:6e20b31d5d17133e0fca086e12a0ad06ab5c4cc8"
> 
> ====== Steps =====
> 
> 1. bitbake core-image-minimal 
> 
> Expected Result: 
> Image is created correctly
> 
> Actual Result: 
> ERROR: opkg-utils-0.3.4+gitAUTOINC+1a708fd73d-r0 do_fetch: Fetcher failure:
> Fetch command export GIT_PROXY_COMMAND="/usr/local/bin/git-proxy"; export
> no_proxy="localhost, 127.0.0.1, yctb.zpn.intel.com, 192.168.15.0/24"; export
> ftp_proxy="http://192.168.15.1:9111"; export
> https_proxy="http://192.168.15.1:9111"; export
> http_proxy="http://192.168.15.1:9111"; export
> PATH="/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/
> build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/ab/autobuilder/yocto-
> worker/nightly-oe-selftest-ubuntu1610/build/scripts:/home/ab/autobuilder/
> yocto-worker/nightly-oe-selftest-ubuntu1610/build/build/tmp/work/core2-64-
> poky-linux/opkg-utils/0.3.4+gitAUTOINC+1a708fd73d-r0/recipe-sysroot-native/
> usr/bin/x86_64-poky-linux:/home/ab/autobuilder/yocto-worker/nightly-oe-
> selftest-ubuntu1610/build/build/tmp/work/core2-64-poky-linux/opkg-utils/0.3.
> 4+gitAUTOINC+1a708fd73d-r0/recipe-sysroot/usr/bin/crossscripts:/home/ab/
> autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/build/tmp/work/
> core2-64-poky-linux/opkg-utils/0.3.4+gitAUTOINC+1a708fd73d-r0/recipe-sysroot-
> native/usr/sbin:/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-
> ubuntu1610/build/build/tmp/work/core2-64-poky-linux/opkg-utils/0.3.
> 4+gitAUTOINC+1a708fd73d-r0/recipe-sysroot-native/usr/bin:/home/ab/
> autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/build/tmp/work/
> core2-64-poky-linux/opkg-utils/0.3.4+gitAUTOINC+1a708fd73d-r0/recipe-sysroot-
> native/sbin:/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/
> build/build/tmp/work/core2-64-poky-linux/opkg-utils/0.3.
> 4+gitAUTOINC+1a708fd73d-r0/recipe-sysroot-native/bin:/home/ab/autobuilder/
> yocto-worker/nightly-oe-selftest-ubuntu1610/build/bitbake/bin:/home/ab/
> autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1610/build/build/tmp/
> hosttools"; export HOME="/home/ab"; LANG=C git -c core.fsyncobjectfiles=0
> fetch -f --prune --progress git://git.yoctoproject.org/opkg-utils
> refs/*:refs/* failed with exit code 128, output:
> /usr/local/bin/git-proxy: 4: exec: socat: not found
> 
> ERROR: opkg-utils-0.3.4+gitAUTOINC+1a708fd73d-r0 do_fetch: Fetcher failure
> for URL: 'git://git.yoctoproject.org/opkg-utils'. Unable to fetch URL from
> any source.
> ERROR: opkg-utils-0.3.4+gitAUTOINC+1a708fd73d-r0 do_fetch: Function failed:
> base_do_fetch
> 
> 
> 
> ******* NOTE **********
> 
> A patch was sent already to the list to solve this bug.

https://patchwork.openembedded.org/series/5776/#
Comment 3 Jose Perez C 2017-04-11 20:20:55 UTC
This was verified on 2.3 M3 rc2 and is working correctly 

poky commit: 415b72ffcbd26e5f3664370d8b2a9b8105fb6342