#776187 locate: updatedb cron job hides error output from updatedb but still fails

Package:
locate
Source:
findutils
Description:
maintain and query an index of a directory tree
Submitter:
Paul Wise
Date:
2021-09-22 04:29:11 UTC
Severity:
normal
#776187#5
Date:
2015-01-25 07:25:27 UTC
From:
To:
Recently we got this error message from cron on sibelius.d.o:

run-parts: /etc/cron.daily/locate exited with return code 1

The only explanation for this appears to be that the updatedb.findutils
command failed for some reason. Unfortunately the script hides output:

  cd / && nice -n ${NICE:-10} updatedb.findutils 2>/dev/null

In addition it doesn't hide the exit code, which means that sysadmins
get mails that have no useful information. I expect the reason for
hiding output is that updatedb.findutils runs find which complains when
it finds directories it can't enter. Probably the solution here is to
show the updatedb.findutils output and grep -v ': Permission denied$'
the find output in the updatedb.findutils script.

#776187#10
Date:
2021-09-22 04:21:30 UTC
From:
To:
Hello,

Good morning,

We have gone through your samples from a partner and Here is our  Order
List. Please do bear in mind that we are very much in  need of this
order, quote your competitive prices.

Kindly send the Order confirmation.

Your early reply will be much appreciated.

Best Regards,

Maryanah Erwin.

PT FINDORA INTERNUSA

Jln Pahlawan 66 Kec. Arjawinangun

45162 CIREBON West-Java INDONESIA

tel : +62 231 357334

fax: +62 231 357260

email: marketing@findora.com