Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34496 - emerge sync crashed with proxy: socket.gaierror: (-3, 'Temporary failure in name resolution')
Summary: emerge sync crashed with proxy: socket.gaierror: (-3, 'Temporary failure in n...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-26 23:19 UTC by Alexis Lahouze
Modified: 2011-10-30 22:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Lahouze 2003-11-26 23:19:02 UTC
That is what emerge sync displays: (I added a trace for the hostname)
rsync.gentoo.org
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1786, in ?
    ip=socket.gethostbyname(hostname)
socket.gaierror: (-3, 'Temporary failure in name resolution')

I need to pass thru an HTTP proxy to connec to the net. It worked well but now I
have these errors

PS: I added "import socket" at the beginning of the file /usr/bin/emerge because
I add this error:
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1784, in ?
    ip=socket.gethostbyname(hostname)
NameError: name 'socket' is not defined

My version of portage is: 2.0.49-r17

The problem is only for emerge sync and I can emerge any package...

Reproducible: Always
Steps to Reproduce:
1.emerge sync





Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-openmosix)
=================================================================
System uname: 2.4.22-openmosix i686 AMD Athlon(tm) XP 2100+
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs buildpkg fixpackages"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml
gdbm berkdb slang readline arts tetex bonobo svga guile X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl socks5
samba java usb nas fbcon apache2 emacs maildir ipv6 gtk2 evo gstreamer gd doc
mbox cdr videos mysql leim sse tcltk acpi alsa xml dga mmx tiff 3dnow mozilla
dvd joystick"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-11-27 06:35:05 UTC
You can resolve DNS, correct?
'host www.gentoo.org' works on that box?

Anything special about /etc/resolv.conf ? Empty?
Comment 2 Alexis Lahouze 2003-11-27 06:41:26 UTC
nop. my /etc/resolv.conf :

domain boost-domain
nameserver 127.0.0.1


my nameserver (localhost) is an independent DNS server, it doesn't communicate with  others.
To access internet, I only have the proxy host: http://tania:4480
I think rsync doesn't use the proxy with this version.
I believed proxy access doesn't need name server... only for the proxy host (winXP with AOL connection)
thx for the help
Comment 3 Alexis Lahouze 2003-11-27 06:44:46 UTC
ps: I back to version2.0.49-r15 and it work well with the proxy
Comment 4 Alexis Lahouze 2003-11-27 07:07:00 UTC
I just added this line to /etc/resolv.conf:
nameserver 192.168.0.83 // host 'tania' ip

and It work well, but It takes some more time.

I dont understand why with the last version it work without this line....
I will fix it in my network
Thanks!!
Comment 5 Alexis Lahouze 2003-11-27 07:11:41 UTC
ps: with 2.0.49-r17 version (i unmasked it manually)
Comment 6 Masatomo Nakano (RETIRED) gentoo-dev 2003-11-29 13:22:53 UTC
it was fixed in cvs by carpaski