All of lore.kernel.org
 help / color / mirror / Atom feed
* problem with yocto behind http_proxy
@ 2014-02-19 10:44 Federico Vitali
  2014-02-19 10:49 ` Marco
  0 siblings, 1 reply; 11+ messages in thread
From: Federico Vitali @ 2014-02-19 10:44 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1308 bytes --]

Hi,

I have problems using yocto behind a firewall. The firewall blocks git, so
I've followed the instructions
given here:

http://www.yoctoproject.org/docs/1.5.1/ref-manual/ref-manual.html#how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server

i.e. adding the following lines to my local.conf:

PREMIRRORS_prepend = "\
     git://.*/.* http://www.yoctoproject.org/sources/ \n \
     ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
     http://.*/.* http://www.yoctoproject.org/sources/ \n \
     https://.*/.* http://www.yoctoproject.org/sources/ \n"

BB_FETCH_PREMIRRORONLY = "1"


but I still get the following errors:

ERROR: Function failed: Network access disabled through BB_NO_NETWORK
(or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access
requested with command git fetch -f --prune
git://git.yoctoproject.org/yocto-kernel-tools.git refs/*:refs/* (for
url git://git.yoctoproject.org/yocto-kernel-tools.git)
ERROR: Logfile of failure stored in:
/home/vitalife/yocto/poky-dora-10.0.1/build/tmp/work/x86_64-linux/kern-tools-native/0.2+gitAUTOINC+a42509b01c-r12/temp/log.do_fetch.4490

It seems that bitbake is still trying to access the server with git.

Any suggestion?

Thank you in advance

Federico

[-- Attachment #2: Type: text/html, Size: 2420 bytes --]

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

* Re: problem with yocto behind http_proxy
  2014-02-19 10:44 problem with yocto behind http_proxy Federico Vitali
@ 2014-02-19 10:49 ` Marco
  2014-02-19 11:12   ` Federico Vitali
  0 siblings, 1 reply; 11+ messages in thread
From: Marco @ 2014-02-19 10:49 UTC (permalink / raw)
  To: yocto

Il 19/02/2014 11:44, Federico Vitali ha scritto:
> Hi,
>
> I have problems using yocto behind a firewall. The firewall blocks git,
> so I've followed the instructions
> given here:
>
> http://www.yoctoproject.org/docs/1.5.1/ref-manual/ref-manual.html#how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server
>
> i.e. adding the following lines to my local.conf:
>
> PREMIRRORS_prepend = "\
>       git://.*/.*http://www.yoctoproject.org/sources/  \n \
>       ftp://.*/.*http://www.yoctoproject.org/sources/  \n \
>       http://.*/.*http://www.yoctoproject.org/sources/  \n \
>       https://.*/.*http://www.yoctoproject.org/sources/  \n"
>
> BB_FETCH_PREMIRRORONLY = "1"
>
>
> but I still get the following errors:
>
> ERROR: Function failed: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command git fetch -f --prune git://git.yoctoproject.org/yocto-kernel-tools.git  <http://git.yoctoproject.org/yocto-kernel-tools.git>  refs/*:refs/* (for url git://git.yoctoproject.org/yocto-kernel-tools.git  <http://git.yoctoproject.org/yocto-kernel-tools.git>)
> ERROR: Logfile of failure stored in: /home/vitalife/yocto/poky-dora-10.0.1/build/tmp/work/x86_64-linux/kern-tools-native/0.2+gitAUTOINC+a42509b01c-r12/temp/log.do_fetch.4490
>
> It seems that bitbake is still trying to access the server with git.
>
> Any suggestion?
>
> Thank you in advance
>
> Federico
>
>


Remove
BB_FETCH_PREMIRRORONLY = "1"


-- 
Marco Cavallini | KOAN sas | Bergamo - Italia
  embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
       http://www.KoanSoftware.com


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

* Re: problem with yocto behind http_proxy
  2014-02-19 10:49 ` Marco
@ 2014-02-19 11:12   ` Federico Vitali
  2014-02-19 12:56     ` Laurentiu Palcu
  2014-02-19 18:41     ` Paul Eggleton
  0 siblings, 2 replies; 11+ messages in thread
From: Federico Vitali @ 2014-02-19 11:12 UTC (permalink / raw)
  To: koansoftware; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 3014 bytes --]

sorry I forgot to reply also to yocto@yoctoproject.org. This was the reply

thank you Marco,
I've tried but I'm still having problems:

WARNING: Failed to fetch URL git://
git.yoctoproject.org/yocto-kernel-tools.git, attempting MIRRORS if available
WARNING: Failed to fetch URL git://
git.yoctoproject.org/linux-yocto-3.10.git;bareclone=1;branch=standard/base,meta;name=machine,meta,
attempting MIRRORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
fatal: unable to connect to git.yoctoproject.org:
git.yoctoproject.org: Name or service not known

I noticed that the url https://www.yoctoproject.org/sources is not working.
So I tried  http://downloads.yoctoproject.org/sources/, but I get this
error:

ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
fatal: unable to connect to git.yoctoproject.org:
git.yoctoproject.org: Name or service not known



2014-02-19 11:49 GMT+01:00 Marco <koansoftware@gmail.com>:

> Il 19/02/2014 11:44, Federico Vitali ha scritto:
>
>> Hi,
>>
>> I have problems using yocto behind a firewall. The firewall blocks git,
>> so I've followed the instructions
>> given here:
>>
>> http://www.yoctoproject.org/docs/1.5.1/ref-manual/ref-
>> manual.html#how-does-the-yocto-project-obtain-source-
>> code-and-will-it-work-behind-my-firewall-or-proxy-server
>>
>> i.e. adding the following lines to my local.conf:
>>
>> PREMIRRORS_prepend = "\
>>       git://.*/.*http://www.yoctoproject.org/sources/  \n \
>>       ftp://.*/.*http://www.yoctoproject.org/sources/  \n \
>>       http://.*/.*http://www.yoctoproject.org/sources/  \n \
>>       https://.*/.*http://www.yoctoproject.org/sources/  \n"
>>
>>
>> BB_FETCH_PREMIRRORONLY = "1"
>>
>>
>> but I still get the following errors:
>>
>> ERROR: Function failed: Network access disabled through BB_NO_NETWORK (or
>> set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested
>> with command git fetch -f --prune git://git.yoctoproject.org/
>> yocto-kernel-tools.git  <http://git.yoctoproject.org/
>> yocto-kernel-tools.git>  refs/*:refs/* (for url git://
>> git.yoctoproject.org/yocto-kernel-tools.git  <
>> http://git.yoctoproject.org/yocto-kernel-tools.git>)
>>
>> ERROR: Logfile of failure stored in: /home/vitalife/yocto/poky-
>> dora-10.0.1/build/tmp/work/x86_64-linux/kern-tools-native/0.2+gitAUTOINC+
>> a42509b01c-r12/temp/log.do_fetch.4490
>>
>> It seems that bitbake is still trying to access the server with git.
>>
>> Any suggestion?
>>
>> Thank you in advance
>>
>> Federico
>>
>>
>>
>
> Remove
> BB_FETCH_PREMIRRORONLY = "1"
>
>
> --
> Marco Cavallini | KOAN sas | Bergamo - Italia
>  embedded and real-time software engineering
> Phone:+39-035-255.235 - Fax:+39-178-22.39.748
>       http://www.KoanSoftware.com
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 6216 bytes --]

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

* Re: problem with yocto behind http_proxy
  2014-02-19 11:12   ` Federico Vitali
