apport's cron job will delete whoopsie stamp files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
whoopsie creates zero-byte stamp files in /var/crash with a '.upload' or 'uploaded' extension, and uses this cronjob to clean them up:
find /var/crash -name '*.uploaded' -type f -size 0 | \
# Only delete .upload files for which a .uploaded exists as well.
sed 's,\(.*
xargs rm -f
however, the apport cronjob itself already cleans out the directory on a daily basis, which means all the .upload files that are meant to signal to whoopsie to queue the job are instead being removed daily.
find /var/crash/. ! -name . -prune -type f \( -size 0 -o -mtime +7 \) -exec rm -f -- '{}' \;
apport's cronjob should probably be changed to:
find /var/crash/. ! -name . -prune -type f \( \( -size 0 -a \! -name '*.upload*' \) -o -mtime +7 \) -exec rm -f -- '{}' \;
Changed in apport (Ubuntu): | |
assignee: | nobody → Evan Dandrea (ev) |
Indeed, thanks Steve! Fixed in trunk r2240.