Problem with /etc/cron.daily/beagle-crawl-system

Bug #63416 reported by Adrien Cunin
This bug report is a duplicate of:  Bug #75338: Beagle should suggest 'schedutils'. Edit Remove
14
Affects Status Importance Assigned to Milestone
beagle (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

On edgy (dist-upgraded from hoary).
Every day I receive a mail saying:

run-parts: /etc/cron.daily/beagle-crawl-system exited with return code 1

If I try to run "sudo /etc/cron.daily/beagle-crawl-system" it says absolutely nothing, no error.

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

/etc/cron.daily/beagle-crawl-system does exit with an error code:

# /etc/cron.daily/beagle-crawl-system
# echo $?
1

Running the script with sh -x gives the following output:

# /etc/cron.daily/beagle-crawl-system
+ '[' '!' -x /usr/sbin/beagle-build-index ']'
+ umask 022
+ CRAWL_USER=beagleindex
+ export TMPDIR=/tmp
+ TMPDIR=/tmp
++ mktemp -d -p /tmp .beagleindexwapi.XXXXXXXXXX
+ MONO_SHARED_DIR=/tmp/.beagleindexwapi.eqRhZ11478
+ chown beagleindex /tmp/.beagleindexwapi.eqRhZ11478
+ for crawl_file in '/etc/beagle/crawl-*'
+ unset CRAWL_ENABLED CRAWL_DISABLE_FILTERING CRAWL_RECURSIVE CRAWL_CACHE_TEXT CRAWL_ALLOW_PATTERNS CRAWL_DENY_PATTERNS CRAWL_PATHS CRAWL_INDEX_NAME
+ '[' -f /etc/beagle/crawl-applications ']'
+ . /etc/beagle/crawl-applications
++ CRAWL_ENABLED=yes
++ CRAWL_INDEX_NAME=applications
++ CRAWL_PATHS='/usr/share/applications /usr/local/share/applications /opt/gnome/share/applications /opt/kde3/share/applications'
++ CRAWL_RECURSIVE=yes
++ CRAWL_DISABLE_FILTERING=no
++ CRAWL_CACHE_TEXT=no
+ '[' -n yes -a yes = yes ']'
++ test -n no -a no = yes
+ OPTIONS=

Revision history for this message
Adrien Cunin (adri2000) wrote :

Bug #67512 is a duplicate of this one.
Changing status to confirmed.

Changed in beagle:
status: Unconfirmed → Confirmed
Revision history for this message
Adrien Cunin (adri2000) wrote :

As the reporter of the duplicate said, removing the line "set -e" at the beginning of the file fixes the bug and doesn't seem to break anything.
To be sure I downloaded the last upstream release and made a diff, result :
-#set -e
But I'm afraid that it is too late to make a new upload, maybe we will get the fix in a post-release update.

Revision history for this message
Sebastian Breier (tomcat42) wrote :

Confirmed, and the fix works.

This is the latest Upstream version, for those interested: http://cvs.gnome.org/viewcvs/beagle/tools/beagle-crawl-system.in?rev=1.15&view=markup

Revision history for this message
Brandon Hale (brandon) wrote :

Fixed upstream, 0.2.13 is in feisty.

Changed in beagle:
status: Confirmed → Fix Released
Revision history for this message
Félix Velasco (felix-velasco) wrote :

It's back in feisty, in 0.12.16.
Upstream is ok, but a debian patch adds the "set -e" (beagle-0.2.16.3/debian/patches/beagle-crawl-safely.dpatch in http://ftp.debian.org/debian/pool/main/b/beagle/beagle_0.2.16.3-3.diff.gz)

Revision history for this message
Félix Velasco (felix-velasco) wrote :

Back again on 0.2.16 in feisty

Changed in beagle:
status: Fix Released → Confirmed
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

This bug is fixed in latest gutsy in this beagle version:
Version: 0.2.18-0ubuntu2

Changed in beagle:
status: Confirmed → Fix Released
Revision history for this message
Matthias Andree (matthias-andree) wrote :

Bug persists in gutsy's beagle 0.2.18-0ubuntu3.

Changed in beagle:
status: Fix Released → Confirmed
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

I tested again with beagle 0.2.18-0ubuntu3 and there is no problem on my system:

# /etc/cron.daily/beagle-crawl-system
# echo $?
0

So Matthias could you provide more info on what is different in your system compared to mine?

Changed in beagle:
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.