All of lore.kernel.org
 help / color / mirror / Atom feed
* denzil firewall problems
@ 2012-07-16 23:57 Tim Bird
  2012-07-17  3:56 ` McClintock Matthew-B29882
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Bird @ 2012-07-16 23:57 UTC (permalink / raw)
  To: yocto@yoctoproject.org

Hi all,

I'm trying to take Denzil out for a spin, and when I do bitbake, from inside
Sony (behind our corporate firewall) I get this:

(I was doing 'bitbake poky-image-sato')
-------------
...
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Failed to fetch test data from the network. Please ensure your network is configured correctly.

ERROR: Execution of event handler 'check_sanity_eventhandler' failed
-------------

I tried to follow the instructions at:
https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
but nothing worked.  These look like instructions for SOCKS proxies.
I only have access to HTTP proxies.

Here's what I got from 'bitbake -DDD -v poky-image-sato', after configuring an 'nc'-based git-proxy:
-------------
DEBUG: Fetcher accessed the network with the command git ls-remote git://git.yoctoproject.org/yocto-firewall-test HEAD
DEBUG: Running export HOME="/a/home/tbird"; export SSH_AGENT_PID="1822"; export SSH_AUTH_SOCK="/tmp/keyring-9qrJm0/ssh"; export no_proxy="localhost,127.0.0.0/8"; export
ftp_proxy="http://www-west.sony.com:80"; export http_proxy="http://www-west.sony.com:80"; export GIT_CONFIG="/a/home/tbird/work/yocto/poky-7.0-build/tmp/sysroots/x86_64-linux/etc/gitconfig"; export
GIT_PROXY_COMMAND="/usr/local/bin/git-proxy"; export
PATH="/a/home/tbird/work/yocto/poky-denzil-7.0/bitbake/bin/:/a/home/tbird/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/a/home/tbird/bin/:/a/home/tbird/work/yocto/poky-denzil-7.0/scripts";
git ls-remote git://git.yoctoproject.org/yocto-firewall-test HEAD
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Failed to fetch test data from the network. Please ensure your network is configured correctly.

ERROR: Execution of event handler 'check_sanity_eventhandler' failed
--------------

I seem to recall in previous Yocto versions a mechanism to point the
package fetcher to a mirror.  Is this still available?  If so, where would
I find instructions for this?

Alternatively, I have a builder image for denzil.  Is there a way to use the
material in that image as a source mirror snapshot?

Any help would be appreciated.

Thanks,
 -- Tim

P.S. With regards to disabling the checker (as a possible workaround for
the problem), I found sanity.conf at poky-denzil-7.0/meta/conf/sanity.conf.
I looked at it (and meta/classes/sanity.bbclass) but it's not obvious
to me how I would disable it.

=============================
Tim Bird
Architecture Group Chair, CE Workgroup of the Linux Foundation
Senior Staff Engineer, Sony Network Entertainment
=============================




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: denzil firewall problems
  2012-07-16 23:57 denzil firewall problems Tim Bird
@ 2012-07-17  3:56 ` McClintock Matthew-B29882
  2012-07-17 17:45   ` Tim Bird
  0 siblings, 1 reply; 3+ messages in thread
From: McClintock Matthew-B29882 @ 2012-07-17  3:56 UTC (permalink / raw)
  To: Tim Bird; +Cc: yocto@yoctoproject.org

On Mon, Jul 16, 2012 at 6:57 PM, Tim Bird <tim.bird@am.sony.com> wrote:
> Hi all,
>
> I'm trying to take Denzil out for a spin, and when I do bitbake, from inside
> Sony (behind our corporate firewall) I get this:
>
> (I was doing 'bitbake poky-image-sato')
> -------------
> ...
> ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
>     Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
>     Following is the list of potential problems / advisories:
>
>     Failed to fetch test data from the network. Please ensure your network is configured correctly.
>
> ERROR: Execution of event handler 'check_sanity_eventhandler' failed
> -------------
>
> I tried to follow the instructions at:
> https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
> but nothing worked.  These look like instructions for SOCKS proxies.
> I only have access to HTTP proxies.
>
> Here's what I got from 'bitbake -DDD -v poky-image-sato', after configuring an 'nc'-based git-proxy:
> -------------
> DEBUG: Fetcher accessed the network with the command git ls-remote git://git.yoctoproject.org/yocto-firewall-test HEAD
> DEBUG: Running export HOME="/a/home/tbird"; export SSH_AGENT_PID="1822"; export SSH_AUTH_SOCK="/tmp/keyring-9qrJm0/ssh"; export no_proxy="localhost,127.0.0.0/8"; export
> ftp_proxy="http://www-west.sony.com:80"; export http_proxy="http://www-west.sony.com:80"; export GIT_CONFIG="/a/home/tbird/work/yocto/poky-7.0-build/tmp/sysroots/x86_64-linux/etc/gitconfig"; export
> GIT_PROXY_COMMAND="/usr/local/bin/git-proxy"; export
> PATH="/a/home/tbird/work/yocto/poky-denzil-7.0/bitbake/bin/:/a/home/tbird/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/a/home/tbird/bin/:/a/home/tbird/work/yocto/poky-denzil-7.0/scripts";
> git ls-remote git://git.yoctoproject.org/yocto-firewall-test HEAD

Tim,

Can you run that command outside of the yocto build and it works OK?

Did you set GIT_PROXY_COMMAND in your local.conf? I recall that
git-proxy script on the wiki page not working all that well. (I've
gone through all the same problems with our proxy as well). There is a
connect-proxy utility available on most distros, and then I've been
using this script:

$ cat ../scripts/git-proxy
#!/bin/sh

if [[ "$@" =~ "$GIT_PROXY_IGNORE" ]]
then
	nc $@
else
	/usr/bin/connect-proxy -S wwwgate0.freescale.net:1090 $@
fi

Not 100% sure how it evolved to this point though.

-M




> ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
>     Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
>     Following is the list of potential problems / advisories:
>
>     Failed to fetch test data from the network. Please ensure your network is configured correctly.
>
> ERROR: Execution of event handler 'check_sanity_eventhandler' failed
> --------------
>
> I seem to recall in previous Yocto versions a mechanism to point the
> package fetcher to a mirror.  Is this still available?  If so, where would
> I find instructions for this?
>
> Alternatively, I have a builder image for denzil.  Is there a way to use the
> material in that image as a source mirror snapshot?
>
> Any help would be appreciated.
>
> Thanks,
>  -- Tim
>
> P.S. With regards to disabling the checker (as a possible workaround for
> the problem), I found sanity.conf at poky-denzil-7.0/meta/conf/sanity.conf.
> I looked at it (and meta/classes/sanity.bbclass) but it's not obvious
> to me how I would disable it.
>
> =============================
> Tim Bird
> Architecture Group Chair, CE Workgroup of the Linux Foundation
> Senior Staff Engineer, Sony Network Entertainment
> =============================
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: denzil firewall problems
  2012-07-17  3:56 ` McClintock Matthew-B29882
