Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-01-2005, 02:56 AM   #1
Registered: Oct 2004
Posts: 84

Rep: Reputation: 15
logrotate error

On my non-GUI debian box I get this email to root:
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:
test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf
When I manually run
# test -x /etc/cron.daily/logrotate
# /usr/sbin/logrotate /etc/logrotate.conf
I get no feedback - no errors - nothing....

This is logrotate.conf:
# rotate log files weekly

# keep 4 weeks worth of backlogs
rotate 4

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

# uncomment this if you want your log files compressed

# 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 {
    create 0664 root utmp
    rotate 1

/var/log/btmp {
    create 0664 root utmp
    rotate 1
Can anyone help me?

Old 09-02-2005, 08:05 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
logrotate error - last rotated in the future ocgltd Fedora 1 10-02-2005 08:07 PM
logrotate won't run - gives error Avatar Linux - General 2 07-19-2004 10:22 AM
Logrotate Help! MaverickApollo Linux - Software 3 02-19-2004 12:09 PM
logrotate Rig24 Linux - Newbie 2 07-11-2003 05:08 AM
Error in Logrotate.status file tomdlam Linux - General 0 10-17-2002 08:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration