Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131688 - Updating portage cache fails with portage-2.1_pre9-r5
Summary: Updating portage cache fails with portage-2.1_pre9-r5
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 141274 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-29 08:31 UTC by Gautham Arumilli
Modified: 2006-07-21 07:36 UTC (History)
1 user (show)

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 Gautham Arumilli 2006-04-29 08:31:29 UTC
When I try to update the portage cache using portage-2.1_pre9-r5 (by using emerge --metadata, for example), the update fails, and always at the same point. The output I get is:

>>> Updating Portage cache:   34%Traceback (most recent call last):
  File "/usr/bin/emerge", line 2921, in ?
    cache.util.mirror_cache(source, cm, pdb.auxdb[porttree_root], eclass_cache=ec, verbose_instance=noise_maker)
  File "/usr/lib/portage/pym/cache/util.py", line 38, in mirror_cache
    if long(trg["_mtime_"]) == long(entry["_mtime_"]) and eclass_cache.is_eclass_data_valid(trg["_eclasses_"]):
  File "/usr/lib/portage/pym/cache/mappings.py", line 32, in __getitem__
    return self.orig[key]
  File "/usr/lib/portage/pym/cache/mappings.py", line 77, in __getitem__
    self.d.update(self.pull())
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 29, in callit
    return args[0](*args[1:]+args2)
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 44, in _pull
    d = self._parse_data(myf, cpv)
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 53, in _parse_data
    d = dict(map(lambda x:x.rstrip().split("=", 1), data))
IOError: [Errno 5] Input/output error

My emerge --info looks like:

Portage 2.1_pre9-r5 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-suspend2-r8 i686)
=================================================================
System uname: 2.6.15-suspend2-r8 i686 Intel(R) Pentium(R) M processor 1200MHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium-m -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US.UTF-8"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/gentopia"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa avi bash-completion berkdb bitmap-fonts cdr cli crypt cups dbus dri dvd eds emacs emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal howl imlib input_devices_keyboard isdnlog java jikes jpeg libg++ libwww mad mikmod mmx mp3 mpeg ncurses nfs nls nptl ogg oggvorbis opengl oss pam pam_console pcmcia pcre pdflib perl pic png pppd python quicktime readline reflection samba sdl session spell spl sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts unicode video_cards_i810 vorbis win32codecs xml2 xmms xorg xv zlib elibc_glibc input_devices_mouse kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Zac Medico gentoo-dev 2006-04-29 08:39:02 UTC
(In reply to comment #0)
> IOError: [Errno 5] Input/output error

It seems like there's some trouble reading your disk.  I would check the disk for bad blocks and filesystem corruption.
Comment 2 Gautham Arumilli 2006-04-29 09:31:19 UTC
Sorry about that, I was stupid. It's a hard drive issue. I recently went to ~x86 portage, and assumed that was the problem...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-07-21 07:36:37 UTC
*** Bug 141274 has been marked as a duplicate of this bug. ***