@ 2014-02-19 12:56     ` Laurentiu Palcu
  2014-02-19 13:24       ` Federico Vitali
  2014-02-19 18:41     ` Paul Eggleton
  1 sibling, 1 reply; 11+ messages in thread
From: Laurentiu Palcu @ 2014-02-19 12:56 UTC (permalink / raw)
  To: Federico Vitali; +Cc: yocto

Hi Federico,

You can find more info about setting up Yocto behind proxies here:

https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy

For git, I recommend the 'nc' method. Works fine for me.

laurentiu

On Wed, Feb 19, 2014 at 12:12:58PM +0100, Federico Vitali wrote:
> sorry I forgot to reply also to yocto@yoctoproject.org. This was the reply
> 
> thank you Marco, 
> I've tried but I'm still having problems:
> 
> WARNING: Failed to fetch URL git://git.yoctoproject.org/yocto-kernel-tools.git,
> attempting MIRRORS if available
> WARNING: Failed to fetch URL git://git.yoctoproject.org/linux-yocto-3.10.git;
> bareclone=1;branch=standard/base,meta;name=machine,meta, attempting MIRRORS if
> available
> ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
> fatal: unable to connect to git.yoctoproject.org:
> git.yoctoproject.org: Name or service not known
> 
> I noticed that the url https://www.yoctoproject.org/sources is not working.
> So I tried  http://downloads.yoctoproject.org/sources/, but I get this error:
> 
> ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
> fatal: unable to connect to git.yoctoproject.org:
> git.yoctoproject.org: Name or service not known
> 
> 
> 
> 2014-02-19 11:49 GMT+01:00 Marco <koansoftware@gmail.com>:
> 
>     Il 19/02/2014 11:44, Federico Vitali ha scritto:
> 
>         Hi,
> 
>         I have problems using yocto behind a firewall. The firewall blocks git,
>         so I've followed the instructions
>         given here:
> 
>         http://www.yoctoproject.org/docs/1.5.1/ref-manual/ref-manual.html#
>         how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server
> 
>         i.e. adding the following lines to my local.conf:
> 
>         PREMIRRORS_prepend = "\
>               git://.*/.*http://www.yoctoproject.org/sources/  \n \
>               ftp://.*/.*http://www.yoctoproject.org/sources/  \n \
>               http://.*/.*http://www.yoctoproject.org/sources/  \n \
>               https://.*/.*http://www.yoctoproject.org/sources/  \n"
> 
> 
>         BB_FETCH_PREMIRRORONLY = "1"
> 
> 
>         but I still get the following errors:
> 
>         ERROR: Function failed: Network access disabled through BB_NO_NETWORK
>         (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access
>         requested with command git fetch -f --prune git://git.yoctoproject.org/
>         yocto-kernel-tools.git  <http://git.yoctoproject.org/
>         yocto-kernel-tools.git>  refs/*:refs/* (for url git://
>         git.yoctoproject.org/yocto-kernel-tools.git  <http://
>         git.yoctoproject.org/yocto-kernel-tools.git>)
> 
>         ERROR: Logfile of failure stored in: /home/vitalife/yocto/
>         poky-dora-10.0.1/build/tmp/work/x86_64-linux/kern-tools-native/
>         0.2+gitAUTOINC+a42509b01c-r12/temp/log.do_fetch.4490
> 
>         It seems that bitbake is still trying to access the server with git.
> 
>         Any suggestion?
> 
>         Thank you in advance
> 
>         Federico
> 
> 
> 
> 
> 
>     Remove
>     BB_FETCH_PREMIRRORONLY = "1"
> 
> 
>     --
>     Marco Cavallini | KOAN sas | Bergamo - Italia
>      embedded and real-time software engineering
>     Phone:+39-035-255.235 - Fax:+39-178-22.39.748
>           http://www.KoanSoftware.com
>     _______________________________________________
>     yocto mailing list
>     yocto@yoctoproject.org
>     https://lists.yoctoproject.org/listinfo/yocto
> 
> 

> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



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

* Re: problem with yocto behind http_proxy
  2014-02-19 12:56     ` Laurentiu Palcu
@ 2014-02-19 13:24       ` Federico Vitali
  2014-02-19 13:51         ` Laurentiu Palcu
  0 siblings, 1 reply; 11+ messages in thread
From: Federico Vitali @ 2014-02-19 13:24 UTC (permalink / raw)
  To: Laurentiu Palcu; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 4205 bytes --]

Thank you Laurentiu. Unfortunately my proxy requires authentication via
username and password,
but it seems to me that netcat doesn't support it. Or am I wrong?


2014-02-19 13:56 GMT+01:00 Laurentiu Palcu <laurentiu.palcu@intel.com>:

