LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   logrotate error (https://www.linuxquestions.org/questions/linux-newbie-8/logrotate-error-359056/)

@ngelot 09-01-2005 02:56 AM

logrotate error
 
On my non-GUI debian box I get this email to root:
Code:

/etc/cron.daily/logrotate:
There was no data to process.
error: error running postrotate script
run-parts: /etc/cron.daily/logrotate exited with return code 1

I've been searching the net, but I can't find any help....

What's happening, and what can I do to fix it?

This is /etc/cron.daily/logrotate:
Code:

#!/bin/sh
test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf

When I manually run
Code:

# test -x /etc/cron.daily/logrotate
and
Code:

# /usr/sbin/logrotate /etc/logrotate.conf
I get no feedback - no errors - nothing....

This is logrotate.conf:
Code:

# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

Can anyone help me?

Thanks!

bigrigdriver 09-02-2005 08:05 PM

I suspect the line which reads "There was no data to process" may tell the story. It sounds like you do not have logging enabled.

Have you looked into /var/log to see if there are log files, and if they contain any data?

Have you checked /etc for a subdirectory named syslog, syslog-ng, or something similar?

If there are no log files in /var/log, and /etc doesn't have a syslog subdirectory, you may not have loging enabled.

Some distros have a default loging setup, others offer you a choice at installation time.


All times are GMT -5. The time now is 06:09 PM.