Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Invalid

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
67 posts
  • Previous
  • 1
  • 2
  • 3
Author
Message
TheZog
n00b
n00b
User avatar
Posts: 57
Joined: Sat Aug 17, 2002 4:29 pm
Location: Sunny Seattle

  • Quote

Post by TheZog » Thu Jan 22, 2004 3:16 am

Yeah I've been dealing with the same issue as TheCoop.
Everytime I use emerge (oe. emerge -pu world) I get a long list of all the invaild db's.
Top
Rucker
n00b
n00b
Posts: 25
Joined: Wed Oct 30, 2002 3:00 pm

  • Quote

Post by Rucker » Thu Jan 22, 2004 3:45 am

Could a developer comment on what, if any, problems this bug is causing or may cause in the future?
Top
angagon
n00b
n00b
User avatar
Posts: 21
Joined: Wed Mar 19, 2003 1:35 am
Location: Colorado Springs, CO

  • Quote

Post by angagon » Fri Jan 23, 2004 6:58 pm

I noticed that when I used fix-db.py I would only get a couple of blank lines, but when using fix-db.pl I would get some db errors that needed to be fixed.

I then followed the fix-db.pl instructions and had to delete and reemerge, I think, 3 packages, but the problem disappeared.

So there may be some issue with differences in fix-db.py and fix-db.pl.
"Not everyone knows Josiah Royce's definition of a liar as a man who willfully misplaces his ontological predicates, but everyone who has ever told a lie will recognize its accuracy."
Ch. 94: Truth - "The Great Ideas"
Top
Neech
n00b
n00b
User avatar
Posts: 72
Joined: Sun Sep 21, 2003 12:53 am
Location: Ottawa, Canada

  • Quote

Post by Neech » Sat Jan 24, 2004 6:55 pm

Hrm, well i'm stuck hehe

Code: Select all

shoushi root # /usr/lib/portage/bin/fix-db.pl
Grabbing db contents...
fix-db: fatal: # of ebuilds doesn't match # of CONTENTS files
shoushi root # /usr/lib/portage/bin/fix-db.py
Traceback (most recent call last):
  File "/usr/lib/portage/bin/fix-db.py", line 54, in ?
    pkgdirlist = os.listdir(pkgdir)
OSError: [Errno 20] Not a directory: '/var/db/pkg/x11-misc/-MERGING-xscreensaver-4.14-r1.portage_lockfile/'
Top
xlyz
Veteran
Veteran
User avatar
Posts: 1470
Joined: Sun Oct 27, 2002 8:04 pm
Location: Italy

  • Quote

Post by xlyz » Sat Jan 24, 2004 10:44 pm

updated python to 2.3.3 and problem seems gone (fingers crossed)
Top
b1nd3n14l
Tux's lil' helper
Tux's lil' helper
Posts: 80
Joined: Fri Jun 06, 2003 11:57 am

  • Quote

Post by b1nd3n14l » Sat Jan 31, 2004 2:13 pm

I have 4 gentoo machines all running about the same packages.
(one build server, other 3 are clients)

During updating packages
I had the infamous
!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd
on one of the machines.

I ran
/usr/lib/portage/bin/fix-db.py
and it fixed something
cuz the error vanished.

Wierd...
Later...Gator...

First ever Gentoo Install: June 5th , 2003
Registered User #12078 at http://counter.li.org
Top
Rucker
n00b
n00b
Posts: 25
Joined: Wed Oct 30, 2002 3:00 pm

  • Quote

Post by Rucker » Sat Jan 31, 2004 8:39 pm

xlyz wrote:updated python to 2.3.3 and problem seems gone (fingers crossed)
I just did a fresh install that used Python 2.3.3 and the error still popped up a few times while emerging gnome and it's dependencies.
Top
barefootcoder
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 93
Joined: Fri Jan 09, 2004 9:30 pm

  • Quote

Post by barefootcoder » Sun Feb 01, 2004 8:00 pm

I'm also having the devfsd error. It was originally fixed by removing the /var/db/pkg directory and re-emerging devfsd, but it kept coming back, and now nothing seems to faze it. I've tried just about everything mentioned on this thread, and right now I seem to stuck at this point:

Code: Select all

sigil root # /usr/lib/portage/bin/fix-db.pl
Grabbing db contents...
Grabbing mtimes...
fix-db: fatal: insufficient data for media-sound/mad-0.15.0b

