Your message dated Wed, 6 Dec 2006 20:30:06 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#399522: Weekly/monthly stats not generated if daily stat 
file absent
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: calamaris
Version: 2.59-5

The calamaris daily cron job is executed with 'set -e'. When it's time to generate weekly or monthly stats (by default on sunday or first day of month), if there has been no connection through squid on the previous day (so there is no cache file, cf. infra), this block :

if [ "$MONTHDO" != "nothing" -a "$WEEKDO" != "nothing" ]; then
    cp forweekly.$DAYOFWEEK formonthly.$DAYOFMONTH
fi

will generate a non-zero exit from the script and there will be consequently no subsequent weekly/monthly stats computed.

As expected, the "daily" part of the cron script will first send a mail whose contents is "No requests found" _but_ the cache files (forweekly.0 and formonthly.XX) will not be generated making the 'cp' command fail.

This happens very frequently on our site since here squid is very rarely used on week-end days. As a matter of fact, I'm nearly dependant on "TCP_DENIED" squid access to have weekly stats ;-).

I did not find any option to turn on or off in the man page for making calamaris generate "empty" cache files that would solve the problem.

Please close this bug and let me know if I overlooked some documentation.

Regards,

Patrice Pillot


--- End Message ---
--- Begin Message ---
Version: 2.99.1.3-1

This bug is a duplicate of 182286 and is closed since version
2.99.1.3-1.

Am Mon, Dec 04, 2006 at 10:48:09AM +0100 hat Patrice Pillot getippert:
> Dear Philipp,
> 
> This morning I finally had some time to come back to a more thorough 
> look at this issue.
> 
> Philipp Frauenfelder wrote:
> >I think this is the same bug as
> >http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=182286
> 
> Yes, definitely. Sorry for the duplicate. Yet, as it has been fixed in a 
> post-sarge release, I think it would be interesting for this bug to 
> appear somewhere for sarge users (while etch's not been released, I mean).
> 
> >The simplest fix would be to change to "cp -f" as suggested by
> >the first submitter. It would be nice if you could tell me if
> >this worked for you.
> 
> No, it didn't work and in fact it couldn't work since the '-f' option is 
> not intended to supply missing source file. Anyway, the fix proposed 
> later on the thread by Mark Ferlatte ('zero touching' the forweekly 
> file) _does_ make sense. I just added the snippet to my cron job and I 
> am pretty sure next week I'll be in position to confirm it works.
> 
> So see you next monday ! (too lazy and too confident in the fix to make 
> tests ;-))
> 
> Regards,
> 
> Patrice

-- 
Philipp      | work: [EMAIL PROTECTED] +41 1 802 20 00
Frauenfelder | home: [EMAIL PROTECTED] +41 1 862 73 14
[PGP]        | http://www.frauenfelder-kuerner.ch/
Proudly running Debian GNU/Linux. See http://www.debian.org/

--- End Message ---

Reply via email to