updatedb fails on F7....

Mamoru Tasaka mtasaka at ioa.s.u-tokyo.ac.jp
Mon Oct 1 10:44:29 UTC 2007


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




More information about the users mailing list