LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-01-2005, 03:56 AM   #1
@ngelot
Member
 
Registered: Oct 2004
Posts: 84

Rep: Reputation: 15
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!
 
Old 09-02-2005, 09:05 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,876

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


Reply


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 09:07 PM
logrotate won't run - gives error Avatar Linux - General 2 07-19-2004 11:22 AM
Logrotate Help! MaverickApollo Linux - Software 3 02-19-2004 01:09 PM
logrotate Rig24 Linux - Newbie 2 07-11-2003 06:08 AM
Error in Logrotate.status file tomdlam Linux - General 0 10-17-2002 09:38 PM


All times are GMT -5. The time now is 08:23 AM.

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