> Hi Federico,
>
> You can find more info about setting up Yocto behind proxies here:
>
> https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
>
> For git, I recommend the 'nc' method. Works fine for me.
>
> laurentiu
>
> On Wed, Feb 19, 2014 at 12:12:58PM +0100, Federico Vitali wrote:
> > sorry I forgot to reply also to yocto@yoctoproject.org. This was the
> reply
> >
> > thank you Marco,
> > I've tried but I'm still having problems:
> >
> > WARNING: Failed to fetch URL git://
> git.yoctoproject.org/yocto-kernel-tools.git,
> > attempting MIRRORS if available
> > WARNING: Failed to fetch URL git://
> git.yoctoproject.org/linux-yocto-3.10.git;
> > bareclone=1;branch=standard/base,meta;name=machine,meta, attempting
> MIRRORS if
> > available
> > ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
> > fatal: unable to connect to git.yoctoproject.org:
> > git.yoctoproject.org: Name or service not known
> >
> > I noticed that the url https://www.yoctoproject.org/sources is not
> working.
> > So I tried  http://downloads.yoctoproject.org/sources/, but I get this
> error:
> >
> > ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
> > fatal: unable to connect to git.yoctoproject.org:
> > git.yoctoproject.org: Name or service not known
> >
> >
> >
> > 2014-02-19 11:49 GMT+01:00 Marco <koansoftware@gmail.com>:
> >
> >     Il 19/02/2014 11:44, Federico Vitali ha scritto:
> >
> >         Hi,
> >
> >         I have problems using yocto behind a firewall. The firewall
> blocks git,
> >         so I've followed the instructions
> >         given here:
> >
> >
> http://www.yoctoproject.org/docs/1.5.1/ref-manual/ref-manual.html#
> >
> how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server
> >
> >         i.e. adding the following lines to my local.conf:
> >
> >         PREMIRRORS_prepend = "\
> >               git://.*/.*http://www.yoctoproject.org/sources/  \n \
> >               ftp://.*/.*http://www.yoctoproject.org/sources/  \n \
> >               http://.*/.*http://www.yoctoproject.org/sources/  \n \
> >               https://.*/.*http://www.yoctoproject.org/sources/  \n"
> >
> >
> >         BB_FETCH_PREMIRRORONLY = "1"
> >
> >
> >         but I still get the following errors:
> >
> >         ERROR: Function failed: Network access disabled through
> BB_NO_NETWORK
> >         (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but
> access
> >         requested with command git fetch -f --prune git://
> git.yoctoproject.org/
> >         yocto-kernel-tools.git  <http://git.yoctoproject.org/
> >         yocto-kernel-tools.git>  refs/*:refs/* (for url git://
> >         git.yoctoproject.org/yocto-kernel-tools.git  <http://
> >         git.yoctoproject.org/yocto-kernel-tools.git>)
> >
> >         ERROR: Logfile of failure stored in: /home/vitalife/yocto/
> >         poky-dora-10.0.1/build/tmp/work/x86_64-linux/kern-tools-native/
> >         0.2+gitAUTOINC+a42509b01c-r12/temp/log.do_fetch.4490
> >
> >         It seems that bitbake is still trying to access the server with
> git.
> >
> >         Any suggestion?
> >
> >         Thank you in advance
> >
> >         Federico
> >
> >
> >
> >
> >
> >     Remove
> >     BB_FETCH_PREMIRRORONLY = "1"
> >
> >
> >     --
> >     Marco Cavallini | KOAN sas | Bergamo - Italia
> >      embedded and real-time software engineering
> >     Phone:+39-035-255.235 - Fax:+39-178-22.39.748
> >           http://www.KoanSoftware.com
> >     _______________________________________________
> >     yocto mailing list
> >     yocto@yoctoproject.org
> >     https://lists.yoctoproject.org/listinfo/yocto
> >
> >
>
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
>
>

[-- Attachment #2: Type: text/html, Size: 6821 bytes --]

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

* Re: problem with yocto behind http_proxy
  2014-02-19 13:24       ` Federico Vitali
@ 2014-02-19 13:51         ` Laurentiu Palcu
  2014-02-19 13:57           ` Federico Vitali
  0 siblings, 1 reply; 11+ messages in thread
From: Laurentiu Palcu @ 2014-02-19 13:51 UTC (permalink / raw)
  To: Federico Vitali; +Cc: yocto

On Wed, Feb 19, 2014 at 02:24:38PM +0100, Federico Vitali wrote:
> Thank you Laurentiu. Unfortunately my proxy requires authentication via
> username and password,
> but it seems to me that netcat doesn't support it. Or am I wrong? 
Well, the BSD netcat (on my Ubuntu 12.04) appears to support it:

From the man page:
     -P proxy_username
                  Specifies a username to present to a proxy server that
                  requires authentication.  If no username is specified
                  then authentication will not be attempted.  Proxy
                  authentication is only supported for HTTP CONNECT
                  proxies at present.

Though I don't know how you specify a password... perhaps -Puser:passwd?

laurentiu
> 
> 
> 2014-02-19 13:56 GMT+01:00 Laurentiu Palcu <laurentiu.palcu@intel.com>:
> 
>     Hi Federico,
> 
>     You can find more info about setting up Yocto behind proxies here:
> 
>     https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
> 
>     For git, I recommend the 'nc' method. Works fine for me.
>    
>     laurentiu
>    
>     On Wed, Feb 19, 2014 at 12:12:58PM +0100, Federico Vitali wrote:
>     > sorry I forgot to reply also to yocto@yoctoproject.org. This was the
>     reply
>     >
>     > thank you Marco,
>     > I've tried but I'm still having problems:
>     >
>     > WARNING: Failed to fetch URL git://git.yoctoproject.org/
>     yocto-kernel-tools.git,
>     > attempting MIRRORS if available
>     > WARNING: Failed to fetch URL git://git.yoctoproject.org/
>     linux-yocto-3.10.git;
>     > bareclone=1;branch=standard/base,meta;name=machine,meta, attempting
>     MIRRORS if
>     > available
>     > ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
>     > fatal: unable to connect to git.yoctoproject.org:
>     > git.yoctoproject.org: Name or service not known
>     >
>     > I noticed that the url https://www.yoctoproject.org/sources is not
>     working.
>     > So I tried  http://downloads.yoctoproject.org/sources/, but I get this
>     error:
>     >
>     > ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
>     > fatal: unable to connect to git.yoctoproject.org:
>     > git.yoctoproject.org: Name or service not known
>     >
>     >
>     >
>     > 2014-02-19 11:49 GMT+01:00 Marco <koansoftware@gmail.com>:
>     >
>     >     Il 19/02/2014 11:44, Federico Vitali ha scritto:
>     >
>     >         Hi,
>     >
>     >         I have problems using yocto behind a firewall. The firewall
>     blocks git,
>     >         so I've followed the instructions
>     >         given here:
>     >
>     >         http://www.yoctoproject.org/docs/1.5.1/ref-manual/ref-manual.html
>     #
>     >        
>     how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server
>     >
>     >         i.e. adding the following lines to my local.conf:
>     >
>     >         PREMIRRORS_prepend = "\
>     >               git://.*/.*http://www.yoctoproject.org/sources/  \n \
>     >               ftp://.*/.*http://www.yoctoproject.org/sources/  \n \
>     >               http://.*/.*http://www.yoctoproject.org/sources/  \n \
>     >               https://.*/.*http://www.yoctoproject.org/sources/  \n"
>     >
>     >
>     >         BB_FETCH_PREMIRRORONLY = "1"
>     >
>     >
>     >         but I still get the following errors:
>     >
>     >         ERROR: Function failed: Network access disabled through
>     BB_NO_NETWORK
>     >         (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but
>     access
>     >         requested with command git fetch -f --prune git://
>     git.yoctoproject.org/
>     >         yocto-kernel-tools.git  <http://git.yoctoproject.org/
>     >         yocto-kernel-tools.git>  refs/*:refs/* (for url git://
>     >         git.yoctoproject.org/yocto-kernel-tools.git  <http://
>     >         git.yoctoproject.org/yocto-kernel-tools.git>)
>     >
>     >         ERROR: Logfile of failure stored in: /home/vitalife/yocto/
>     >         poky-dora-10.0.1/build/tmp/work/x86_64-linux/kern-tools-native/
>     >         0.2+gitAUTOINC+a42509b01c-r12/temp/log.do_fetch.4490
>     >
>     >         It seems that bitbake is still trying to access the server with
>     git.
>     >
>     >         Any suggestion?
>     >
>     >         Thank you in advance
>     >
>     >         Federico
>     >
>     >
>     >
>     >
>     >
>     >     Remove
>     >     BB_FETCH_PREMIRRORONLY = "1"
>     >
>     >
>     >     --
>     >     Marco Cavallini | KOAN sas | Bergamo - Italia
>     >      embedded and real-time software engineering
>     >     Phone:+39-035-255.235 - Fax:+39-178-22.39.748
>     >           http://www.KoanSoftware.com
>     >     _______________________________________________
>     >     yocto mailing list
>     >     yocto@yoctoproject.org
>     >     https://lists.yoctoproject.org/listinfo/yocto
>     >
>     >
> 
>     > _______________________________________________
>     > yocto mailing list
>     > yocto@yoctoproject.org
>     > https://lists.yoctoproject.org/listinfo/yocto
> 
> 
> 


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

* Re: problem with yocto behind http_proxy
  2014-02-19 13:51         ` Laurentiu Palcu
@ 2014-02-19 13:57           ` Federico Vitali
  2014-02-19 14:23             ` Laurentiu Palcu
  0 siblings, 1 reply; 11+ messages in thread
From: Federico Vitali @ 2014-02-19 13:57 UTC (permalink / raw)
  To: Laurentiu Palcu; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 5686 bytes --]

I've alreay tried, it doesn't accept it ...


2014-02-19 14:51 GMT+01:00 Laurentiu Palcu <laurentiu.palcu@intel.com>:

> On Wed, Feb 19, 2014 at 02:24:38PM +0100, Federico Vitali wrote:
> > Thank you Laurentiu. Unfortunately my proxy requires authentication via
> > username and password,
> > but it seems to me that netcat doesn't support it. Or am I wrong?
> Well, the BSD netcat (on my Ubuntu 12.04) appears to support it:
>
> From the man page:
>      -P proxy_username
>                   Specifies a username to present to a proxy server that
>                   requires authentication.  If no username is specified
>                   then authentication will not be attempted.  Proxy
>                   authentication is only supported for HTTP CONNECT
>                   proxies at present.
>
> Though I don't know how you specify a password... perhaps -Puser:passwd?
>
> laurentiu
> >
> >
> > 2014-02-19 13:56 GMT+01:00 Laurentiu Palcu <laurentiu.palcu@intel.com>:
> >
> >     Hi Federico,
> >
> >     You can find more info about setting up Yocto behind proxies here:
> >
> >     https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
> >
> >     For git, I recommend the 'nc' method. Works fine for me.
> >
> >     laurentiu
> >
> >     On Wed, Feb 19, 2014 at 12:12:58PM +0100, Federico Vitali wrote:
> >     > sorry I forgot to reply also to yocto@yoctoproject.org. This was
> the
> >     reply
> >     >
> >     > thank you Marco,
> >     > I've tried but I'm still having problems:
> >     >
> >     > WARNING: Failed to fetch URL git://git.yoctoproject.org/
> >     yocto-kernel-tools.git,
> >     > attempting MIRRORS if available
> >     > WARNING: Failed to fetch URL git://git.yoctoproject.org/
> >     linux-yocto-3.10.git;
> >     > bareclone=1;branch=standard/base,meta;name=machine,meta, attempting
> >     MIRRORS if
> >     > available
> >     > ERROR: Fetcher failure: Fetch command failed with exit code 128,
> output:
> >     > fatal: unable to connect to git.yoctoproject.org:
> >     > git.yoctoproject.org: Name or service not known
> >     >
> >     > I noticed that the url https://www.yoctoproject.org/sources is not
> >     working.
> >     > So I tried  http://downloads.yoctoproject.org/sources/, but I get
> this
> >     error:
> >     >
> >     > ERROR: Fetcher failure: Fetch command failed with exit code 128,
> output:
> >     > fatal: unable to connect to git.yoctoproject.org:
> >     > git.yoctoproject.org: Name or service not known
> >     >
> >     >
> >     >
> >     > 2014-02-19 11:49 GMT+01:00 Marco <koansoftware@gmail.com>:
> >     >
> >     >     Il 19/02/2014 11:44, Federico Vitali ha scritto:
> >     >
> >     >         Hi,
> >     >
> >     >         I have problems using yocto behind a firewall. The firewall
> >     blocks git,
> >     >         so I've followed the instructions
> >     >         given here:
> >     >
> >     >
> http://www.yoctoproject.org/docs/1.5.1/ref-manual/ref-manual.html
> >     #
> >     >
> >
> how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server
> >     >
> >     >         i.e. adding the following lines to my local.conf:
> >     >
> >     >         PREMIRRORS_prepend = "\
> >     >               git://.*/.*http://www.yoctoproject.org/sources/  \n
> \
> >     >               ftp://.*/.*http://www.yoctoproject.org/sources/  \n
> \
> >     >               http://.*/.*http://www.yoctoproject.org/sources/ \n \
> >     >               https://.*/.*http://www.yoctoproject.org/sources/ \n"
> >     >
> >     >
> >     >         BB_FETCH_PREMIRRORONLY = "1"
> >     >
> >     >
> >     >         but I still get the following errors:
> >     >
> >     >         ERROR: Function failed: Network access disabled through
> >     BB_NO_NETWORK
> >     >         (or set indirectly due to use of BB_FETCH_PREMIRRORONLY)
> but
> >     access
> >     >         requested with command git fetch -f --prune git://
> >     git.yoctoproject.org/
> >     >         yocto-kernel-tools.git  <http://git.yoctoproject.org/
> >     >         yocto-kernel-tools.git>  refs/*:refs/* (for url git://
> >     >         git.yoctoproject.org/yocto-kernel-tools.git  <http://
> >     >         git.yoctoproject.org/yocto-kernel-tools.git>)
> >     >
> >     >         ERROR: Logfile of failure stored in: /home/vitalife/yocto/
> >     >
> poky-dora-10.0.1/build/tmp/work/x86_64-linux/kern-tools-native/
> >     >         0.2+gitAUTOINC+a42509b01c-r12/temp/log.do_fetch.4490
> >     >
> >     >         It seems that bitbake is still trying to access the server
> with
> >     git.
> >     >
> >     >         Any suggestion?
> >     >
> >     >         Thank you in advance
> >     >
> >     >         Federico
> >     >
> >     >
> >     >
> >     >
> >     >
> >     >     Remove
> >     >     BB_FETCH_PREMIRRORONLY = "1"
> >     >
> >     >
> >     >     --
> >     >     Marco Cavallini | KOAN sas | Bergamo - Italia
> >     >      embedded and real-time software engineering
> >     >     Phone:+39-035-255.235 - Fax:+39-178-22.39.748
> >     >           http://www.KoanSoftware.com
> >     >     _______________________________________________
> >     >     yocto mailing list
> >     >     yocto@yoctoproject.org
> >     >     https://lists.yoctoproject.org/listinfo/yocto
> >     >
> >     >
> >
> >     > _______________________________________________
> >     > yocto mailing list
> >     > yocto@yoctoproject.org
> >     > https://lists.yoctoproject.org/listinfo/yocto
> >
> >
> >
>

[-- Attachment #2: Type: text/html, Size: 8821 bytes --]

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

* Re: problem with yocto behind http_proxy
  2014-02-19 13:57           ` Federico Vitali
@ 2014-02-19 14:23             ` Laurentiu Palcu
  2014-02-19 18:13               ` Federico Vitali
  2014-02-20  9:55               ` Federico Vitali
  0 siblings, 2 replies; 11+ messages in thread
From: Laurentiu Palcu @ 2014-02-19 14:23 UTC (permalink / raw)
  To: Federico Vitali; +Cc: yocto

On Wed, Feb 19, 2014 at 02:57:49PM +0100, Federico Vitali wrote:
> I've alreay tried, it doesn't accept it ... 
Apparently, socat has support for authentication. Try this:

#!/bin/bash
# $1 = hostname, $2 = port
PROXY=myproxy.example.com
exec socat STDIO SOCKS4:$PROXY:$1:$2,proxyauth=user:pass

Above is just an example. You'll probably have to adujust it, depending
on your proxy type. See the manual for details.

laurentiu
> 
> 
> 2014-02-19 14:51 GMT+01:00 Laurentiu Palcu <laurentiu.palcu@intel.com>:
> 
>     On Wed, Feb 19, 2014 at 02:24:38PM +0100, Federico Vitali wrote:
>     > Thank you Laurentiu. Unfortunately my proxy requires authentication via
>     > username and password,
>     > but it seems to me that netcat doesn't support it. Or am I wrong?
>     Well, the BSD netcat (on my Ubuntu 12.04) appears to support it:
> 
>     From the man page:
>          -P proxy_username
>                       Specifies a username to present to a proxy server that
>                       requires authentication.  If no username is specified
>                       then authentication will not be attempted.  Proxy
>                       authentication is only supported for HTTP CONNECT
>                       proxies at present.
> 
>     Though I don't know how you specify a password... perhaps -Puser:passwd?
>    
>     laurentiu
>     >
>     >
>     > 2014-02-19 13:56 GMT+01:00 Laurentiu Palcu <laurentiu.palcu@intel.com>:
>     >
>     >     Hi Federico,
>     >
>     >     You can find more info about setting up Yocto behind proxies here:
>     >
>     >     https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
>     >
>     >     For git, I recommend the 'nc' method. Works fine for me.
>     >
>     >     laurentiu
>     >
>     >     On Wed, Feb 19, 2014 at 12:12:58PM +0100, Federico Vitali wrote:
>     >     > sorry I forgot to reply also to yocto@yoctoproject.org. This was
>     the
>     >     reply
>     >     >
>     >     > thank you Marco,
>     >     > I've tried but I'm still having problems:
>     >     >
>     >     > WARNING: Failed to fetch URL git://git.yoctoproject.org/
>     >     yocto-kernel-tools.git,
>     >     > attempting MIRRORS if available
>     >     > WARNING: Failed to fetch URL git://git.yoctoproject.org/
>     >     linux-yocto-3.10.git;
>     >     > bareclone=1;branch=standard/base,meta;name=machine,meta, attempting
>     >     MIRRORS if
>     >     > available
>     >     > ERROR: Fetcher failure: Fetch command failed with exit code 128,
>     output:
>     >     > fatal: unable to connect to git.yoctoproject.org:
>     >     > git.yoctoproject.org: Name or service not known
>     >     >
>     >     > I noticed that the url https://www.yoctoproject.org/sources is not
>     >     working.
>     >     > So I tried  http://downloads.yoctoproject.org/sources/, but I get
>     this
>     >     error:
>     >     >
>     >     > ERROR: Fetcher failure: Fetch command failed with exit code 128,
>     output:
>     >     > fatal: unable to connect to git.yoctoproject.org:
>     >     > git.yoctoproject.org: Name or service not known
>     >     >
>     >     >
>     >     >
>     >     > 2014-02-19 11:49 GMT+01:00 Marco <koansoftware@gmail.com>:
>     >     >
>     >     >     Il 19/02/2014 11:44, Federico Vitali ha scritto:
>     >     >
>     >     >         Hi,
>     >     >
>     >     >         I have problems using yocto behind a firewall. The firewall
>     >     blocks git,
>     >     >         so I've followed the instructions
>     >     >         given here:
>     >     >
>     >     >         http://www.yoctoproject.org/docs/1.5.1/ref-manual/
>     ref-manual.html
>     >     #
>     >     >
>     >    
>     how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server
>     >     >
>     >     >         i.e. adding the following lines to my local.conf:
>     >     >
>     >     >         PREMIRRORS_prepend = "\
>     >     >               git://.*/.*http://www.yoctoproject.org/sources/  \n \
>     >     >               ftp://.*/.*http://www.yoctoproject.org/sources/  \n \
>     >     >               http://.*/.*http://www.yoctoproject.org/sources/  \n
>     \
>     >     >               https://.*/.*http://www.yoctoproject.org/sources/  \
>     n"
>     >     >
>     >     >
>     >     >         BB_FETCH_PREMIRRORONLY = "1"
>     >     >
>     >     >
>     >     >         but I still get the following errors:
>     >     >
>     >     >         ERROR: Function failed: Network access disabled through
>     >     BB_NO_NETWORK
>     >     >         (or set indirectly due to use of BB_FETCH_PREMIRRORONLY)
>     but
>     >     access
>     >     >         requested with command git fetch -f --prune git://
>     >     git.yoctoproject.org/
>     >     >         yocto-kernel-tools.git  <http://git.yoctoproject.org/
>     >     >         yocto-kernel-tools.git>  refs/*:refs/* (for url git://
>     >     >         git.yoctoproject.org/yocto-kernel-tools.git  <http://
>     >     >         git.yoctoproject.org/yocto-kernel-tools.git>)
>     >     >
>     >     >         ERROR: Logfile of failure stored in: /home/vitalife/yocto/
>     >     >         poky-dora-10.0.1/build/tmp/work/x86_64-linux/
>     kern-tools-native/
>     >     >         0.2+gitAUTOINC+a42509b01c-r12/temp/log.do_fetch.4490
>     >     >
>     >     >         It seems that bitbake is still trying to access the server
>     with
>     >     git.
>     >     >
>     >     >         Any suggestion?
>     >     >
>     >     >         Thank you in advance
>     >     >
>     >     >         Federico
>     >     >
>     >     >
>     >     >
>     >     >
>     >     >
>     >     >     Remove
>     >     >     BB_FETCH_PREMIRRORONLY = "1"
>     >     >
>     >     >
>     >     >     --
>     >     >     Marco Cavallini | KOAN sas | Bergamo - Italia
>     >     >      embedded and real-time software engineering
>     >     >     Phone:+39-035-255.235 - Fax:+39-178-22.39.748
>     >     >           http://www.KoanSoftware.com
>     >     >     _______________________________________________
>     >     >     yocto mailing list
>     >     >     yocto@yoctoproject.org
>     >     >     https://lists.yoctoproject.org/listinfo/yocto
>     >     >
>     >     >
>     >
>     >     > _______________________________________________
>     >     > yocto mailing list
>     >     > yocto@yoctoproject.org
>     >     > https://lists.yoctoproject.org/listinfo/yocto
>     >
>     >
>     >
> 
> 


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

* Re: problem with yocto behind http_proxy
  2014-02-19 14:23             ` Laurentiu Palcu
@ 2014-02-19 18:13               ` Federico Vitali
  2014-02-20  9:55               ` Federico Vitali
  1 sibling, 0 replies; 11+ messages in thread
From: Federico Vitali @ 2014-02-19 18:13 UTC (permalink / raw)
  To: Laurentiu Palcu; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 7290 bytes --]

Thank you Laurentiu, tomorrow I'll give it a try! Thank you very much !

Federico



2014-02-19 15:23 GMT+01:00 Laurentiu Palcu <laurentiu.palcu@intel.com>:

> On Wed, Feb 19, 2014 at 02:57:49PM +0100, Federico Vitali wrote:
> > I've alreay tried, it doesn't accept it ...
> Apparently, socat has support for authentication. Try this:
>
> #!/bin/bash
> # $1 = hostname, $2 = port
> PROXY=myproxy.example.com
> exec socat STDIO SOCKS4:$PROXY:$1:$2,proxyauth=user:pass
>
> Above is just an example. You'll probably have to adujust it, depending
> on your proxy type. See the manual for details.
>
> laurentiu
> >
> >
> > 2014-02-19 14:51 GMT+01:00 Laurentiu Palcu <laurentiu.palcu@intel.com>:
> >
> >     On Wed, Feb 19, 2014 at 02:24:38PM +0100, Federico Vitali wrote:
> >     > Thank you Laurentiu. Unfortunately my proxy requires
> authentication via
> >     > username and password,
> >     > but it seems to me that netcat doesn't support it. Or am I wrong?
> >     Well, the BSD netcat (on my Ubuntu 12.04) appears to support it:
> >
> >     From the man page:
> >          -P proxy_username
> >                       Specifies a username to present to a proxy server
> that
> >                       requires authentication.  If no username is
> specified
> >                       then authentication will not be attempted.  Proxy
> >                       authentication is only supported for HTTP CONNECT
> >                       proxies at present.
> >
> >     Though I don't know how you specify a password... perhaps
> -Puser:passwd?
> >
> >     laurentiu
> >     >
> >     >
> >     > 2014-02-19 13:56 GMT+01:00 Laurentiu Palcu <
> laurentiu.palcu@intel.com>:
> >     >
> >     >     Hi Federico,
> >     >
> >     >     You can find more info about setting up Yocto behind proxies
> here:
> >     >
> >     >
> https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
> >     >
> >     >     For git, I recommend the 'nc' method. Works fine for me.
> >     >
> >     >     laurentiu
> >     >
> >     >     On Wed, Feb 19, 2014 at 12:12:58PM +0100, Federico Vitali
> wrote:
> >     >     > sorry I forgot to reply also to yocto@yoctoproject.org.
> This was
> >     the
> >     >     reply
> >     >     >
> >     >     > thank you Marco,
> >     >     > I've tried but I'm still having problems:
> >     >     >
> >     >     > WARNING: Failed to fetch URL git://git.yoctoproject.org/
> >     >     yocto-kernel-tools.git,
> >     >     > attempting MIRRORS if available
> >     >     > WARNING: Failed to fetch URL git://git.yoctoproject.org/
> >     >     linux-yocto-3.10.git;
> >     >     > bareclone=1;branch=standard/base,meta;name=machine,meta,
> attempting
> >     >     MIRRORS if
> >     >     > available
> >     >     > ERROR: Fetcher failure: Fetch command failed with exit code
> 128,
> >     output:
> >     >     > fatal: unable to connect to git.yoctoproject.org:
> >     >     > git.yoctoproject.org: Name or service not known
> >     >     >
> >     >     > I noticed that the url https://www.yoctoproject.org/sourcesis not
> >     >     working.
> >     >     > So I tried  http://downloads.yoctoproject.org/sources/, but
> I get
> >     this
> >     >     error:
> >     >     >
> >     >     > ERROR: Fetcher failure: Fetch command failed with exit code
> 128,
> >     output:
> >     >     > fatal: unable to connect to git.yoctoproject.org:
> >     >     > git.yoctoproject.org: Name or service not known
> >     >     >
> >     >     >
> >     >     >
> >     >     > 2014-02-19 11:49 GMT+01:00 Marco <koansoftware@gmail.com>:
> >     >     >
> >     >     >     Il 19/02/2014 11:44, Federico Vitali ha scritto:
> >     >     >
> >     >     >         Hi,
> >     >     >
> >     >     >         I have problems using yocto behind a firewall. The
> firewall
> >     >     blocks git,
> >     >     >         so I've followed the instructions
> >     >     >         given here:
> >     >     >
> >     >     >         http://www.yoctoproject.org/docs/1.5.1/ref-manual/
> >     ref-manual.html
> >     >     #
> >     >     >
> >     >
> >
> how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server
> >     >     >
> >     >     >         i.e. adding the following lines to my local.conf:
> >     >     >
> >     >     >         PREMIRRORS_prepend = "\
> >     >     >               git://.*/.*
> http://www.yoctoproject.org/sources/  \n \
> >     >     >               ftp://.*/.*
> http://www.yoctoproject.org/sources/  \n \
> >     >     >               http://.*/.*
> http://www.yoctoproject.org/sources/  \n
> >     \
> >     >     >               https://.*/.*
> http://www.yoctoproject.org/sources/  \
> >     n"
> >     >     >
> >     >     >
> >     >     >         BB_FETCH_PREMIRRORONLY = "1"
> >     >     >
> >     >     >
> >     >     >         but I still get the following errors:
> >     >     >
> >     >     >         ERROR: Function failed: Network access disabled
> through
> >     >     BB_NO_NETWORK
> >     >     >         (or set indirectly due to use of
> BB_FETCH_PREMIRRORONLY)
> >     but
> >     >     access
> >     >     >         requested with command git fetch -f --prune git://
> >     >     git.yoctoproject.org/
> >     >     >         yocto-kernel-tools.git  <
> http://git.yoctoproject.org/
> >     >     >         yocto-kernel-tools.git>  refs/*:refs/* (for url
> git://
> >     >     >         git.yoctoproject.org/yocto-kernel-tools.git <http://
> >     >     >         git.yoctoproject.org/yocto-kernel-tools.git>)
> >     >     >
> >     >     >         ERROR: Logfile of failure stored in:
> /home/vitalife/yocto/
> >     >     >         poky-dora-10.0.1/build/tmp/work/x86_64-linux/
> >     kern-tools-native/
> >     >     >         0.2+gitAUTOINC+a42509b01c-r12/temp/log.do_fetch.4490
> >     >     >
> >     >     >         It seems that bitbake is still trying to access the
> server
> >     with
> >     >     git.
> >     >     >
> >     >     >         Any suggestion?
> >     >     >
> >     >     >         Thank you in advance
> >     >     >
> >     >     >         Federico
> >     >     >
> >     >     >
> >     >     >
> >     >     >
> >     >     >
> >     >     >     Remove
> >     >     >     BB_FETCH_PREMIRRORONLY = "1"
> >     >     >
> >     >     >
> >     >     >     --
> >     >     >     Marco Cavallini | KOAN sas | Bergamo - Italia
> >     >     >      embedded and real-time software engineering
> >     >     >     Phone:+39-035-255.235 - Fax:+39-178-22.39.748
> >     >     >           http://www.KoanSoftware.com
> >     >     >     _______________________________________________
> >     >     >     yocto mailing list
> >     >     >     yocto@yoctoproject.org
> >     >     >     https://lists.yoctoproject.org/listinfo/yocto
> >     >     >
> >     >     >
> >     >
> >     >     > _______________________________________________
> >     >     > yocto mailing list
> >     >     > yocto@yoctoproject.org
> >     >     > https://lists.yoctoproject.org/listinfo/yocto
> >     >
> >     >
> >     >
> >
> >
>

[-- Attachment #2: Type: text/html, Size: 11022 bytes --]

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

* Re: problem with yocto behind http_proxy
  2014-02-19 11:12   ` Federico Vitali
  2014-02-19 12:56     ` Laurentiu Palcu
@ 2014-02-19 18:41     ` Paul Eggleton
  1 sibling, 0 replies; 11+ messages in thread
From: Paul Eggleton @ 2014-02-19 18:41 UTC (permalink / raw)
  To: Federico Vitali, yocto

Hi Federico,

On Wednesday 19 February 2014 12:12:58 Federico Vitali wrote:
> sorry I forgot to reply also to yocto@yoctoproject.org. This was the reply
> 
> thank you Marco,
> I've tried but I'm still having problems:
> 
> WARNING: Failed to fetch URL git://
> git.yoctoproject.org/yocto-kernel-tools.git, attempting MIRRORS if available
> WARNING: Failed to fetch URL git://
> git.yoctoproject.org/linux-yocto-3.10.git;bareclone=1;branch=standard/base,m
> eta;name=machine,meta, attempting MIRRORS if available
> ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
> fatal: unable to connect to git.yoctoproject.org:
> git.yoctoproject.org: Name or service not known
> 
> I noticed that the url https://www.yoctoproject.org/sources is not working.

I think there are several issues occurring here, but FWIW I did ask Michael 
Halstead (who manages our infrastructure) to fix the website so that this 
documented URL above at least works, and he has now done that.

(It looks like you may have a solution to the overall problem now though, 
which is good.)

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: problem with yocto behind http_proxy
  2014-02-19 14:23             ` Laurentiu Palcu
  2014-02-19 18:13               ` Federico Vitali
@ 2014-02-20  9:55               ` Federico Vitali
  1 sibling, 0 replies; 11+ messages in thread
From: Federico Vitali @ 2014-02-20  9:55 UTC (permalink / raw)
  To: Laurentiu Palcu; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 7434 bytes --]

Thank you again Laurentiu. I gave it a try, but unfortunately I get an error
message from socat telling that authentication is not supported with SOCKS4.
Reading the man page I saw that athentication is only supported with TCP.


2014-02-19 15:23 GMT+01:00 Laurentiu Palcu <laurentiu.palcu@intel.com>:

> On Wed, Feb 19, 2014 at 02:57:49PM +0100, Federico Vitali wrote:
> > I've alreay tried, it doesn't accept it ...
> Apparently, socat has support for authentication. Try this:
>
> #!/bin/bash
> # $1 = hostname, $2 = port
> PROXY=myproxy.example.com
> exec socat STDIO SOCKS4:$PROXY:$1:$2,proxyauth=user:pass
>
> Above is just an example. You'll probably have to adujust it, depending
> on your proxy type. See the manual for details.
>
> laurentiu
> >
> >
> > 2014-02-19 14:51 GMT+01:00 Laurentiu Palcu <laurentiu.palcu@intel.com>:
> >
> >     On Wed, Feb 19, 2014 at 02:24:38PM +0100, Federico Vitali wrote:
> >     > Thank you Laurentiu. Unfortunately my proxy requires
> authentication via
> >     > username and password,
> >     > but it seems to me that netcat doesn't support it. Or am I wrong?
> >     Well, the BSD netcat (on my Ubuntu 12.04) appears to support it:
> >
> >     From the man page:
> >          -P proxy_username
> >                       Specifies a username to present to a proxy server
> that
> >                       requires authentication.  If no username is
> specified
> >                       then authentication will not be attempted.  Proxy
> >                       authentication is only supported for HTTP CONNECT
> >                       proxies at present.
> >
> >     Though I don't know how you specify a password... perhaps
> -Puser:passwd?
> >
> >     laurentiu
> >     >
> >     >
> >     > 2014-02-19 13:56 GMT+01:00 Laurentiu Palcu <
> laurentiu.palcu@intel.com>:
> >     >
> >     >     Hi Federico,
> >     >
> >     >     You can find more info about setting up Yocto behind proxies
> here:
> >     >
> >     >
> https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
> >     >
> >     >     For git, I recommend the 'nc' method. Works fine for me.
> >     >
> >     >     laurentiu
> >     >
> >     >     On Wed, Feb 19, 2014 at 12:12:58PM +0100, Federico Vitali
> wrote:
> >     >     > sorry I forgot to reply also to yocto@yoctoproject.org.
> This was
> >     the
> >     >     reply
> >     >     >
> >     >     > thank you Marco,
> >     >     > I've tried but I'm still having problems:
> >     >     >
> >     >     > WARNING: Failed to fetch URL git://git.yoctoproject.org/
> >     >     yocto-kernel-tools.git,
> >     >     > attempting MIRRORS if available
> >     >     > WARNING: Failed to fetch URL git://git.yoctoproject.org/
> >     >     linux-yocto-3.10.git;
> >     >     > bareclone=1;branch=standard/base,meta;name=machine,meta,
> attempting
> >     >     MIRRORS if
> >     >     > available
> >     >     > ERROR: Fetcher failure: Fetch command failed with exit code
> 128,
> >     output:
> >     >     > fatal: unable to connect to git.yoctoproject.org:
> >     >     > git.yoctoproject.org: Name or service not known
> >     >     >
> >     >     > I noticed that the url https://www.yoctoproject.org/sourcesis not
> >     >     working.
> >     >     > So I tried  http://downloads.yoctoproject.org/sources/, but
> I get
> >     this
> >     >     error:
> >     >     >
> >     >     > ERROR: Fetcher failure: Fetch command failed with exit code
> 128,
> >     output:
> >     >     > fatal: unable to connect to git.yoctoproject.org:
> >     >     > git.yoctoproject.org: Name or service not known
> >     >     >
> >     >     >
> >     >     >
> >     >     > 2014-02-19 11:49 GMT+01:00 Marco <koansoftware@gmail.com>:
> >     >     >
> >     >     >     Il 19/02/2014 11:44, Federico Vitali ha scritto:
> >     >     >
> >     >     >         Hi,
> >     >     >
> >     >     >         I have problems using yocto behind a firewall. The
> firewall
> >     >     blocks git,
> >     >     >         so I've followed the instructions
> >     >     >         given here:
> >     >     >
> >     >     >         http://www.yoctoproject.org/docs/1.5.1/ref-manual/
> >     ref-manual.html
> >     >     #
> >     >     >
> >     >
> >
> how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server
> >     >     >
> >     >     >         i.e. adding the following lines to my local.conf:
> >     >     >
> >     >     >         PREMIRRORS_prepend = "\
> >     >     >               git://.*/.*
> http://www.yoctoproject.org/sources/  \n \
> >     >     >               ftp://.*/.*
> http://www.yoctoproject.org/sources/  \n \
> >     >     >               http://.*/.*
> http://www.yoctoproject.org/sources/  \n
> >     \
> >     >     >               https://.*/.*
> http://www.yoctoproject.org/sources/  \
> >     n"
> >     >     >
> >     >     >
> >     >     >         BB_FETCH_PREMIRRORONLY = "1"
> >     >     >
> >     >     >
> >     >     >         but I still get the following errors:
> >     >     >
> >     >     >         ERROR: Function failed: Network access disabled
> through
> >     >     BB_NO_NETWORK
> >     >     >         (or set indirectly due to use of
> BB_FETCH_PREMIRRORONLY)
> >     but
> >     >     access
> >     >     >         requested with command git fetch -f --prune git://
> >     >     git.yoctoproject.org/
> >     >     >         yocto-kernel-tools.git  <
> http://git.yoctoproject.org/
> >     >     >         yocto-kernel-tools.git>  refs/*:refs/* (for url
> git://
> >     >     >         git.yoctoproject.org/yocto-kernel-tools.git <http://
> >     >     >         git.yoctoproject.org/yocto-kernel-tools.git>)
> >     >     >
> >     >     >         ERROR: Logfile of failure stored in:
> /home/vitalife/yocto/
> >     >     >         poky-dora-10.0.1/build/tmp/work/x86_64-linux/
> >     kern-tools-native/
> >     >     >         0.2+gitAUTOINC+a42509b01c-r12/temp/log.do_fetch.4490
> >     >     >
> >     >     >         It seems that bitbake is still trying to access the
> server
> >     with
> >     >     git.
> >     >     >
> >     >     >         Any suggestion?
> >     >     >
> >     >     >         Thank you in advance
> >     >     >
> >     >     >         Federico
> >     >     >
> >     >     >
> >     >     >
> >     >     >
> >     >     >
> >     >     >     Remove
> >     >     >     BB_FETCH_PREMIRRORONLY = "1"
> >     >     >
> >     >     >
> >     >     >     --
> >     >     >     Marco Cavallini | KOAN sas | Bergamo - Italia
> >     >     >      embedded and real-time software engineering
> >     >     >     Phone:+39-035-255.235 - Fax:+39-178-22.39.748
> >     >     >           http://www.KoanSoftware.com
> >     >     >     _______________________________________________
> >     >     >     yocto mailing list
> >     >     >     yocto@yoctoproject.org
> >     >     >     https://lists.yoctoproject.org/listinfo/yocto
> >     >     >
> >     >     >
> >     >
> >     >     > _______________________________________________
> >     >     > yocto mailing list
> >     >     > yocto@yoctoproject.org
> >     >     > https://lists.yoctoproject.org/listinfo/yocto
> >     >
> >     >
> >     >
> >
> >
>

[-- Attachment #2: Type: text/html, Size: 11147 bytes --]

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

end of thread, other threads:[~2014-02-20  9:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-19 10:44 problem with yocto behind http_proxy Federico Vitali
2014-02-19 10:49 ` Marco
2014-02-19 11:12   ` Federico Vitali
2014-02-19 12:56     ` Laurentiu Palcu
2014-02-19 13:24       ` Federico Vitali
2014-02-19 13:51         ` Laurentiu Palcu
2014-02-19 13:57           ` Federico Vitali
2014-02-19 14:23             ` Laurentiu Palcu
2014-02-19 18:13               ` Federico Vitali
2014-02-20  9:55               ` Federico Vitali
2014-02-19 18:41     ` Paul Eggleton

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.