[poky] build issues when behind a proxy

Roseville House championoaks at gmail.com
Tue Jan 21 00:47:21 PST 2014


When I commented out socat in git-proxy I made some progress but still
failed on following  URLs


ERROR: Function failed: Fetcher failure for URL:
'git://git.yoctoproject.org/opkg-utils'. Unable to fetch URL from any
source.
ERROR: Function failed: Fetcher failure for URL:
'git://git.yoctoproject.org/matchbox-keyboard;branch=matchbox-keyboard-0-1'.
Unable to fetch URL from any source.
ERROR: Function failed: Fetcher failure for URL:
'git://git.yoctoproject.org/yocto-kernel-tools.git'. Unable to fetch
URL from any source.
ERROR: Function failed: Fetcher failure for URL:
'git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git'. Unable to
fetch URL from any source.
WARNING: Failed to fetch URL
git://git.yoctoproject.org/linux-yocto-3.10.git;bareclone=1;branch=standard/common-pc/base,meta;name=machine,meta,
attempting MIRRORS if available

On Tue, Jan 21, 2014 at 12:34 AM, Roseville House
<championoaks at gmail.com> wrote:
> Thanks a lot for your reply :)
> I followed the instructions but still stuck
>
> user at user:~/yocto/poky/build$ echo $GIT_PROXY_COMMAND
> /usr/local/bin/git-proxy
> user at user:~/yocto/poky/build$ cat /usr/local/bin/git-proxy
> #!/bin/bash
> PROXY=proxy.company.com
> PORT=901
> exec socat STDIO SOCKS4:$proxy:$1:$2
> case $1 in
> # list git servers here that you do not want to use
> # the proxy with, separated by a pipe character '|' as below:
>
> review.tizen.org)
>    METHOD="-X connect"
>          ;;
> *)
>  METHOD="-X 5 -x ${PROXY}:${PORT}"
>  #The line above is applicable to Ubuntu and openSUSE.
>  #For Fedora, use the variation below since it only supports socks v4.
>  #METHOD="-X 4 -x ${PROXY}:${PORT}"
>          ;;
>  esac
>
>  nc $METHOD $*
> user at user:~/yocto/poky/build$ cat ~/.gitconfig
> [http]
> proxy = http://proxy.company.com:901
> [core]
> gitProxy = git-proxy
>
> On Tue, Jan 21, 2014 at 12:11 AM, Laurentiu Palcu
> <laurentiu.palcu at intel.com> wrote:
>> You're probably missing the GIT_PROXY_COMMAND environment variable.
>>
>> Here's how to set the environment up:
>> https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
>>
>> Laurentiu
>>
>> On Tue, Jan 21, 2014 at 12:02:32AM -0800, Roseville House wrote:
>>> I followed the steps listed here
>>> https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
>>>   still seeing bunch of errors while fetching bitbake -c fetchall
>>> core-image-sato
>>>
>>> ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
>>>
>>> 2014/01/20 23:45:37 socat[30877] E getaddrinfo("", "(null)",
>>> {1,0,1,6}, {}): Name or service not known
>>>
>>> fatal: Could not read from remote repository.
>>>
>>>
>>>
>>> Please make sure you have the correct access rights
>>>
>>> and the repository exists.
>>>
>>>
>>>
>>> ERROR: Function failed: Fetcher failure for URL:
>>> 'git://git.yoctoproject.org/matchbox-keyboard;branch=matchbox-keyboard-0-1'.
>>> Unable to fetch URL from any source.
>>>
>>> ERROR: Logfile of failure stored in:
>>> /home/username/yocto/poky/build/tmp/work/i586-poky-linux/matchbox-keyboard/0.0+gitAUTOINC+217f1bfe14-r4/temp/log.do_fetch.30839
>>>
>>> ERROR: Task 230
>>> (/home/username/yocto/poky/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb,
>>> do_fetch) failed with exit code '1'
>>>
>>> ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
>>>
>>> 2014/01/20 23:45:37 socat[30887] E getaddrinfo("", "(null)",
>>> {1,0,1,6}, {}): Name or service not known
>>>
>>> fatal: Could not read from remote repository.
>>>
>>>
>>>
>>> Please make sure you have the correct access rights
>>>
>>> and the repository exists.
>>>
>>>
>>>
>>> ERROR: Function failed: Fetcher failure for URL:
>>> 'git://git.yoctoproject.org/opkg-utils'. Unable to fetch URL from any
>>> source.
>>>
>>> ERROR: Logfile of failure stored in:
>>> /home/username/yocto/poky/build/tmp/work/i586-poky-linux/opkg-utils/0.1.8+gitAUTOINC+fd4a3a4c20-r0/temp/log.do_fetch.30843
>>>
>>> ERROR: Task 111
>>> (/home/username/yocto/poky/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb,
>>> do_fetch) failed with exit code '1'
>>>
>>> WARNING: Failed to fetch URL git://git.yoctoproject.org/opkg-utils,
>>> attempting MIRRORS if available
>>>
>>> ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
>>>
>>> 2014/01/20 23:45:37 socat[30890] E getaddrinfo("", "(null)",
>>> {1,0,1,6}, {}): Name or service not known
>>>
>>> fatal: Could not read from remote repository.
>>>
>>>
>>>
>>> Please make sure you have the correct access rights
>>>
>>> and the repository exists.
>>>
>>>
>>>
>>> ERROR: Function failed: Fetcher failure for URL:
>>> 'git://git.yoctoproject.org/yocto-kernel-tools.git'. Unable to fetch
>>> URL from any source.
>>>
>>> ERROR: Logfile of failure stored in:
>>> /home/username/yocto/poky/build/tmp/work/x86_64-linux/kern-tools-native/0.2+gitAUTOINC+a42509b01c-r12/temp/log.do_fetch.30842
>>>
>>> ERROR: Task 119
>>> (/home/username/yocto/poky/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb,
>>> do_fetch) failed with exit code '1'
>>>
>>> ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
>>>
>>> 2014/01/20 23:45:37 socat[31033] E getaddrinfo("", "(null)",
>>> {1,0,1,6}, {}): Name or service not known
>>>
>>> fatal: Could not read from remote repository.
>>>
>>>
>>>
>>> Please make sure you have the correct access rights
>>>
>>> and the repository exists.
>>>
>>>
>>>
>>> ERROR: Function failed: Fetcher failure for URL:
>>> 'git://git.yoctoproject.org/opkg-utils'. Unable to fetch URL from any
>>> source.
>>>
>>> ERROR: Logfile of failure stored in:
>>> /home/username/yocto/poky/build/tmp/work/x86_64-linux/opkg-utils-native/0.1.8+gitAUTOINC+fd4a3a4c20-r0/temp/log.do_fetch.30844
>>>
>>> ERROR: Task 31 (virtual:native:/home/username/yocto/poky/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb,
>>> do_fetch) failed with exit code '1'
>>>
>>> ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
>>>
>>> 2014/01/20 23:45:37 socat[30888] E getaddrinfo("", "(null)",
>>> {1,0,1,6}, {}): Name or service not known
>>>
>>> fatal: Could not read from remote repository.
>>>
>>>
>>>
>>> Please make sure you have the correct access rights
>>>
>>> and the repository exists.
>>>
>>>
>>>
>>> ERROR: Function failed: Fetcher failure for URL:
>>> 'git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git'. Unable to
>>> fetch URL from any source.
>>>
>>> ERROR: Logfile of failure stored in:
>>> /home/username/yocto/poky/build/tmp/work/x86_64-linux/kmod-native/16+gitAUTOINC+36c4bb928a-r0/temp/log.do_fetch.30841
>>>
>>> ERROR: Task 129
>>> (/home/username/yocto/poky/meta/recipes-kernel/kmod/kmod-native_git.bb,
>>> do_fetch) failed with exit code '1'
>>>
>>> WARNING: Failed to fetch URL
>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git, attempting
>>> MIRRORS if available
>>>
>>> ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
>>>
>>> 2014/01/20 23:45:38 socat[31226] E getaddrinfo("", "(null)",
>>> {1,0,1,6}, {}): Name or service not known
>>>
>>> fatal: Could not read from remote repository.
>>>
>>>
>>>
>>> Please make sure you have the correct access rights
>>>
>>> and the repository exists.
>>>
>>>
>>>
>>> ERROR: Function failed: Fetcher failure for URL:
>>> 'git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git'. Unable to
>>> fetch URL from any source.
>>>
>>> ERROR: Logfile of failure stored in:
>>> /home/username/yocto/poky/build/tmp/work/i586-poky-linux/kmod/16+gitAUTOINC+36c4bb928a-r0/temp/log.do_fetch.30840
>>>
>>> ERROR: Task 218
>>> (/home/username/yocto/poky/meta/recipes-kernel/kmod/kmod_git.bb,
>>> do_fetch) failed with exit code '1'
>>>
>>> Waiting for 1 running tasks to finish:
>>>
>>> 0: linux-yocto-3.10.25+gitAUTOINC+4d658aa580_79af968f2f-r0 do_fetch (pid 30845)
>>> _______________________________________________
>>> poky mailing list
>>> poky at yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/poky


More information about the poky mailing list