@ 2012-07-17 17:45   ` Tim Bird
  0 siblings, 0 replies; 3+ messages in thread
From: Tim Bird @ 2012-07-17 17:45 UTC (permalink / raw)
  To: McClintock Matthew-B29882; +Cc: yocto@yoctoproject.org

On 07/16/2012 08:56 PM, McClintock Matthew-B29882 wrote:
> On Mon, Jul 16, 2012 at 6:57 PM, Tim Bird <tim.bird@am.sony.com> wrote:
>> Hi all,
>>
>> I'm trying to take Denzil out for a spin, and when I do bitbake, from inside
>> Sony (behind our corporate firewall) I get this:
>>
>> (I was doing 'bitbake poky-image-sato')
>> -------------
>> ...
>> ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
>>     Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
>>     Following is the list of potential problems / advisories:
>>
>>     Failed to fetch test data from the network. Please ensure your network is configured correctly.
>>
>> ERROR: Execution of event handler 'check_sanity_eventhandler' failed
>> -------------
>>
>> I tried to follow the instructions at:
>> https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
>> but nothing worked.  These look like instructions for SOCKS proxies.
>> I only have access to HTTP proxies.
>>
>> Here's what I got from 'bitbake -DDD -v poky-image-sato', after configuring an 'nc'-based git-proxy:
>> -------------
>> DEBUG: Fetcher accessed the network with the command git ls-remote git://git.yoctoproject.org/yocto-firewall-test HEAD
>> DEBUG: Running export HOME="/a/home/tbird"; export SSH_AGENT_PID="1822"; export SSH_AUTH_SOCK="/tmp/keyring-9qrJm0/ssh"; export no_proxy="localhost,127.0.0.0/8"; export
>> ftp_proxy="http://www-west.sony.com:80"; export http_proxy="http://www-west.sony.com:80"; export GIT_CONFIG="/a/home/tbird/work/yocto/poky-7.0-build/tmp/sysroots/x86_64-linux/etc/gitconfig"; export
>> GIT_PROXY_COMMAND="/usr/local/bin/git-proxy"; export
>> PATH="/a/home/tbird/work/yocto/poky-denzil-7.0/bitbake/bin/:/a/home/tbird/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/a/home/tbird/bin/:/a/home/tbird/work/yocto/poky-denzil-7.0/scripts";
>> git ls-remote git://git.yoctoproject.org/yocto-firewall-test HEAD
>  
> Can you run that command outside of the yocto build and it works OK?
No.  Both inside and outside of yocto build the 'git ls-remote ...' fails.

Note that git using http: URL for a project works.

> 
> Did you set GIT_PROXY_COMMAND in your local.conf? I recall that
> git-proxy script on the wiki page not working all that well. (I've
> gone through all the same problems with our proxy as well). There is a
> connect-proxy utility available on most distros, and then I've been
> using this script:
> 
> $ cat ../scripts/git-proxy
> #!/bin/sh
> 
> if [[ "$@" =~ "$GIT_PROXY_IGNORE" ]]
> then
> 	nc $@
> else
> 	/usr/bin/connect-proxy -S wwwgate0.freescale.net:1090 $@
> fi
> 
> Not 100% sure how it evolved to this point though.

I tried this, and it didn't work for me.  I used it with
a couple of different http proxies and got:

$ git ls-remote git://git.yoctoproject.org/yocto-firewall-test HEAD
FATAL: failed to begin relaying via HTTP.
fatal: The remote end hung up unexpectedly

Thanks for the help, but I don't know if it's going to work.

Does anyone have a yocto mirror that's accessible via http?
 -- Tim

=============================
Tim Bird
Architecture Group Chair, CE Workgroup of the Linux Foundation
Senior Staff Engineer, Sony Network Entertainment
=============================





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-17 17:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-16 23:57 denzil firewall problems Tim Bird
2012-07-17  3:56 ` McClintock Matthew-B29882
2012-07-17 17:45   ` Tim Bird

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.