On 11/23/2010 11:41 AM, Alan Franzoni wrote:
Hello, after upgrading to fc14 and koji 1.4 I'm still partially
experiencing an issue with the "tasks" directory; it keeps growing and
contains very old builds.
In the old thread it was suggested that this shouldn't happen if
kojira is running:
http://www.mail-archive.com/[email protected]/msg00472.html
In fact now that kojira is running and everything is updated the
cli-build dir is perfectly clean, but the tasks dir content seems to
stay there (forever?) alo. I can't see any error in kojira.log, and
all files are owned by apache.
That comment was not correct, kojira does not do this.
I use a simple nightly cron job to handle the task (attached). You could
also conceivably use tmpwatch.
koji-gc is scheduled and runs every night.
Where should I look at to track my problems?
#!/bin/bash
TOPDIR=/mnt/koji
TIMEARG="-mtime +14"
# for tasks, try to remove as a unit
for x in $(find "$TOPDIR"/work/tasks/ -mindepth 2 -maxdepth 2 -type d
$TIMEARG); do
find "$x" -xdev '!' -type d -print0 | xargs -0 -r rm -f
find "$x" -xdev -depth -type d -print0 | xargs -0 -r rmdir
done
# for anything else, just remove old stuff
# but don't remove the top level dirs (e.g. cli-build)
for x in $(find "$TOPDIR"/work -maxdepth 1 -mindepth 1 \! -name tasks); do
find "$x" -xdev '!' -type d $TIMEARG -print0 | xargs -0 -r rm -f
find "$x" -xdev -depth -mindepth 1 -type d -empty -print0 | xargs -0 -r
rmdir
done
--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys