public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] emerge is not switching mirror when one is down
@ 2010-07-14 16:16 Xi Shen
  2010-07-14 22:26 ` Jake Moe
  2010-07-15 11:47 ` [gentoo-user] " András Csányi
  0 siblings, 2 replies; 13+ messages in thread
From: Xi Shen @ 2010-07-14 16:16 UTC (permalink / raw
  To: gentoo-user

hi,

i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
i noticed that if the 1st mirror is down, emerge will continuously try
the 1st mirror. i remember it should switch to the 2nd server after
the try failed 3 times. how can i configure it to switch mirrors
automatically?


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



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

* Re: [gentoo-user] emerge is not switching mirror when one is down
  2010-07-14 16:16 [gentoo-user] emerge is not switching mirror when one is down Xi Shen
@ 2010-07-14 22:26 ` Jake Moe
  2010-07-15 11:41   ` Xi Shen
  2010-07-15 11:47 ` [gentoo-user] " András Csányi
  1 sibling, 1 reply; 13+ messages in thread
From: Jake Moe @ 2010-07-14 22:26 UTC (permalink / raw
  To: gentoo-user

On 15/07/10 02:16, Xi Shen wrote:
> hi,
>
> i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
> i noticed that if the 1st mirror is down, emerge will continuously try
> the 1st mirror. i remember it should switch to the 2nd server after
> the try failed 3 times. how can i configure it to switch mirrors
> automatically?
>   
What does "emerge --info | grep GENTOO_MIRRORS" tell you?

Jake Moe



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

* Re: [gentoo-user] emerge is not switching mirror when one is down
  2010-07-14 22:26 ` Jake Moe
@ 2010-07-15 11:41   ` Xi Shen
  2010-07-15 12:31     ` Alan McKinnon
  0 siblings, 1 reply; 13+ messages in thread
From: Xi Shen @ 2010-07-15 11:41 UTC (permalink / raw
  To: gentoo-user

it says

GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/ http://mirrors.163.com/gentoo/"

i guess it means ok, right?


On Thu, Jul 15, 2010 at 6:26 AM, Jake Moe <jakesaddress@gmail.com> wrote:
> On 15/07/10 02:16, Xi Shen wrote:
>> hi,
>>
>> i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
>> i noticed that if the 1st mirror is down, emerge will continuously try
>> the 1st mirror. i remember it should switch to the 2nd server after
>> the try failed 3 times. how can i configure it to switch mirrors
>> automatically?
>>
> What does "emerge --info | grep GENTOO_MIRRORS" tell you?
>
> Jake Moe
>
>



-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



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

* Re: [gentoo-user] emerge is not switching mirror when one is down
  2010-07-14 16:16 [gentoo-user] emerge is not switching mirror when one is down Xi Shen
  2010-07-14 22:26 ` Jake Moe
@ 2010-07-15 11:47 ` András Csányi
  2010-07-15 11:49   ` Xi Shen
  1 sibling, 1 reply; 13+ messages in thread
From: András Csányi @ 2010-07-15 11:47 UTC (permalink / raw
  To: gentoo-user

On 14 July 2010 18:16, Xi Shen <davidshen84@googlemail.com> wrote:
> hi,
>
> i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
> i noticed that if the 1st mirror is down, emerge will continuously try
> the 1st mirror. i remember it should switch to the 2nd server after
> the try failed 3 times. how can i configure it to switch mirrors
> automatically?

Which way did you make the list? Mirrorselect or manually?
Have you tried with mirrorselect?

-- 
- -
--  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
--  "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell



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

* Re: [gentoo-user] emerge is not switching mirror when one is down
  2010-07-15 11:47 ` [gentoo-user] " András Csányi
@ 2010-07-15 11:49   ` Xi Shen
  2010-07-15 11:56     ` András Csányi
  0 siblings, 1 reply; 13+ messages in thread
From: Xi Shen @ 2010-07-15 11:49 UTC (permalink / raw
  To: gentoo-user

manually. according to 'man make.conf', the GENTOO_MIRRORS is a list
URLs, separated by space. i think my value is correct.


On Thu, Jul 15, 2010 at 7:47 PM, András Csányi <sayusi.ando@gmail.com> wrote:
> On 14 July 2010 18:16, Xi Shen <davidshen84@googlemail.com> wrote:
>> hi,
>>
>> i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
>> i noticed that if the 1st mirror is down, emerge will continuously try
>> the 1st mirror. i remember it should switch to the 2nd server after
>> the try failed 3 times. how can i configure it to switch mirrors
>> automatically?
>
> Which way did you make the list? Mirrorselect or manually?
> Have you tried with mirrorselect?
>
> --
> - -
> --  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
> --  "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell
>
>



-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



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

* Re: [gentoo-user] emerge is not switching mirror when one is down
  2010-07-15 11:49   ` Xi Shen
@ 2010-07-15 11:56     ` András Csányi
  0 siblings, 0 replies; 13+ messages in thread
From: András Csányi @ 2010-07-15 11:56 UTC (permalink / raw
  To: gentoo-user

On 15 July 2010 13:49, Xi Shen <davidshen84@googlemail.com> wrote:
> manually. according to 'man make.conf', the GENTOO_MIRRORS is a list
> URLs, separated by space. i think my value is correct.

If I were in you shoes, I take a try with mirrorselect.

-- 
- -
--  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
--  "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell



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

* Re: [gentoo-user] emerge is not switching mirror when one is down
  2010-07-15 11:41   ` Xi Shen
@ 2010-07-15 12:31     ` Alan McKinnon
  2010-07-15 14:49       ` Xi Shen
  0 siblings, 1 reply; 13+ messages in thread
From: Alan McKinnon @ 2010-07-15 12:31 UTC (permalink / raw
  To: gentoo-user

On Thursday 15 July 2010 13:41:11 Xi Shen wrote:
> it says
> 
> 
GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/http://mirrors.163.com/gentoo/"
> 
> i guess it means ok, right?
> 
> On Thu, Jul 15, 2010 at 6:26 AM, Jake Moe <jakesaddress@gmail.com> wrote:
> > On 15/07/10 02:16, Xi Shen wrote:
> >> hi,
> >> 
> >> i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
> >> i noticed that if the 1st mirror is down, emerge will continuously try
> >> the 1st mirror. i remember it should switch to the 2nd server after
> >> the try failed 3 times. how can i configure it to switch mirrors
> >> automatically?
> > 
> > What does "emerge --info | grep GENTOO_MIRRORS" tell you?
> > 
> > Jake Moe

Nope, it's wrong.

That is 1 URL, I doubt it will be valid


-- 
alan dot mckinnon at gmail dot com



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

* Re: [gentoo-user] emerge is not switching mirror when one is down
  2010-07-15 12:31     ` Alan McKinnon
@ 2010-07-15 14:49       ` Xi Shen
  2010-07-15 15:09         ` Alan McKinnon
  2010-07-15 15:24         ` Nuno J. Silva
  0 siblings, 2 replies; 13+ messages in thread
From: Xi Shen @ 2010-07-15 14:49 UTC (permalink / raw
  To: gentoo-user

i tried the mirrorselect, and the generated GENTOO_MIRRORS is as follow:

GENTOO_MIRRORS="http://gentoo.localhost.net.ar/
ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo/"

and this is my original value:
GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/ http://mirrors.163.com/gentoo/"

what's the difference? except the url...


On Thu, Jul 15, 2010 at 8:31 PM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
> On Thursday 15 July 2010 13:41:11 Xi Shen wrote:
>> it says
>>
>>
> GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/http://mirrors.163.com/gentoo/"
>>
>> i guess it means ok, right?
>>
>> On Thu, Jul 15, 2010 at 6:26 AM, Jake Moe <jakesaddress@gmail.com> wrote:
>> > On 15/07/10 02:16, Xi Shen wrote:
>> >> hi,
>> >>
>> >> i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
>> >> i noticed that if the 1st mirror is down, emerge will continuously try
>> >> the 1st mirror. i remember it should switch to the 2nd server after
>> >> the try failed 3 times. how can i configure it to switch mirrors
>> >> automatically?
>> >
>> > What does "emerge --info | grep GENTOO_MIRRORS" tell you?
>> >
>> > Jake Moe
>
> Nope, it's wrong.
>
> That is 1 URL, I doubt it will be valid
>
>
> --
> alan dot mckinnon at gmail dot com
>
>



-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



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

* Re: [gentoo-user] emerge is not switching mirror when one is down
  2010-07-15 14:49       ` Xi Shen
@ 2010-07-15 15:09         ` Alan McKinnon
  2010-07-15 16:19           ` Stroller
  2010-07-15 16:36           ` [gentoo-user] " Nuno J. Silva
  2010-07-15 15:24         ` Nuno J. Silva
  1 sibling, 2 replies; 13+ messages in thread
From: Alan McKinnon @ 2010-07-15 15:09 UTC (permalink / raw
  To: gentoo-user; +Cc: Xi Shen

On Thursday 15 July 2010 16:49:33 Xi Shen wrote:
> i tried the mirrorselect, and the generated GENTOO_MIRRORS is as follow:
> 
> GENTOO_MIRRORS="http://gentoo.localhost.net.ar/
> ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo/"
> 
> and this is my original value:
> 
GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/http://mirrors.163.com/gentoo/"
                                             ^^^^

Do you or do you not agree that there should be a space there?



 
> 
> what's the difference? except the url...
> 
> On Thu, Jul 15, 2010 at 8:31 PM, Alan McKinnon <alan.mckinnon@gmail.com> 
wrote:
> > On Thursday 15 July 2010 13:41:11 Xi Shen wrote:
> >> it says
> > 
> > GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/http://mirrors.163.com/gen
> > too/"
> > 
> >> i guess it means ok, right?
> >> 
> >> On Thu, Jul 15, 2010 at 6:26 AM, Jake Moe <jakesaddress@gmail.com> wrote:
> >> > On 15/07/10 02:16, Xi Shen wrote:
> >> >> hi,
> >> >> 
> >> >> i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
> >> >> i noticed that if the 1st mirror is down, emerge will continuously
> >> >> try the 1st mirror. i remember it should switch to the 2nd server
> >> >> after the try failed 3 times. how can i configure it to switch
> >> >> mirrors automatically?
> >> > 
> >> > What does "emerge --info | grep GENTOO_MIRRORS" tell you?
> >> > 
> >> > Jake Moe
> > 
> > Nope, it's wrong.
> > 
> > That is 1 URL, I doubt it will be valid
> > 
> > 
> > --
> > alan dot mckinnon at gmail dot com

-- 
alan dot mckinnon at gmail dot com



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

* [gentoo-user] Re: emerge is not switching mirror when one is down
  2010-07-15 14:49       ` Xi Shen
  2010-07-15 15:09         ` Alan McKinnon
@ 2010-07-15 15:24         ` Nuno J. Silva
  2010-07-15 21:11           ` Alan McKinnon
  1 sibling, 1 reply; 13+ messages in thread
From: Nuno J. Silva @ 2010-07-15 15:24 UTC (permalink / raw
  To: gentoo-user

Xi Shen <davidshen84@googlemail.com> writes:
[...]
>> > On 15/07/10 02:16, Xi Shen wrote:
>> >> hi,
>> >>
>> >> i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
>> >> i noticed that if the 1st mirror is down, emerge will continuously try
>> >> the 1st mirror. i remember it should switch to the 2nd server after
>> >> the try failed 3 times. how can i configure it to switch mirrors
>> >> automatically?
[...]
> i tried the mirrorselect, and the generated GENTOO_MIRRORS is as follow:
>
> GENTOO_MIRRORS="http://gentoo.localhost.net.ar/
> ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo/"

Is this really a newline, or that's just your/my mail client wordwrapping it?

> and this is my original value:
> GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/ http://mirrors.163.com/gentoo/"
>
> what's the difference? except the url...

If that was a newline, that's the only difference. If it is not, there
is no difference.

Do you, by any chance, have a custom FETCHCOMMAND?

My /usr/share/portage/config/make.conf.example shows a default of 5
tries (-t 5), using wget.

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




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

* Re: [gentoo-user] emerge is not switching mirror when one is down
  2010-07-15 15:09         ` Alan McKinnon
@ 2010-07-15 16:19           ` Stroller
  2010-07-15 16:36           ` [gentoo-user] " Nuno J. Silva
  1 sibling, 0 replies; 13+ messages in thread
From: Stroller @ 2010-07-15 16:19 UTC (permalink / raw
  To: gentoo-user


On 15 Jul 2010, at 16:09, Alan McKinnon wrote:

> On Thursday 15 July 2010 16:49:33 Xi Shen wrote:
>> i tried the mirrorselect, and the generated GENTOO_MIRRORS is as  
>> follow:
>>
>> GENTOO_MIRRORS="http://gentoo.localhost.net.ar/
>> ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo/"
>>
>> and this is my original value:
>>
> GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/http://mirrors.163.com/gentoo/ 
> "
>                                             ^^^^
>
> Do you or do you not agree that there should be a space there?

Uh, I see a space between 2 strings, both times he posted his original  
value.

Stroller.




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

* [gentoo-user] Re: emerge is not switching mirror when one is down
  2010-07-15 15:09         ` Alan McKinnon
  2010-07-15 16:19           ` Stroller
@ 2010-07-15 16:36           ` Nuno J. Silva
  1 sibling, 0 replies; 13+ messages in thread
From: Nuno J. Silva @ 2010-07-15 16:36 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon <alan.mckinnon@gmail.com> writes:

> On Thursday 15 July 2010 16:49:33 Xi Shen wrote:
>> i tried the mirrorselect, and the generated GENTOO_MIRRORS is as follow:
>> 
>> GENTOO_MIRRORS="http://gentoo.localhost.net.ar/
>> ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo/"
>> 
>> and this is my original value:
>> 
> GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/http://mirrors.163.com/gentoo/"
>                                              ^^^^
>
> Do you or do you not agree that there should be a space there?

I see the space on his messages, but not on yours (both this and the
other one).

Maybe it's something other than a space and it is ignored by some MUAs?

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




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

* Re: [gentoo-user] Re: emerge is not switching mirror when one is down
  2010-07-15 15:24         ` Nuno J. Silva
@ 2010-07-15 21:11           ` Alan McKinnon
  0 siblings, 0 replies; 13+ messages in thread
From: Alan McKinnon @ 2010-07-15 21:11 UTC (permalink / raw
  To: gentoo-user; +Cc: Nuno J. Silva

On Thursday 15 July 2010 17:24:38 Nuno J. Silva wrote:
> Xi Shen <davidshen84@googlemail.com> writes:
> [...]
> 
> >> > On 15/07/10 02:16, Xi Shen wrote:
> >> >> hi,
> >> >> 
> >> >> i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
> >> >> i noticed that if the 1st mirror is down, emerge will continuously
> >> >> try the 1st mirror. i remember it should switch to the 2nd server
> >> >> after the try failed 3 times. how can i configure it to switch
> >> >> mirrors automatically?
> 
> [...]
> 
> > i tried the mirrorselect, and the generated GENTOO_MIRRORS is as follow:
> > 
> > GENTOO_MIRRORS="http://gentoo.localhost.net.ar/
> > ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo/"
> 
> Is this really a newline, or that's just your/my mail client wordwrapping
> it?

It gets complicated. Depending on the font size I use and the wordwrap setting 
in my mailer, the line may or may not split at that point.

So I dug out his original mail to the list, viewed the source - it was 
unwrapped plaintext - and copy-pasted the line into somewhere I could view it 
with a hex editor. And it was a newline (0x10)

So some translation must have happened somewhere. Perhaps the original 
character was a non-breaking space or a para break and my X buffer decided to 
render it as a newline before pasting. Odd indeed.

The OP should simply edit his make.conf, remove whatever seperator he has 
there and make it a real space.

-- 
alan dot mckinnon at gmail dot com



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

end of thread, other threads:[~2010-07-15 21:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-14 16:16 [gentoo-user] emerge is not switching mirror when one is down Xi Shen
2010-07-14 22:26 ` Jake Moe
2010-07-15 11:41   ` Xi Shen
2010-07-15 12:31     ` Alan McKinnon
2010-07-15 14:49       ` Xi Shen
2010-07-15 15:09         ` Alan McKinnon
2010-07-15 16:19           ` Stroller
2010-07-15 16:36           ` [gentoo-user] " Nuno J. Silva
2010-07-15 15:24         ` Nuno J. Silva
2010-07-15 21:11           ` Alan McKinnon
2010-07-15 11:47 ` [gentoo-user] " András Csányi
2010-07-15 11:49   ` Xi Shen
2010-07-15 11:56     ` András Csányi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox