Bug 112772 - findutils-locate is not able to locate anything
Summary: findutils-locate is not able to locate anything
Status: RESOLVED DUPLICATE of bug 103873
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 2
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Andreas Schwab
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-24 17:13 UTC by Jason Kasper
Modified: 2005-08-31 14:35 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Kasper 2005-08-24 17:13:10 UTC
If I run updatedb as root, I get this:

/usr/bin/find: /media/floppy: No medium found

I did not mount /media/floppy, so I am assuming that it is auto-mounted.  Here 
is what my /etc/fstab looks like:

/dev/fd0             /media/floppy        subfs      noauto,fs=floppyfss,
procuid,nodev,nosuid,sync 0 0

If I run sudo updatedb and then locate passwd, nothing is found.

If I manually umount /media/floppy, then run sudo updatedb, then I do not get 
the above error, updatedb runs correctly, and locate is able to find things 
properly.
Comment 1 Andreas Schwab 2005-08-25 14:45:24 UTC
Don't remove /media from UPDATEDB_PRUNEPATHS. 
Comment 2 Jason Kasper 2005-08-25 15:21:33 UTC
I don't know how to do what you're talking about, so I doubt that I have done 
it.  How would I check to see what this configuration setting is?
Comment 3 Jason Kasper 2005-08-25 19:54:41 UTC
Okay, I just checked in /etc/sysconfig/locate has this:

UPDATEDB_PRUNEPATHS="/mnt /cdrom /tmp /usr/tmp /var/tmp /var/spool /proc /media"

I haven't changed it.  I haven't "removed /media from UPDATEDB_PRUNEPATHS."  I'm 
re-opening this as your solution doesn't fix the problem.  Help, please?
Comment 4 Jason Kasper 2005-08-26 12:56:52 UTC
Also, I don't understand why /media/floppy is getting auto-mounted when I boot.  
I have commented out /media/floppy from /etc/fstab, and still I get this when I 
run `mount`:

/dev/fd0 on /media/floppy type subfs (rw,nosuid,nodev,sync,fs=floppyfss,procuid)

I do not have a floppy disk in /dev/fd0, so I think that it's a bug that /media/
floppy gets mounted at boot.  That may be aggravating/causing the bug that I've 
reported here.

Thanks for your help!  =:)
Comment 5 Andreas Schwab 2005-08-26 17:27:50 UTC
You didn't pass the right options to updatedb. 
Comment 6 Jason Kasper 2005-08-31 14:12:23 UTC
Here's the thing...  You can keep closing this as INVALID, but I really don't 
think it is.  Have you actually taken the time to try this?  

I have installed beta1 as a clean/full install.  I have installed the 
appropriate package via yast and have not tampered with it, nor have I changed 
any settings whatsoever.  I have upgraded via yast to the latest beta.  And if I 
let the cron job do updatedb (with whatever settings are default), what I see 
the next day is that if I run something extremely simple, such as "locate 
passwd", I get no results and a return code of 1.

Now, I just ran "strace -f locate passwd", what I see is this (at the bottom):

stat64("/var/lib/locatedb", {st_mode=S_IFREG|0644, st_size=62, ...}) = 0
open("/var/lib/locatedb", O_RDONLY|O_LARGEFILE) = 3
time([1125497053])                      = 1125497053
fstat64(3, {st_mode=S_IFREG|0644, st_size=62, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40027000
read(3, "\0LOCATE02\0\0Your password has exp"..., 4096) = 62
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40027000, 4096)                = 0
close(1)                                = 0
exit_group(1)     


And, what I see if I do a "cat /var/lib/locatedb" is this:

LOCATE02Your password has expired. Choose a new password.

Does that sound to you like this is an invalid bug?  I don't think so.  It does 
look to me that there is another problem here.  Can you please help me with it?

Thanks very much.
Comment 7 Andreas Schwab 2005-08-31 14:18:43 UTC

*** This bug has been marked as a duplicate of 103873 ***
Comment 8 Jason Kasper 2005-08-31 14:35:37 UTC
Thank you Andreas!  =:)