On 2012-01-11 16.26, L. V. Lammert wrote:
> Have a 4.3 server with a really weird problem: locate ONLY indexes one
> [user file] partition! IOW, no binaries are indexed, nor is /usr/, /var, ..

Is this a new phenomenon? That is, did it use to work earlier and
something is now broken? In that case, what did you change? :-)

Anyway, I have a very vague recollection of a problem in earlier versions
of locate, with filenames containing 8-bit characters. I don't recall the
details now, but I *think* that it core dumped, leaving the database in-
completely generated. That may very well be an exact match to the symptoms
you are seeing now, so check your file systems for (new) files containing
unusual characters.

(I'm not even gonna comment on the rest of this discussion. Ah, yet I
just did, didn't I? Oh well, in that case...

I feel it would have been prudent of you not to insult this community
when denied help because of *your* own failure to play by the rules.

Not only is it counterproductive for your own problem's sake, all this
annoying bickering that flares up from time to time wears on everyones
patience, and I for one don't like to see this community wither away
because some individuals can't accept that there are a certain set of
rules by which to act in order to both get something out of the community
and to contribute to it. People eventually tire of this shit and leave,
it's as simple as that. And rarely is it the annoying, non-contributing
people that leave first...

That said, if I look at my own modest server farm, my oldest OpenBSD
box is a 3.8 one. I dare not touch it these days! So I can absolutely
understand that there are perfectly valid reasons to keep an old, non-
upgraded machine around. But I most certainly won't expect any help from
anyone else but me either, if and when it fails. The decision to keep it
frozen in time was mine, and I'll be the one suffering the eventual
consequences of that decision, not anyone else. It will go belly-up one
day, and when it does I'll replace it with a modern server with a current
(as in current release) OpenBSD. And THEN I'll upgrade it regularly so I
won't fall years behind on maintenance again. Promise. Really.)


Regards,
/Benny


> All filesystems are ffs;
> 
> I deleted /var/db/locate.db and recreated with 
> /usr/libexec/locate.updatedb more than once;
> 
> locate.rc is stock:
> 
> ==================
> TMPDIR="/var/tmp"
> FCODES="/var/db/locate.database"
> SEARCHPATHS="/"
> PRUNEPATHS="/tmp /var/tmp /usr/tmp"
> FILESYSTEMS="ffs ufs ext2fs"
> 
> [comments pruned]
> =================
> 
> The locate database seems to be normal:
> 
> Database: /var/db/locate.database
> Compression: Front: 19.48%, Bigram: 65.90%, Total: 14.52%
> Filenames: 218512, Characters: 14825215, Database size: 2153551
> Bigram characters: 734303, Integers: 5440, 8-Bit characters: 3
> 
> =================
> 
> Trying to troubleshoot a Perl module problem, and locate is not
> returning any hits except user files <g>!
> Any pointers on what is 'intefering' with the process?

-- 
internetlabbet.se     / work:   +46 8 551 124 80      / "Words must
Benny Lofgren        /  mobile: +46 70 718 11 90     /   be weighed,
                    /   fax:    +46 8 551 124 89    /    not counted."
                   /    email:  benny -at- internetlabbet.se

Reply via email to