Koozali.org: home of the SME Server

Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or

Offline TeNeCo

  • ***
  • 60
  • +0/-0
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« on: March 10, 2007, 10:24:24 AM »
I get the following mail every night; what can I do?

Can't open /var/log/qpsmtpd/*.s: No such file or directory at /usr/bin/spamfilter-stats-7.pl line 216.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such fil
« Reply #1 on: March 10, 2007, 12:04:00 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline TeNeCo

  • ***
  • 60
  • +0/-0
Re: Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such fil
« Reply #2 on: March 10, 2007, 12:11:32 PM »
Quote from: "byte"
Have you filled in a Bug Report over @ http://bugs.contribs.org/ ? Please don't wait to be told this way you help us to help you/others - Thanks!

No, cause first I assume a human failure during my installation.

Offline kruhm

  • *
  • 680
  • +0/-0
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« Reply #3 on: March 11, 2007, 06:40:37 AM »
do you have any *.s files at /var/log/qpsmtpd ?

looks like it's the spamfilter-stats-7.pl that's giving a problem. I would start by asking the contrib author. Since this isn't an official script or contrib from the core team there's no reason to fill a bug report.

Offline TeNeCo

  • ***
  • 60
  • +0/-0
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« Reply #4 on: March 17, 2007, 08:00:39 AM »
Quote from: "kruhm"
do you have any *.s files at /var/log/qpsmtpd ?


when I change to that dir and type a ls there I get the following result:

current  lock  state

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« Reply #5 on: March 17, 2007, 09:45:02 AM »
Quote from: "kruhm"
Since this isn't an official script or contrib from the core team there's no reason to fill a bug report.


There are areas in the bug tracker for contribs from all contrib authors. If it don't exist it can be created.
Regards,
William

IF I give advise.. It's only if it was me....

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« Reply #6 on: March 17, 2007, 09:50:38 AM »
Quote from: "TeNeCo"
Quote from: "kruhm"
do you have any *.s files at /var/log/qpsmtpd ?


when I change to that dir and type a ls there I get the following result:

current  lock  state


I get...
Code: [Select]
[root@tiger qpsmtpd]# ls
@4000000045ef1d8c0680b9ec.s  @4000000045f225e03b0e280c.s  @4000000045f5565b208bd72c.s  @4000000045f810661b698a3c.s  @4000000045fb11862210b9dc.s  lock
@4000000045f0cee60d4d8674.s  @4000000045f3958b18068d04.s  @4000000045f6c1142a7da1d4.s  @4000000045f9ae052e1d3e94.s  current                      state
[root@tiger qpsmtpd]#


Do you see any qpsmtpd logs via server-manager ?
Regards,
William

IF I give advise.. It's only if it was me....

Offline TeNeCo

  • ***
  • 60
  • +0/-0
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« Reply #7 on: March 19, 2007, 07:32:26 AM »
Quote
Do you see any qpsmtpd logs via server-manager ?


yes: qpsmtpd/current it's quite long.

Offline TeNeCo

  • ***
  • 60
  • +0/-0
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« Reply #8 on: March 24, 2007, 09:11:46 PM »
Quote from: "kruhm"
do you have any *.s files at /var/log/qpsmtpd ?


when I change to that dir and type a ls there I get the following result:

@4000000046045c231fb1366c.s  current  lock  state

It's also visible in the server-manager.

Offline TeNeCo

  • ***
  • 60
  • +0/-0
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« Reply #9 on: April 07, 2007, 02:07:01 PM »
Quote from: "kruhm"
do you have any *.s files at /var/log/qpsmtpd ?

on the mashine where it still doesn't work I get the following output:

@4000000045e1b23415e0ab7c.u  @4000000045ffa69733b0335c.u  current  state
@4000000045f1781d3125813c.u  @4000000046055ecc2f296ed4.u  lock

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« Reply #10 on: April 07, 2007, 03:15:19 PM »
Quote from: "http://cr.yp.to/daemontools/multilog.html"
Each old log file has a name beginning with @, continuing with a precise timestamp showing when the file was finished, and ending with one of the following codes:

    * .s: This file is completely processed and safely written to disk.
    * .u: This file was being created at the moment of an outage. It may have been truncated. It has not been processed.


If you are only getting ".u" files then your system is never staying "up" long enough for qpsmtpd to gracefully rotate the log files.  

I had a similar problem at one point and "fixed" it by modifying /etc/cron.d/mailstats.cron to scan "/var/log/qpsmtpd/*.* /var/log/qpsmtpd/current" instead of "/var/log/qpsmtpd/*.s /var/log/qpsmtpd/current".

You could eliminate your error message by running touch /var/log/qpsmtpd/@filler.s but you won't get valid reports if your logs all end in ".u".

Ultimately, mailstats needs to:
    - Include the ".u" logfiles when generating stats, as these files *can* contain relevant information
    - gracefully handle the case where a specified input file is missing


These problems may have been addressed in the upcoming release of mailstats that uses "logterse"...

Here's a post from bugzilla suggesting "@*" instead of "*.*": http://bugs.contribs.org/show_bug.cgi?id=1524#c4

Offline TeNeCo

  • ***
  • 60
  • +0/-0
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« Reply #11 on: April 07, 2007, 07:52:55 PM »
Quote from: "mmccarn"
If you are only getting ".u" files then your system is never staying "up" long enough for qpsmtpd to gracefully rotate the log files.
What do you mean with "not long enough"? The server is running 24hours a day.
Now things became worse: yesterday I tried to install the spamfilter again. As a result I got the two Cron job mails twice at midnight. (the one with the error and the "SPAM filter statistic"). How can I stop one of them again? Now I have a spamfilter-stats-7.pl and a spamfilter-stats-7.pl.1 in /usr/var/

Offline compdoc

  • *
  • 226
  • +0/-0
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« Reply #12 on: April 07, 2007, 07:57:17 PM »
takes a while to get enough finished log files in /var/log/qpsmtpd for that error to go away, especially if you dont get a lot of mail.

The 'current' file grows to 5 megs in size before the system closes it and gives it a name ending with .s

Then it creates a new current file.

Just ignore the error and keep the server up. The server isnt rebooting or crashing, is it?

you could change mailstats, but watch for errors.

Offline compdoc

  • *
  • 226
  • +0/-0
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« Reply #13 on: April 07, 2007, 08:20:49 PM »
Delete spamfilter-stats-7.pl.1, as its not being used.

And make sure spamfilter-stats-7.pl is the current version, and that you install logterse.

Also make sure there is not more than one mailstats.cron file, and that the permissions for it are not higher than 644.

Offline TeNeCo

  • ***
  • 60
  • +0/-0
Cron Daemon: Can't open /var/log/qpsmtpd/*.s No such file or
« Reply #14 on: April 07, 2007, 09:37:19 PM »
Quote from: "compdoc"
Delete spamfilter-stats-7.pl.1, as its not being used.

And make sure spamfilter-stats-7.pl is the current version, and that you install logterse.

Also make sure there is not more than one mailstats.cron file, and that the permissions for it are not higher than 644.

OK, I deleted spamfilter-stats-7.pl.1 and mailstats.cron.1. But what is logterse? Where can I find more informations?