Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37601 - Portage errors, counter update failing and mtimedb errors
Summary: Portage errors, counter update failing and mtimedb errors
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: 2004-01-08 06:08 UTC by Marcel Paulekuhn
Modified: 2004-02-06 05:32 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 Marcel Paulekuhn 2004-01-08 06:08:36 UTC
After emerging portage on my stage1 install I got this:

Recalculating the counter... FAILED to update counter.
!!! This is a problem.
>>> Clearing invalid entries in dependency cache... ...done!

Seems to be solved since -r21 though, at least I didn't get it the last times but I'm unsure if it could come back or not.

To mtimedb:

emerge rsync
Invalid or unset record 'packages' in mtimedb.
Invalid or unset record 'eclass' in mtimedb. 

etc-update
Deleting invalid mtimedb key: packages
Deleting invalid mtimedb key: eclass 

eupdatedb
Deleting invalid mtimedb key: packages
Deleting invalid mtimedb key: eclass 

I have no idea whatsoever what's causing this, the rescue portage didn't help either, also another thing which is odd, emerge info tells me I got portage 2.0.49-r20 while I'm sure I have -r21 installed (output of emerge -pv portage).

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.1-rc1-mm1)
=================================================================
System uname: 2.6.1-rc1-mm1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/c                                                             
                        onfig /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.r                                                     
                                wth-aachen.de/pub/Linux/gentoo
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://                        
                                                            
ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distri                                
                                                     butions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib alsa apm avi berkdb crypt cups dvd encode foomaticdb gdbm gif gpm
gtk gtk                                                                        
             2 imlib jpeg libg++ libwww mad mikmod mmx motif mpeg ncurses nls
oggvorbis opengl pam                                                           
                           pdflib perl png python qt quicktime readline ruby sdl
slang spell sse ssl svga tcltk t                                               
                                      cpd truetype x86 xml2 xmms xv zlib"
Comment 1 xlyz 2004-01-10 18:34:32 UTC
etcat -v your_package
Invalid or unset record 'packages' in mtimedb.
Invalid or unset record 'eclass' in mtimedb.

emerge info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.1-gentoo)
=================================================================
System uname: 2.6.1-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr  -falign-functions=4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr  -falign-functions=4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.linux.no/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apm avi cdr crypt cups directfb dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libwww mad mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png ppds python quicktime samba sdl sse ssl svga tcpd tiff truetype usb x86 xml2 xmms xv zlib"
Comment 2 xlyz 2004-01-10 18:46:54 UTC
btw portage is r21
don't know why emerge info reported r20
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2004-01-11 19:23:31 UTC
emerge sync and emerge portage.
Comment 4 Kevin Douglas 2004-01-16 12:06:16 UTC
I get this error now too.  I've tried the 'emerge sync; emerge portage' fix but that didn't seem to work for me.  I've also tried moving the mtimedb file to a temp location.  The file was recreated, but the error remained.  I've tried a few other things that have been posted in the forums but none of that worked either.

I originally found the problem while trying to re-emerge packages that were affected by a USE flags change.  I get the following output everytime regardless of what I do to 'fix it'.

-------------

click root # emerge -p --oneshot --nodeps =media-libs/libao-0.8.3-r1
Deleting invalid mtimedb key: eclass
Deleting invalid mtimedb key: packages

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-libs/libao-0.8.3-r1
Comment 5 Jean Jordaan 2004-02-06 05:32:30 UTC
I still get this with sys-apps/portage-2.0.49-r21

klippie jean # etcat belongs /bin/bash
Invalid or unset record 'packages' in mtimedb.
Invalid or unset record 'eclass' in mtimedb.
Searching for /bin/bash in * ...
app-shells/bash-2.05b-r5

AFAIK I'm on the latest portage, and I've just 'emerge sync'd

klippie jean # emerge info
Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r5)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.8p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.ise.co.za http://mirrors.tds.net/gentoo rsync://gentoo.seren.com/gentoo http://gentoo.seren.com/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bonobo cdr crypt cscope cups curl dga dvd encode esd flac foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imagemagick imap imlib java jpeg kde lcms ldap libg++ libwww mad maildir mcal mikmod motif mozilla mpeg mysql ncurses nls odbc oggvorbis opengl oss pam pcmcia pdflib perl plotutils png ppds python qt quicktime readline sdl slang spell sqlite ssl svga tcltk tcpd tiff truetype unicode usb x86 xml xml2 xmms xosd xv zlib"