On Sun, Dec 28, 2008 at 1:39 PM, Denny White <denny...@cableone.net> wrote:

> "Not installing locate database; zero size"

I've been seeing this on a 4.3 box.  After reading your email, and
seeing that I'm not the only one with the issue, I've been playing
with it today.

After making backups of all the scripts involved (/etc/weekly and
/usr/libexec/locate.*), I took out the "2> /dev/null" and "trap ..."
stuff to be able to see all the errors, and have the various temporary
file left behind for analysis.

If I run it manually (as root, "sh /etc/weekly"), it fails with the
find in locate.updatedb giving the error "find: .:: Permission
denied".  If I cd into /tmp first, it runs okay.  So I added
"PREVPWD=$PWD; cd /tmp" in /etc/weekly before the call to
locate.updatedb, and "cd $PREVPWD: after.

It now has run successfully both when invoked manually, and from cron.

I'm going to leave this debug configuration in place to see what
happens as time goes on.

-- 
Dave K
Unix Systems & Network Administrator
Mount Laurel NJ

Reply via email to