Remove this package's directory from /var/db/pkg to fix this, then start this
script again. If everything worked correctly, you must remerge
media-sound/mad-0.15.0b to not mess up any dependencies.
That one appears to be unfixable. Re-emerging mad, with or without unmerging it first, with or without removing the /var/db/pkg directory first, just gets me back to this error. Running fix-db.py gives the somewhat typical couple of blank lines and nothing else. Using portage 2.0.49-r21 and python 2.3.3. I also get other errors, like the "!!! Couldn't find match for" the thing it's in the process of emerging, and occasionally the "install-info: menu item `Bash' already exists, for file `bash'".

Any further thoughts would be greatly appreciated.
Top
mmuser
n00b
n00b
Posts: 39
Joined: Thu Apr 18, 2002 9:16 pm

Same issues here ...but different

  • Quote

Post by mmuser » Wed Feb 04, 2004 11:00 pm

I am getting the same issues, I have tried everything said here before but still getting the Invalid devfsd error when emerging anything, here are the 2 results from each "fix db script"

Code: Select all

root # /usr/lib/portage/bin/fix-db.py
ERROR: SLOT file is empty for 'sys-apps/baselayout-1.7.7'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/groff-1.17.2-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/debianutils-1.16'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/diffutils-2.7.7'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/file-3.37'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/fileutils-4.1.8'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/findutils-4.1.7-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/gawk-3.1.0-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/grep-2.5-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/sed-3.02.80-r3'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/hdparm-4.6-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/less-371-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/lsof-4.60-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/man-1.5i-r3'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/man-pages-1.43-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/modutils-2.4.12'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/net-tools-1.60-r3'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/netkit-base-0.17-r5'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/procps-2.0.7-r6'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/psmisc-19-r3'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/reiserfs-utils-3.6.25-r7'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/sh-utils-2.0.11-r4'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/shadow-4.0.2-r4'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/textutils-2.0.19-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/util-linux-2.11o'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/which-2.13'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/xinetd-2.3.4'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/eject-2.0.10'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/ucspi-tcp-0.88-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-kernel/linux-sources-2.4.19-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-kernel/gentoo-sources-2.4.19-r5'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/glibc-2.2.5-r2'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/ncurses-5.2-r5'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/readline-4.1-r4'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/pwdb-0.61-r3'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/cracklib-2.7-r3'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/pam-0.75-r6'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/lib-compat-1.0-r2'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/gpm-1.20.0-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/gcc-2.95.3-r5'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/gettext-0.11.1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/flex-2.5.4a-r4'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/bc-1.06-r3'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/bin86-0.15.5'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/bison-1.34-r1'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/ld.so-1.9.11-r2'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/make-3.79.1-r3'.
       RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/gdb-5.1.1'.
       RE-MERGE this exact package version or unmerge and remerge it.
Traceback (most recent call last):
  File "/usr/lib/portage/bin/fix-db.py", line 54, in ?
    pkgdirlist = os.listdir(pkgdir)
OSError: [Errno 20] Not a directory: '/var/db/pkg/sys-devel/-MERGING-gcc-3.2.3-r3.portage_lockfile/'
Now here is the other one:

Code: Select all

root # /usr/lib/portage/bin/fix-db.pl
Grabbing db contents...
Grabbing mtimes...
fix-db: fatal: insufficient data for kde-base/kde-3.1.5

Remove this package's directory from /var/db/pkg to fix this, then start this
script again. If everything worked correctly, you must remerge
kde-base/kde-3.1.5 to not mess up any dependencies.
root #
I have tried removing directories then emergeing a bunch of different packages nothing really chenges, what script creates /var/db/pkg ?? could we del everything in /var/db/pkg then have that script re-create it again (or emerge -e world whatever it takes)?

PS As far as I can tell my system is stable and everything "seems" to emerge ok, I have had a couple of crashes where some files got corrupt (XFS file system) though I fix the obivious ones other then that now out of the ordinary...
Top
TheCoop
Veteran
Veteran
User avatar
Posts: 1814
Joined: Sat Jun 15, 2002 5:20 pm
Location: Where you least expect it
Contact:
Contact TheCoop
Website

  • Quote

Post by TheCoop » Tue Feb 24, 2004 9:48 pm

hmm, ive still got the 'long list' varient of the problem. Deleting the empty directories in /var/db/pkg removes them from the list. if I delete directories with packages recorded in them they are removed from the list, when I recompile the packages whos db entry I deleted the !!! Invalid... error for the category comes back. Can a dev please say exactly what the problem is, or how we can help debug it (we are all very eager to help you as much as we can btw)
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Top
Smoothhound
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Tue Sep 23, 2003 4:42 pm

  • Quote

Post by Smoothhound » Thu Feb 26, 2004 2:24 pm

TheCoop wrote:hmm, ive still got the 'long list' varient of the problem. Deleting the empty directories in /var/db/pkg removes them from the list. if I delete directories with packages recorded in them they are removed from the list, when I recompile the packages whos db entry I deleted the !!! Invalid... error for the category comes back. Can a dev please say exactly what the problem is, or how we can help debug it (we are all very eager to help you as much as we can btw)
Me too - I've been unable to update for several days now :cry:

I can add however that my problem began after a hard lockup during an emerge. (nforce2 apic related now resolved)

One other thing: I've only got fix-db.py where can get fix-db.pl?

Cheers!
Top
Smoothhound
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Tue Sep 23, 2003 4:42 pm

  • Quote

Post by Smoothhound » Tue Mar 02, 2004 10:11 am

I've found out the cause of my problem - my /var/cache/edb/world file was fscked - it was full of garbage probably as a result of my mid-emerge crash.

I've eliminated the problem by reinstating a rather old backup of my world file - my next problem is to try and regenerate an up to date world file, I'll hunt the forums and start this in a seperate thread if I can't find anything.

[EDIT] Well that was easy ;) [/EDIT]

Hope this helps someone

:)
Top
TheCoop
Veteran
Veteran
User avatar
Posts: 1814
Joined: Sat Jun 15, 2002 5:20 pm
Location: Where you least expect it
Contact:
Contact TheCoop
Website

  • Quote

Post by TheCoop » Tue Mar 02, 2004 5:55 pm

that worked, by world file had loads and loads of crap in it from a fs crash I recovered from, deleting it and regenworld'ing it worked a treat :)
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Top
Decibels
Veteran
Veteran
User avatar
Posts: 1635
Joined: Fri Aug 16, 2002 12:51 am
Location: U.S.A.

  • Quote

Post by Decibels » Thu Mar 04, 2004 5:12 am

That worked perfect TheCoop & Smoothhound! I didn't have the problem, but know someone that had the exact problem you did and that work.

I tried the regenworld first, but didn't know about the world file corruption. Working CLI over ssh has it drawbacks sometimes when trying to find stuff.

Thanks.
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Top
tomk
Bodhisattva
Bodhisattva
User avatar
Posts: 7221
Joined: Tue Sep 23, 2003 1:41 pm
Location: Sat in front of my computer

  • Quote

Post by tomk » Thu Apr 08, 2004 5:51 pm

Unstickied this one for now. If anyone wants it stickied again PM me.
Search | Read | Answer | Report | Strip
Top
cghislai
n00b
n00b
Posts: 11
Joined: Wed Jun 15, 2005 7:52 am

  • Quote

Post by cghislai » Sun Dec 18, 2005 7:04 pm

hi all

I have the same issue whencalling equery:

Code: Select all

 # equery f /lib/rcscripts/net.modules.d/iproute2                                                  
[ Searching for packages matching /lib/rcscripts/net.modules.d/iproute2... ]
!!! Invalid db entry: /var/db/pkg//sys-devel
!!! Invalid db entry: /var/db/pkg//sys-apps
!!! Invalid db entry: /var/db/pkg//sys-kernel
<skipping the LOOONG list>
Ive tried all your suggestion, exepting remerging devfs wich i dont use. Im using portage > 0.50, so the bug mentionned do not apply.

I wonder what is the cause....
Any suggestion welcome!
Top
blackwhite
Apprentice
Apprentice
Posts: 250
Joined: Thu Jun 24, 2004 7:34 pm

  • Quote

Post by blackwhite » Thu Dec 29, 2005 3:48 am

cghislai wrote:hi all

I have the same issue whencalling equery:

Code: Select all

 # equery f /lib/rcscripts/net.modules.d/iproute2                                                  
[ Searching for packages matching /lib/rcscripts/net.modules.d/iproute2... ]
!!! Invalid db entry: /var/db/pkg//sys-devel
!!! Invalid db entry: /var/db/pkg//sys-apps
!!! Invalid db entry: /var/db/pkg//sys-kernel
<skipping the LOOONG list>
Ive tried all your suggestion, exepting remerging devfs wich i dont use. Im using portage > 0.50, so the bug mentionned do not apply.

I wonder what is the cause....
Any suggestion welcome!
equery b /lib/rcscripts/net.modules.d/iproute2
Top
Post Reply

67 posts
  • Previous
  • 1
  • 2
  • 3

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic