[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#655856: ERROR: creating '/srv/qa.debian.org/data/cronjobs/../bts/graphs////debian-cd/6.0.3/i386/iso-dvd.rrd': No such file or directory



On Sat, Jan 14, 2012 at 12:46:10PM +0100, Jakub Wilk wrote:
> I'm getting this error from cron twice an hour:
> 
> Subject: Cron <qa@quantz> nice -15 flock -n /srv/qa.debian.org/lock/bts-graphs-collect /srv/qa.debian.org/data/cronjobs/bts-graphs-collect
> 
> ERROR: creating '/srv/qa.debian.org/data/cronjobs/../bts/graphs////debian-cd/6.0.3/i386/iso-dvd.rrd': No such file or directory
> ERROR: opening '/srv/qa.debian.org/data/cronjobs/../bts/graphs////debian-cd/6.0.3/i386/iso-dvd.rrd': No such file or directory

I already mailed glandium about it who is, according to Myon, the one
who set up the cronjob. A simple fix would do the trick here but I'm not
sure it's the best way to go. UDD seems to generate unexpected output
there as it seems.

Anyways, attached patch should fix the apparent issue at least.

Hauke

-- 
 .''`.   Jan Hauke Rahm <jhr@debian.org>               www.jhr-online.de
: :'  :  Debian Developer                                 www.debian.org
`. `'`   Member of the Linux Foundation                    www.linux.com
  `-     Fellow of the Free Software Foundation Europe      www.fsfe.org
Index: data/cronjobs/bts-graphs-collect
===================================================================
--- data/cronjobs/bts-graphs-collect	(revision 2706)
+++ data/cronjobs/bts-graphs-collect	(working copy)
@@ -7,7 +7,7 @@
 DATE=$(expr $DATE / 1800 "*" 1800)
 
 wget -O - -q http://udd.debian.org/cgi-bin/ddpo-bugs-zeroes.cgi |
-sed 's/^\(.*\):\([0-9]*\)([0-9]*) \([0-9]*\)([0-9]*) \([0-9]*\)([0-9]*) \([0-9]*\)([0-9]*) [0-9]*([0-9]*)/\2 \3 \4 \5 \1/' |
+sed -n 's/^\([^/]*\):\([0-9]*\)([0-9]*) \([0-9]*\)([0-9]*) \([0-9]*\)([0-9]*) \([0-9]*\)([0-9]*) [0-9]*([0-9]*)/\2 \3 \4 \5 \1/p' |
  awk '{for (i=1;i<5;i++){t[i]+=$i} print $1 ":" $2 ":" $3 ":" $4, $5} END { print t[1] ":" t[2] ":" t[3] ":" t[4], "all" }' |
 while read values package; do
 

Attachment: signature.asc
Description: Digital signature


Reply to: