Missing files in locatedb
Hello. Today I found a very strange problem. Some files seem to be
missing from locatedb database.
It all started with one particular file I wanted to find. But 'locate
<word>' didn't find the file I was looking for. I went to the
directory it was supposed to be, and there it was!
I have a cron job to updatedb every night. In fact:
$ ls -l /var/cache/locate/
total 7020
-rw-r--r-- 1 root root 7173582 2007-09-27 06:26 locatedb
So it seems to be in order. The file I wanted was created in August. So?
In fact, none the files in this directory is in the database!
In case you're curious, the directory is named
~/textos/fisica/departamento_fisica/departamento
In /etc/updatedb.conf, there is the following line:
PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /alex /var/spool /sfs /media"
So I don't think updatedb should omit this directory. In fact, none of
the files in any subdirectory of ~/textos/fisica/departamento_fisica/
is indexed!
I've made some random search of files in other directories, and they
seem indexed. In fact files in ~/textos itself are indexed.
Some files in the original problematic directory have permissions
-rw------- (does updatedb respect this), but the file I was looking
for in the first place has read permissions for all.
I don't understand. Does any?
Regards,
Victor
Reply to: