Re: updatedb fails on F7....



Vivek J. Patankar wrote, at 10/01/2007 07:16 PM +9:00:
Doncho N. Gunchev wrote:
On Sunday 2007-09-30 21:40:38 Globe Trotter wrote:
so what is the solution to this, as root?

# updatedb
updatedb: src/updatedb.c:721: scan_cwd: Assertion `name_size > 1' failed.
Aborted

How much time does it take it to give this message? Generally speaking you
should call /etc/cron.daily/mlocate.cron, which will tell updatedb what
not to index (ex: /dev, /proc, /sys, /selinux, /tmp...). Maybe one of
these pseudo filesystems is causing the problem, try mlocate.cron?

Better still, add /sys to the PRUNEPATHS parameter in /etc/updatedb.conf
Run updatedb with the -v flag and you'll probably notice that it gets stuck at /sys/module/nousb/parameters. That's probably because of a file in there that has a zero sized filename.

This is a workaround for a known bug. Please check:

https://bugzilla.redhat.com/show_bug.cgi?id=242715
Bugzilla Bug 242715: Updatedb commad aborts unless /sys directory is pruned (fresh install)

Regards,
Mamoru

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: updatedb fails on F7....
    ... Generally speaking you ... which will tell updatedb what ... these pseudo filesystems is causing the problem, ... Doncho N. Gunchev, GPG key ID: 0EF40B9E, Key server: pgp.mit.edu ...
    (Fedora)
  • Re: updatedb fails on F7....
    ... Doncho N. Gunchev wrote: ... Generally speaking you ... which will tell updatedb what ... Registered Linux User #374218 ...
    (Fedora)