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 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/graphsdebian-cd/6.0.3/i386/iso-dvd.rrd':
> No such file or directory
> ERROR: opening
> '/srv/qa.debian.org/data/cronjobs/../bts/graphsdebian-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 Rahmwww.jhr-online.de
: :' : Debian Developer www.debian.org
`. `'` Member of the Linux Foundationwww.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
signature.asc
Description: Digital signature