Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] GENTOO_MIRRORS in /etc/make.conf ignored
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
VinnieNZ
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2004
Posts: 126
Location: New Zealand

PostPosted: Fri Jun 13, 2008 8:34 am    Post subject: [SOLVED] GENTOO_MIRRORS in /etc/make.conf ignored Reply with quote

Hi,

On my system, for some reason as of late, GENTOO_MIRRORS in the /etc/make.conf file seems to be being ignored.

This is extraordinarily annoying as during peak times, international internet access in NZ is quite slow at the moment, and if I try to emerge something, I usually end up with the download failing or corrupt packages. I have had set (for a long time) a local mirror that resolves this issue (and gives me massively fast downloads), but for some reason the packages are always fetched from http://distfiles.gentoo.org/.

I'm not sure when this first started happening, but I'm currently running Portage 2.1.5.5, and its affected a few versions prior to this. I also note that very occasionally it does obey the GENTOO_MIRRORS line, and will download from the local server, but 9 times out of 10, it will instantly try the distfiles.gentoo.org server first.

The GENTOO_MIRRORS line I have in my /etc/make.conf file looks like:
Code:
GENTOO_MIRRORS="http://ftp.citylink.co.nz/gentoo http://ftp.swin.edu.au/gentoo http://distfiles.gentoo.org"


Using the mirrorselect tool to generate an automatic list doesn't work either.

This only affects on PC on my network, the others, with the exact same copy and paste GENTOO_MIRRORS line, will check the NZ server first, the AUS one second, and gentoo last.

Any ideas as to what is going on?


Last edited by VinnieNZ on Fri Jun 13, 2008 10:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
VinnieNZ
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2004
Posts: 126
Location: New Zealand

PostPosted: Fri Jun 13, 2008 9:03 am    Post subject: Reply with quote

OK, this is kind of odd:

Code:
>>> Emerging (1 of 1) x11-wm/e-0.16.999.041 to /
>>> Downloading 'http://distfiles.gentoo.org/distfiles/enlightenment-0.16.999.041.tar.gz'
--2008-06-13 20:59:13--  http://distfiles.gentoo.org/distfiles/enlightenment-0.16.999.041.tar.gz
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
Proxy request sent, awaiting response... 404 Not Found
2008-06-13 20:59:13 ERROR 404: Not Found.

>>> Downloading 'http://ftp.citylink.co.nz/gentoo/distfiles/enlightenment-0.16.999.041.tar.gz'
--2008-06-13 20:59:13--  http://ftp.citylink.co.nz/gentoo/distfiles/enlightenment-0.16.999.041.tar.gz
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
Proxy request sent, awaiting response... 404 Not Found
2008-06-13 20:59:14 ERROR 404: Not Found.

>>> Downloading 'http://ftp.swin.edu.au/gentoo/distfiles/enlightenment-0.16.999.041.tar.gz'
--2008-06-13 20:59:14--  http://ftp.swin.edu.au/gentoo/distfiles/enlightenment-0.16.999.041.tar.gz
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
Proxy request sent, awaiting response... 404 Not Found
2008-06-13 20:59:14 ERROR 404: Not Found.


Ignoring the fact that the file is not found, its tries http://distfiles.gentoo.org first, then proceeds to check the rest of the mirrors I have specified in GENTOO_MIRRORS. 8O
Back to top
View user's profile Send private message
gerard82
Veteran
Veteran


Joined: 04 Jan 2004
Posts: 1855
Location: Netherlands

PostPosted: Fri Jun 13, 2008 9:44 am    Post subject: Reply with quote

Hi VinnieNZ,
I am puzzled by your emerge-fetch.log.
Here is an example of what happens on my box:
Code:

>>> Emerging (2 of 6) app-cdr/dvd+rw-tools-7.1 to /
>>> Downloading 'ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/dvd+rw-tools-7.1.tar.gz'
--2008-06-12 13:13:57--  ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/dvd+rw-tools-7.1.tar.gz
           => `/usr/portage/distfiles/dvd+rw-tools-7.1.tar.gz'
Resolving ftp.snt.utwente.nl... 130.89.175.1
Connecting to ftp.snt.utwente.nl|130.89.175.1|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/os/linux/gentoo/distfiles ... done.
==> SIZE dvd+rw-tools-7.1.tar.gz ... 140846
==> PASV ... done.    ==> RETR dvd+rw-tools-7.1.tar.gz ... done.
Length: 140846 (138K)

     0K .......... .......... .......... .......... .......... 36%  181K 0s
    50K .......... .......... .......... .......... .......... 72%  323K 0s
   100K .......... .......... .......... .......              100%  332K=0.5s

2008-06-12 13:14:01 (253 KB/s) - `/usr/portage/distfiles/dvd+rw-tools-7.1.tar.gz' saved [140846]

As you can see there's no resolving localhost.
Are you using a proxy (never used it myself) or a firewall?
If so maybe that's where your problem is?
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has Firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
VinnieNZ
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2004
Posts: 126
Location: New Zealand

PostPosted: Fri Jun 13, 2008 10:37 am    Post subject: Reply with quote

Yes, I'm using a proxy on the local machine.

HTTP-Replicator, to ensure that any packages that are downloaded are grabbed locally when installing on other gentoo machines.

I've just tested and removing the proxy line doesn't change things. :(
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7301
Location: Groton, Massachusetts USA

PostPosted: Fri Jun 13, 2008 7:52 pm    Post subject: Reply with quote

Code:
# echo "127.0.0.1 distfiles.gentoo.org" >> /etc/hosts

This is a crude but effective way to block portage from downloading anything from this particular mirror.
Back to top
View user's profile Send private message
VinnieNZ
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2004
Posts: 126
Location: New Zealand

PostPosted: Fri Jun 13, 2008 10:26 pm    Post subject: Reply with quote

Ah-ha, found it.

There was a file /etc/portage/mirrors that had the contents as http://distfiles.gentoo.org.

Deleting this file (since its not on any of my other Gentoo machines) got rid of the problem, and now goes in the correct order.

Yay :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum