*** This bug is a duplicate of bug 210699 ***
    https://bugs.launchpad.net/bugs/210699

I also have this failing cron job :

$ dpkg -S /etc/cron.daily/find
findutils: /etc/cron.daily/find


$ dpkg -s findutils
Package: findutils
Essential: yes
Status: install ok installed
Multi-Arch: foreign
Priority: required
Section: utils
Installed-Size: 648
Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
Architecture: i386
Version: 4.4.2-1ubuntu3
Pre-Depends: libc6 (>= 2.7)
Suggests: mlocate | locate | slocate
Conffiles:
 /etc/cron.daily/find 56d5ad07a14419d1fae3d2620f2d9ff9 obsolete
Description: utilities for finding files--find, xargs
 GNU findutils provides utilities to find files meeting specified
 criteria and perform various actions on the files which are found.
 This package contains 'find' and 'xargs'; however, 'locate' has
 been split off into a separate package.
Homepage: http://savannah.gnu.org/projects/findutils/
Original-Maintainer: Andreas Metzler <ametz...@debian.org>

$ apt-cache policy findutils
findutils:
  Installé : 4.4.2-1ubuntu3
  Candidat : 4.4.2-1ubuntu3
 Table de version :
 *** 4.4.2-1ubuntu3 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
        100 /var/lib/dpkg/status

In my case, it exits with exit status 1:

$ sudo sh -x /etc/cron.daily/find
+ LOCALUSER=nobody
+ export LOCALUSER
+ [ -f /etc/updatedb.conf ]
+ . /etc/updatedb.conf
+ PRUNE_BIND_MOUNTS=yes
+ PRUNEPATHS=/tmp /var/spool /media /home/.ecryptfs
+ PRUNEFS=NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 
ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite tmpfs usbfs udf 
fuse.glusterfs fuse.sshfs curlftpfs ecryptfs fusesmb devtmpfs
+ getent passwd nobody
+ cd /
+ nice -n 10 ionice -c 2 -p 7 updatedb
patrick@glaciere:/etc/cron.daily$ echo $?
1

Fixing this script as suggested by Smylers solves the problem:

$ sudo sh -x /etc/cron.daily/find
+ LOCALUSER=nobody
+ export LOCALUSER
+ [ -f /etc/updatedb.conf ]
+ . /etc/updatedb.conf
+ PRUNE_BIND_MOUNTS=yes
+ PRUNEPATHS=/tmp /var/spool /media /home/.ecryptfs
+ PRUNEFS=NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 
ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite tmpfs usbfs udf 
fuse.glusterfs fuse.sshfs curlftpfs ecryptfs fusesmb devtmpfs
+ getent passwd nobody
+ cd /
+ nice -n 10 ionice -c 2 -n 7 updatedb
patrick@glaciere:/etc/cron.daily$ echo $?
0

Regards,
Patrick.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/191355

Title:
  cron complains /etc/cron.daily/find exited with return code 127

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/findutils/+bug/191355/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to