LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-17-2007, 03:37 PM   #1
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
error running postrotate script


The last couple weeks I've been getting this error mailed to me by my Debian Sarge Mail server

Quote:
To: postmaster@

From CRONDAILY@

Subject: Cron <root@mail> test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily

Body:
/etc/cron.daily/logrotate:
/tmp/logrotate.WY11lL: line 4: kill: (20842) - No such process
error: error running postrotate script
run-parts: /etc/cron.daily/logrotate exited with return code 1
Heres the logrotate entry in cron.daily, and the logrotate.conf file. Everything is default settings and configuration as it was installed. I haven't changed anything in either of these files..

Code:
username@mail:/etc/cron.daily$ cat logrotate

#!/bin/sh

test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf
Code:
username@mail:/etc$ cat /etc/logrotate.conf

# see "man logrotate" for details
# 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
}

# system-specific logs may be configured here



I have received this error notification for the last 3 Sundays now (7/1/2007 - 7/8/2007 - 7/15/2007 ) .. Any idea why this is throwing an error ?


It's just odd that this popped up all of a sudden when no changes have been made to the system. any pointers would be appreciated.

It appears all the logs are being rotated properly..
Code:
-rw-r-----   1 root        adm    6654927 2007-07-17 16:14 mail.log
-rw-r-----   1 root        adm    8276534 2007-07-17 02:24 mail.log.0
-rw-r-----   1 root        adm     501870 2007-07-16 02:25 mail.log.1.gz
-rw-r-----   1 root        adm     540524 2007-07-15 02:25 mail.log.2.gz
-rw-r-----   1 root        adm     706051 2007-07-14 02:24 mail.log.3.gz
-rw-r-----   1 root        adm     839874 2007-07-13 02:25 mail.log.4.gz
-rw-r-----   1 root        adm     706905 2007-07-12 02:25 mail.log.5.gz
-rw-r-----   1 root        adm     767722 2007-07-11 02:25 mail.log.6.gz


Thanks !


Bah meant to post this in the Debian Distro Forum... Oh well..

Last edited by farslayer; 07-17-2007 at 03:45 PM.
 
Old 07-19-2007, 01:41 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I don't see nothing that would generate postrotate errors, you checked /etc/logrotate.d/ scripts postrotate entries?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error in running the shell script bhandu Linux - Newbie 1 07-10-2007 01:16 AM
error in running the script bhandu Linux - Newbie 4 07-03-2007 09:24 AM
i get an error message running php script inside a cgi script. repolona Linux - Software 0 02-22-2007 09:10 PM
Error running postrotate script... Jake_B Red Hat 0 09-19-2005 04:34 PM
error running script on crontab haora Linux - Newbie 3 03-11-2005 04:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:24 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
Open Source Consulting | Domain Registration