Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Build System (http://www.linux-archive.org/fedora-build-system/)
-   -   growing /mnt/koji/work/tasks (http://www.linux-archive.org/fedora-build-system/456590-growing-mnt-koji-work-tasks.html)

Alan Franzoni 11-23-2010 03:41 PM

growing /mnt/koji/work/tasks
 
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/buildsys@lists.fedoraproject.org/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.

koji-gc is scheduled and runs every night.

Where should I look at to track my problems?

--
Alan Franzoni
--
contact me at public@[mysurname].eu
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Mike McLean 11-23-2010 04:15 PM

growing /mnt/koji/work/tasks
 
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/buildsys@lists.fedoraproject.org/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
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys


All times are GMT. The time now is 07:42 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.