View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 18 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Logrotate and R5.5?
PostPosted: Thu Jul 24, 2008 1:43 pm 
Offline
Joined: Tue Apr 11, 2006 7:44 am
Posts: 287
Location: Los Angeles, CA
Hello,

After upgrading to R5.5, it looks like my daily logrotate process is not working. I did delete the extra hibernate script again, but it still doesn't seem to rotate any of the Myth logs.

Any ideas?

_________________
Tim

LinHES 8.4
HDHR3
BioStar A770, AMD X2 4050e, 2GB RAM
GigaByte GeForce 8400, Chaintech AV710
USB-UIRT


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 25, 2008 1:19 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
Try running "logrotate -v /etc/logrotate.conf" and see what the debug msgs say.

Cheers,

Allen

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 25, 2008 3:25 am 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
My logs aren't rotating either.

Code:
root@mbe:/home/ceenvee703# logrotate -v /etc/logrotate.conf
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file apache2
reading config info for /var/log/apache2/*.log
reading config file aptitude
reading config info for /var/log/aptitude
reading config file dpkg
reading config info for /var/log/dpkg.log
reading config file hibernate
reading config info for /var/log/hibernate.log
reading config file hibernate-script
error: hibernate-script:1 duplicate log entry for /var/log/hibernate.log


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 25, 2008 6:26 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
Delete /etc/logrotate.d/hibernate-script

Cheers,

Allen

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 25, 2008 8:22 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
That looks like one for the patcher/hints...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 25, 2008 9:39 am 
Offline
Joined: Tue Apr 11, 2006 7:44 am
Posts: 287
Location: Los Angeles, CA
Yeah, I remembered that tip from the past. However, even after deleting that script, the logrotate dosn't appear to be happening.

_________________
Tim

LinHES 8.4
HDHR3
BioStar A770, AMD X2 4050e, 2GB RAM
GigaByte GeForce 8400, Chaintech AV710
USB-UIRT


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 25, 2008 7:44 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
What does the verbose output like ceenvee703's example look like?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 25, 2008 8:06 pm 
Offline
Joined: Tue Apr 11, 2006 7:44 am
Posts: 287
Location: Los Angeles, CA
Guess my problems now are related to my ongoing saga of my file system switching to RO ever since installing R5.5.

_________________
Tim

LinHES 8.4
HDHR3
BioStar A770, AMD X2 4050e, 2GB RAM
GigaByte GeForce 8400, Chaintech AV710
USB-UIRT


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 20, 2008 1:52 am 
Offline
Joined: Mon Apr 23, 2007 1:45 pm
Posts: 405
Location: Fargo, ND, USA
Is there a rule of thumb pertaining to how large a log file can get before the size of the log file starts causing problems?

The alert goes on for me at 1 meg. This is all anecdotal but large log files seem to produce non responding delays that go away when the log is deleted.

I have run Human's patcher script which deleted the etc/logrotate.d/hibernate-script. When I run logrotate -v /etc/logrotate.conf I get logical answers but it doesn't seem to address the files I have listed below.

kern.log 9mb 8/16/2008 to 9/20/2008
Messages 8mb 8/16/2008 to 9/20/2008
syslog 10mb 8/16/2008 to 9/20/2008
auth.log 1mb 7/22/2008 to 9/20/2008
debug 1mb 7/22/2008 to 9/20/2008

What rotates these files? All of them are over a month old.

Any opinions.
TVBox

_________________
TVBox
LinHES R8.6.1


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 20, 2008 8:37 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Those should be getting rotated unless something else is wrong. The biggest log files I have at the moment are just under ~0.7M.

As root try the following and report any errors:
Code:
/usr/sbin/logrotate -v -f /etc/logrotate.conf


Also make sure that your /etc/logrotate.d looks more or less like this, and report any extras or missing files:
Code:
root@black2:/etc# ls -l /etc/logrotate.d
total 60
-rw-r--r-- 1 root root 240 Oct  8  2006 apache2
-rw-r--r-- 1 root root  79 Oct 27  2006 aptitude
-rw-r--r-- 1 root root 111 Oct 13  2006 dpkg
-rw-r--r-- 1 root root  94 Mar 31 03:48 hibernate
-rw-r--r-- 1 root root  59 Nov 22  2006 ipw3945d
-rw-r--r-- 1 root root  79 Feb 16  2005 lvm-common
-rw-r--r-- 1 root root 112 Mar 28 07:20 mgetty
-rw-r--r-- 1 root root 869 Oct 29  2006 mysql-server
-rw-r--r-- 1 root root 113 Jan 27  2007 mythfrontend
-rw-r--r-- 1 root root 107 Oct 17  2006 mythtv-backend
-rw-r--r-- 1 root root 127 Sep  2  2007 pause_commflag
-rw-r--r-- 1 root root  94 Dec 19  2006 ppp
-rw-r--r-- 1 root root 330 Oct 21  2006 samba
-rw-r--r-- 1 root root 106 Jun  9 09:27 wpa_action
-rw-r--r-- 1 root root 114 Jun  9 09:27 wpa_supplicant


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 20, 2008 1:26 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
tjc wrote:
As root try the following and report any errors:
Code:
/usr/sbin/logrotate -v -f /etc/logrotate.conf


Mine is pissed:

Code:
# /usr/sbin/logrotate -v -f /etc/logrotate.conf
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file apache2
reading config info for /var/log/apache2/*.log
reading config file aptitude
reading config info for /var/log/aptitude
reading config file dpkg
reading config info for /var/log/dpkg.log
reading config file hibernate
reading config info for /var/log/hibernate.log
reading config file ipw3945d
reading config info for /var/log/ipw3945d/ipw3945d.log
reading config file lvm-common
reading config info for /var/log/lvm
reading config file mgetty
reading config info for /var/log/mgetty/*.log
reading config file mysql-server
reading config info for /var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log
reading config file mythfrontend
reading config info for /var/log/mythtv/mythfrontend.log
reading config file mythtv-backend
reading config info for /var/log/mythtv/mythbackend.log
reading config file pause_commflag
reading config info for /var/log/mythtv/pause_commflag.log
reading config file ppp
reading config info for /var/log/ppp-connect-errors
reading config file samba
reading config info for /var/log/samba/log.smbd
reading config info for /var/log/samba/log.nmbd
reading config file wpa_action
reading config info for /var/log/wpa_action.log /var/log/wpa_action.*.log
reading config file wpa_supplicant
reading config info for /var/log/wpa_supplicant.log /var/log/wpa_supplicant.*.log
reading config info for /var/log/wtmp
reading config info for /var/log/btmp

Handling 18 logs

rotating pattern: /var/log/apache2/*.log  forced from command line (52 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/apache2/access.log
  log does not need rotating
considering log /var/log/apache2/error.log
  log needs rotating
rotating log /var/log/apache2/error.log, log->rotateCount is 52
compressing log with: /bin/gzip
renaming /var/log/apache2/error.log.52.gz to /var/log/apache2/error.log.53.gz (rotatecount 52, logstart 1, i 52),
old log /var/log/apache2/error.log.52.gz does not exist
renaming /var/log/apache2/error.log.51.gz to /var/log/apache2/error.log.52.gz (rotatecount 52, logstart 1, i 51),
old log /var/log/apache2/error.log.51.gz does not exist
renaming /var/log/apache2/error.log.50.gz to /var/log/apache2/error.log.51.gz (rotatecount 52, logstart 1, i 50),
old log /var/log/apache2/error.log.50.gz does not exist
renaming /var/log/apache2/error.log.49.gz to /var/log/apache2/error.log.50.gz (rotatecount 52, logstart 1, i 49),
old log /var/log/apache2/error.log.49.gz does not exist
renaming /var/log/apache2/error.log.48.gz to /var/log/apache2/error.log.49.gz (rotatecount 52, logstart 1, i 48),
old log /var/log/apache2/error.log.48.gz does not exist
renaming /var/log/apache2/error.log.47.gz to /var/log/apache2/error.log.48.gz (rotatecount 52, logstart 1, i 47),
old log /var/log/apache2/error.log.47.gz does not exist
renaming /var/log/apache2/error.log.46.gz to /var/log/apache2/error.log.47.gz (rotatecount 52, logstart 1, i 46),
old log /var/log/apache2/error.log.46.gz does not exist
renaming /var/log/apache2/error.log.45.gz to /var/log/apache2/error.log.46.gz (rotatecount 52, logstart 1, i 45),
old log /var/log/apache2/error.log.45.gz does not exist
renaming /var/log/apache2/error.log.44.gz to /var/log/apache2/error.log.45.gz (rotatecount 52, logstart 1, i 44),
old log /var/log/apache2/error.log.44.gz does not exist
renaming /var/log/apache2/error.log.43.gz to /var/log/apache2/error.log.44.gz (rotatecount 52, logstart 1, i 43),
old log /var/log/apache2/error.log.43.gz does not exist
renaming /var/log/apache2/error.log.42.gz to /var/log/apache2/error.log.43.gz (rotatecount 52, logstart 1, i 42),
old log /var/log/apache2/error.log.42.gz does not exist
renaming /var/log/apache2/error.log.41.gz to /var/log/apache2/error.log.42.gz (rotatecount 52, logstart 1, i 41),
old log /var/log/apache2/error.log.41.gz does not exist
renaming /var/log/apache2/error.log.40.gz to /var/log/apache2/error.log.41.gz (rotatecount 52, logstart 1, i 40),
old log /var/log/apache2/error.log.40.gz does not exist
renaming /var/log/apache2/error.log.39.gz to /var/log/apache2/error.log.40.gz (rotatecount 52, logstart 1, i 39),
old log /var/log/apache2/error.log.39.gz does not exist
renaming /var/log/apache2/error.log.38.gz to /var/log/apache2/error.log.39.gz (rotatecount 52, logstart 1, i 38),
old log /var/log/apache2/error.log.38.gz does not exist
renaming /var/log/apache2/error.log.37.gz to /var/log/apache2/error.log.38.gz (rotatecount 52, logstart 1, i 37),
old log /var/log/apache2/error.log.37.gz does not exist
renaming /var/log/apache2/error.log.36.gz to /var/log/apache2/error.log.37.gz (rotatecount 52, logstart 1, i 36),
old log /var/log/apache2/error.log.36.gz does not exist
renaming /var/log/apache2/error.log.35.gz to /var/log/apache2/error.log.36.gz (rotatecount 52, logstart 1, i 35),
old log /var/log/apache2/error.log.35.gz does not exist
renaming /var/log/apache2/error.log.34.gz to /var/log/apache2/error.log.35.gz (rotatecount 52, logstart 1, i 34),
old log /var/log/apache2/error.log.34.gz does not exist
renaming /var/log/apache2/error.log.33.gz to /var/log/apache2/error.log.34.gz (rotatecount 52, logstart 1, i 33),
old log /var/log/apache2/error.log.33.gz does not exist
renaming /var/log/apache2/error.log.32.gz to /var/log/apache2/error.log.33.gz (rotatecount 52, logstart 1, i 32),
old log /var/log/apache2/error.log.32.gz does not exist
renaming /var/log/apache2/error.log.31.gz to /var/log/apache2/error.log.32.gz (rotatecount 52, logstart 1, i 31),
old log /var/log/apache2/error.log.31.gz does not exist
renaming /var/log/apache2/error.log.30.gz to /var/log/apache2/error.log.31.gz (rotatecount 52, logstart 1, i 30),
old log /var/log/apache2/error.log.30.gz does not exist
renaming /var/log/apache2/error.log.29.gz to /var/log/apache2/error.log.30.gz (rotatecount 52, logstart 1, i 29),
old log /var/log/apache2/error.log.29.gz does not exist
renaming /var/log/apache2/error.log.28.gz to /var/log/apache2/error.log.29.gz (rotatecount 52, logstart 1, i 28),
old log /var/log/apache2/error.log.28.gz does not exist
renaming /var/log/apache2/error.log.27.gz to /var/log/apache2/error.log.28.gz (rotatecount 52, logstart 1, i 27),
old log /var/log/apache2/error.log.27.gz does not exist
renaming /var/log/apache2/error.log.26.gz to /var/log/apache2/error.log.27.gz (rotatecount 52, logstart 1, i 26),
old log /var/log/apache2/error.log.26.gz does not exist
renaming /var/log/apache2/error.log.25.gz to /var/log/apache2/error.log.26.gz (rotatecount 52, logstart 1, i 25),
old log /var/log/apache2/error.log.25.gz does not exist
renaming /var/log/apache2/error.log.24.gz to /var/log/apache2/error.log.25.gz (rotatecount 52, logstart 1, i 24),
old log /var/log/apache2/error.log.24.gz does not exist
renaming /var/log/apache2/error.log.23.gz to /var/log/apache2/error.log.24.gz (rotatecount 52, logstart 1, i 23),
old log /var/log/apache2/error.log.23.gz does not exist
renaming /var/log/apache2/error.log.22.gz to /var/log/apache2/error.log.23.gz (rotatecount 52, logstart 1, i 22),
old log /var/log/apache2/error.log.22.gz does not exist
renaming /var/log/apache2/error.log.21.gz to /var/log/apache2/error.log.22.gz (rotatecount 52, logstart 1, i 21),
old log /var/log/apache2/error.log.21.gz does not exist
renaming /var/log/apache2/error.log.20.gz to /var/log/apache2/error.log.21.gz (rotatecount 52, logstart 1, i 20),
old log /var/log/apache2/error.log.20.gz does not exist
renaming /var/log/apache2/error.log.19.gz to /var/log/apache2/error.log.20.gz (rotatecount 52, logstart 1, i 19),
old log /var/log/apache2/error.log.19.gz does not exist
renaming /var/log/apache2/error.log.18.gz to /var/log/apache2/error.log.19.gz (rotatecount 52, logstart 1, i 18),
old log /var/log/apache2/error.log.18.gz does not exist
renaming /var/log/apache2/error.log.17.gz to /var/log/apache2/error.log.18.gz (rotatecount 52, logstart 1, i 17),
old log /var/log/apache2/error.log.17.gz does not exist
renaming /var/log/apache2/error.log.16.gz to /var/log/apache2/error.log.17.gz (rotatecount 52, logstart 1, i 16),
old log /var/log/apache2/error.log.16.gz does not exist
renaming /var/log/apache2/error.log.15.gz to /var/log/apache2/error.log.16.gz (rotatecount 52, logstart 1, i 15),
old log /var/log/apache2/error.log.15.gz does not exist
renaming /var/log/apache2/error.log.14.gz to /var/log/apache2/error.log.15.gz (rotatecount 52, logstart 1, i 14),
old log /var/log/apache2/error.log.14.gz does not exist
renaming /var/log/apache2/error.log.13.gz to /var/log/apache2/error.log.14.gz (rotatecount 52, logstart 1, i 13),
old log /var/log/apache2/error.log.13.gz does not exist
renaming /var/log/apache2/error.log.12.gz to /var/log/apache2/error.log.13.gz (rotatecount 52, logstart 1, i 12),
old log /var/log/apache2/error.log.12.gz does not exist
renaming /var/log/apache2/error.log.11.gz to /var/log/apache2/error.log.12.gz (rotatecount 52, logstart 1, i 11),
old log /var/log/apache2/error.log.11.gz does not exist
renaming /var/log/apache2/error.log.10.gz to /var/log/apache2/error.log.11.gz (rotatecount 52, logstart 1, i 10),
old log /var/log/apache2/error.log.10.gz does not exist
renaming /var/log/apache2/error.log.9.gz to /var/log/apache2/error.log.10.gz (rotatecount 52, logstart 1, i 9),
old log /var/log/apache2/error.log.9.gz does not exist
renaming /var/log/apache2/error.log.8.gz to /var/log/apache2/error.log.9.gz (rotatecount 52, logstart 1, i 8),
renaming /var/log/apache2/error.log.7.gz to /var/log/apache2/error.log.8.gz (rotatecount 52, logstart 1, i 7),
renaming /var/log/apache2/error.log.6.gz to /var/log/apache2/error.log.7.gz (rotatecount 52, logstart 1, i 6),
renaming /var/log/apache2/error.log.5.gz to /var/log/apache2/error.log.6.gz (rotatecount 52, logstart 1, i 5),
renaming /var/log/apache2/error.log.4.gz to /var/log/apache2/error.log.5.gz (rotatecount 52, logstart 1, i 4),
renaming /var/log/apache2/error.log.3.gz to /var/log/apache2/error.log.4.gz (rotatecount 52, logstart 1, i 3),
renaming /var/log/apache2/error.log.2.gz to /var/log/apache2/error.log.3.gz (rotatecount 52, logstart 1, i 2),
renaming /var/log/apache2/error.log.1.gz to /var/log/apache2/error.log.2.gz (rotatecount 52, logstart 1, i 1),
renaming /var/log/apache2/error.log.0.gz to /var/log/apache2/error.log.1.gz (rotatecount 52, logstart 1, i 0),
old log /var/log/apache2/error.log.0.gz does not exist
log /var/log/apache2/error.log.53.gz doesn't exist -- won't try to dispose of it
renaming /var/log/apache2/error.log to /var/log/apache2/error.log.1
creating new log mode = 0640 uid = 0 gid = 4
running shared postrotate script

rotating pattern: /var/log/aptitude  forced from command line (6 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/aptitude
  log /var/log/aptitude does not exist -- skipping

rotating pattern: /var/log/dpkg.log  forced from command line (12 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/dpkg.log
  log does not need rotating

rotating pattern: /var/log/hibernate.log  forced from command line (5 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/hibernate.log
  log /var/log/hibernate.log does not exist -- skipping

rotating pattern: /var/log/ipw3945d/ipw3945d.log  forced from command line (6 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/ipw3945d/ipw3945d.log
error: stat of /var/log/ipw3945d/ipw3945d.log failed: No such file or directory

rotating pattern: /var/log/lvm  forced from command line (1 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/lvm
  log /var/log/lvm does not exist -- skipping

rotating pattern: /var/log/mgetty/*.log  forced from command line (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/mgetty/*.log
  log /var/log/mgetty/*.log does not exist -- skipping

rotating pattern: /var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log  forced from command line (7 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/mysql.log
  log needs rotating
considering log /var/log/mysql/mysql.log
  log /var/log/mysql/mysql.log does not exist -- skipping
considering log /var/log/mysql/mysql-slow.log
  log /var/log/mysql/mysql-slow.log does not exist -- skipping
rotating log /var/log/mysql.log, log->rotateCount is 7
renaming /var/log/mysql.log.7.gz to /var/log/mysql.log.8.gz (rotatecount 7, logstart 1, i 7),
renaming /var/log/mysql.log.6.gz to /var/log/mysql.log.7.gz (rotatecount 7, logstart 1, i 6),
renaming /var/log/mysql.log.5.gz to /var/log/mysql.log.6.gz (rotatecount 7, logstart 1, i 5),
renaming /var/log/mysql.log.4.gz to /var/log/mysql.log.5.gz (rotatecount 7, logstart 1, i 4),
renaming /var/log/mysql.log.3.gz to /var/log/mysql.log.4.gz (rotatecount 7, logstart 1, i 3),
renaming /var/log/mysql.log.2.gz to /var/log/mysql.log.3.gz (rotatecount 7, logstart 1, i 2),
renaming /var/log/mysql.log.1.gz to /var/log/mysql.log.2.gz (rotatecount 7, logstart 1, i 1),
renaming /var/log/mysql.log.0.gz to /var/log/mysql.log.1.gz (rotatecount 7, logstart 1, i 0),
old log /var/log/mysql.log.0.gz does not exist
renaming /var/log/mysql.log to /var/log/mysql.log.1
creating new log mode = 0640 uid = 101 gid = 4
compressing log with: /bin/gzip
removing old log /var/log/mysql.log.8.gz
running shared postrotate script

rotating pattern: /var/log/mythtv/mythfrontend.log  forced from command line (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/mythtv/mythfrontend.log
  log does not need rotating

rotating pattern: /var/log/mythtv/mythbackend.log  forced from command line (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/mythtv/mythbackend.log
  log needs rotating
rotating log /var/log/mythtv/mythbackend.log, log->rotateCount is 7
renaming /var/log/mythtv/mythbackend.log.7 to /var/log/mythtv/mythbackend.log.8 (rotatecount 7, logstart 1, i 7),
old log /var/log/mythtv/mythbackend.log.7 does not exist
renaming /var/log/mythtv/mythbackend.log.6 to /var/log/mythtv/mythbackend.log.7 (rotatecount 7, logstart 1, i 6),
old log /var/log/mythtv/mythbackend.log.6 does not exist
renaming /var/log/mythtv/mythbackend.log.5 to /var/log/mythtv/mythbackend.log.6 (rotatecount 7, logstart 1, i 5),
old log /var/log/mythtv/mythbackend.log.5 does not exist
renaming /var/log/mythtv/mythbackend.log.4 to /var/log/mythtv/mythbackend.log.5 (rotatecount 7, logstart 1, i 4),
old log /var/log/mythtv/mythbackend.log.4 does not exist
renaming /var/log/mythtv/mythbackend.log.3 to /var/log/mythtv/mythbackend.log.4 (rotatecount 7, logstart 1, i 3),
renaming /var/log/mythtv/mythbackend.log.2 to /var/log/mythtv/mythbackend.log.3 (rotatecount 7, logstart 1, i 2),
renaming /var/log/mythtv/mythbackend.log.1 to /var/log/mythtv/mythbackend.log.2 (rotatecount 7, logstart 1, i 1),
renaming /var/log/mythtv/mythbackend.log.0 to /var/log/mythtv/mythbackend.log.1 (rotatecount 7, logstart 1, i 0),
old log /var/log/mythtv/mythbackend.log.0 does not exist
log /var/log/mythtv/mythbackend.log.8 doesn't exist -- won't try to dispose of it
copying /var/log/mythtv/mythbackend.log to /var/log/mythtv/mythbackend.log.1
truncating /var/log/mythtv/mythbackend.log

rotating pattern: /var/log/mythtv/pause_commflag.log  forced from command line (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/mythtv/pause_commflag.log
error: stat of /var/log/mythtv/pause_commflag.log failed: No such file or directory

rotating pattern: /var/log/ppp-connect-errors  forced from command line (4 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/ppp-connect-errors
  log /var/log/ppp-connect-errors does not exist -- skipping

rotating pattern: /var/log/samba/log.smbd  forced from command line (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/samba/log.smbd
  log needs rotating
rotating log /var/log/samba/log.smbd, log->rotateCount is 7
renaming /var/log/samba/log.smbd.7.gz to /var/log/samba/log.smbd.8.gz (rotatecount 7, logstart 1, i 7),
renaming /var/log/samba/log.smbd.6.gz to /var/log/samba/log.smbd.7.gz (rotatecount 7, logstart 1, i 6),
renaming /var/log/samba/log.smbd.5.gz to /var/log/samba/log.smbd.6.gz (rotatecount 7, logstart 1, i 5),
renaming /var/log/samba/log.smbd.4.gz to /var/log/samba/log.smbd.5.gz (rotatecount 7, logstart 1, i 4),
renaming /var/log/samba/log.smbd.3.gz to /var/log/samba/log.smbd.4.gz (rotatecount 7, logstart 1, i 3),
renaming /var/log/samba/log.smbd.2.gz to /var/log/samba/log.smbd.3.gz (rotatecount 7, logstart 1, i 2),
renaming /var/log/samba/log.smbd.1.gz to /var/log/samba/log.smbd.2.gz (rotatecount 7, logstart 1, i 1),
renaming /var/log/samba/log.smbd.0.gz to /var/log/samba/log.smbd.1.gz (rotatecount 7, logstart 1, i 0),
old log /var/log/samba/log.smbd.0.gz does not exist
renaming /var/log/samba/log.smbd to /var/log/samba/log.smbd.1
creating new log mode = 0644 uid = 0 gid = 0
running postrotate script
compressing log with: /bin/gzip
removing old log /var/log/samba/log.smbd.8.gz

rotating pattern: /var/log/samba/log.nmbd  forced from command line (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/samba/log.nmbd
  log does not need rotating

rotating pattern: /var/log/wpa_action.log /var/log/wpa_action.*.log  forced from command line (5 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/wpa_action.log
  log /var/log/wpa_action.log does not exist -- skipping
considering log /var/log/wpa_action.*.log
  log /var/log/wpa_action.*.log does not exist -- skipping

rotating pattern: /var/log/wpa_supplicant.log /var/log/wpa_supplicant.*.log  forced from command line (5 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/wpa_supplicant.log
  log /var/log/wpa_supplicant.log does not exist -- skipping
considering log /var/log/wpa_supplicant.*.log
  log /var/log/wpa_supplicant.*.log does not exist -- skipping

rotating pattern: /var/log/wtmp  forced from command line (1 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/wtmp
  log needs rotating
rotating log /var/log/wtmp, log->rotateCount is 1
renaming /var/log/wtmp.1 to /var/log/wtmp.2 (rotatecount 1, logstart 1, i 1),
renaming /var/log/wtmp.0 to /var/log/wtmp.1 (rotatecount 1, logstart 1, i 0),
old log /var/log/wtmp.0 does not exist
renaming /var/log/wtmp to /var/log/wtmp.1
creating new log mode = 0664 uid = 0 gid = 43
removing old log /var/log/wtmp.2

rotating pattern: /var/log/btmp  forced from command line (1 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/btmp
  log needs rotating
rotating log /var/log/btmp, log->rotateCount is 1
renaming /var/log/btmp.1 to /var/log/btmp.2 (rotatecount 1, logstart 1, i 1),
renaming /var/log/btmp.0 to /var/log/btmp.1 (rotatecount 1, logstart 1, i 0),
old log /var/log/btmp.0 does not exist
renaming /var/log/btmp to /var/log/btmp.1
creating new log mode = 0664 uid = 0 gid = 43
removing old log /var/log/btmp.2


Here is my /etc/logrotate.conf/

Code:
# ls -l /etc/logrotate.d/
total 60
-rw-r--r-- 1 root root 240 Oct  8  2006 apache2
-rw-r--r-- 1 root root  79 Oct 27  2006 aptitude
-rw-r--r-- 1 root root 111 Oct 13  2006 dpkg
-rw-r--r-- 1 root root  94 Mar 31 03:48 hibernate
-rw-r--r-- 1 root root  59 Nov 22  2006 ipw3945d
-rw-r--r-- 1 root root  79 Feb 16  2005 lvm-common
-rw-r--r-- 1 root root 112 Mar 28 07:20 mgetty
-rw-r--r-- 1 root root 869 Oct 29  2006 mysql-server
-rw-r--r-- 1 root root 113 Jan 27  2007 mythfrontend
-rw-r--r-- 1 root root 107 Oct 17  2006 mythtv-backend
-rw-r--r-- 1 root root 127 Sep  2  2007 pause_commflag
-rw-r--r-- 1 root root  94 Dec 19  2006 ppp
-rw-r--r-- 1 root root 330 Oct 21  2006 samba
-rw-r--r-- 1 root root 106 Jun  9 09:27 wpa_action
-rw-r--r-- 1 root root 114 Jun  9 09:27 wpa_supplicant

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 20, 2008 2:57 pm 
Offline
Joined: Mon Apr 23, 2007 1:45 pm
Posts: 405
Location: Fargo, ND, USA
tjc Question 1
/usr/sbin/logrotate -v -f /etc/logrotate.conf
Reports no errors

tjc Question 2
/etc/logrotate.d
Looks like your post but contains
-rw-r--r-- 1 root root 84 Jun 8 07:28 apt
according to the /var/lib/logrotate/status file this belongs there.


I see no indication that logrotate has anything to do with the files below,
kern.log 9mb 8/16/2008 to 9/20/2008
Messages 8mb 8/16/2008 to 9/20/2008
syslog 10mb 8/16/2008 to 9/20/2008
auth.log 1mb 7/22/2008 to 9/20/2008
debug 1mb 7/22/2008 to 9/20/2008

do they need to be manually added? The /etc/logrotate.conf file has this statement in it,
# system-specific logs may be configured here
which has no entries under it.

What runs /usr/sbin/logrotate I have no cron job entries that run it and the only time it has been running is when I manually run it.

TVBox

_________________
TVBox
LinHES R8.6.1


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 20, 2008 3:45 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
TVBox wrote:
I see no indication that logrotate has anything to do with the files below,
kern.log 9mb 8/16/2008 to 9/20/2008
Messages 8mb 8/16/2008 to 9/20/2008
syslog 10mb 8/16/2008 to 9/20/2008
auth.log 1mb 7/22/2008 to 9/20/2008
debug 1mb 7/22/2008 to 9/20/2008

My config files don't mention them explicitly either but they sure seem to be getting rotated. e.g.:
Code:
root@black2:/var/log# ls -altr auth.log*
-rw-r----- 1 root adm  42260 Aug 24 06:47 auth.log.3.gz
-rw-r----- 1 root adm  41704 Aug 31 06:47 auth.log.2.gz
-rw-r----- 1 root adm  42150 Sep  7 06:47 auth.log.1.gz
-rw-r----- 1 root adm 684926 Sep 14 06:47 auth.log.0
-rw-r----- 1 root adm 630883 Sep 20 17:40 auth.log

That looks like a pretty normal rotation pattern to me, with numbered files and everything after the first old one compressed.
TVBox wrote:
What runs /usr/sbin/logrotate I have no cron job entries that run it and the only time it has been running is when I manually run it.

It's run out of /etc/cron.daily
Code:
root@black2:~# ls -al /etc/cron.daily/logrotate
-rwxr-xr-x 1 root root 89 Apr  8  2006 /etc/cron.daily/logrotate
root@black2:~# cat /etc/cron.daily/logrotate
#!/bin/sh

test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 20, 2008 10:37 pm 
Offline
Joined: Mon Apr 23, 2007 1:45 pm
Posts: 405
Location: Fargo, ND, USA
my log are not so lucky
    >ls -altr auth.log*
    -rw-r----- 1 root adm 1664442 Sep 20 18:42 auth.log (Note: 1mb 7/22 to 9/20/2008)

    > ls -altr debug*
    -rw-r----- 1 root adm 1670201 Sep 20 15:29 debug (Note: 1mb 7/22 to 9/20/2008)

    > ls -altr kern.log*
    -rw-r----- 1 root adm 439198 Aug 1 23:26 kern.log.1.gz
    -rw-r----- 1 root adm 2908595 Aug 16 06:17 kern.log.0
    -rw-r----- 1 root adm 9898116 Sep 20 15:29 kern.log (Note: 9mb 8/16 to 9/20/2008)


    > ls -altr messages*
    -rw-r----- 1 root adm 398297 Aug 2 06:26 messages.1.gz
    -rw-r----- 1 root adm 2501553 Aug 16 06:17 messages.0
    -rw-r----- 1 root adm 8210811 Sep 20 19:08 messages (Note: 8mb 8/16 to 9/20/2008)


    > ls -altr syslog*
    -rw-r----- 1 root adm 190355 Jul 24 06:25 syslog.2.gz
    -rw-r----- 1 root adm 310752 Aug 2 06:25 syslog.1.gz
    -rw-r----- 1 root adm 3384722 Aug 16 06:25 syslog.0
    -rw-r----- 1 root adm 11170445 Sep 20 19:17 syslog (Note: 10mb 8/16 to 9/20/2008)
After doing a lot of searching I run across this post.
http://lists.debian.org/debian-devel/2004/02/msg01647.html
Here is the summery
    >What package is responsible for rotating kern.log, debug, syslog?
    >I discovered that on my system these weren't rotated (!) by default.
    > Should the kernel package be doing this? Logrotate? Syslog?....
    If your system is not powered 24 hr a day then
    apt-get install anacron
Using Synaptic Packet Manager here is a discription of anacron (Note: anacron is not a default installed package in 5.5)
    Anacron (like `anac(h)ronistic') is a periodic command scheduler. It executes commands at intervals specified in days. Unlike cron, it does not assume that the system is running continuously. It can therefore be used to control the execution of daily, weekly and monthly jobs (or anything with a period of n days), on systems that don't run 24 hours a day. When installed and configured properly, Anacron will make sure that the commands are run at the specified intervals as closely as machine-uptime permits.

    This package is pre-configured to execute the daily jobs of the Debian system. You should install this program if your system isn't powered on 24 hours a day to make sure the maintenance jobs of other Debian packages are executed each day.

I run APCI wakeup and my machine hasn't run 24 hours since it was installed. Which was probably 7/22/2008 time period that shows up in the logs.

Can anyone else confirm this assumption is true.
Using APCI Wakeup = logs not rotating.
Running 24/7 = logs rotating OK.

TVBox

_________________
TVBox
LinHES R8.6.1


Last edited by TVBox on Sat Sep 20, 2008 11:25 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 20, 2008 10:55 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
That sounds like a pretty good guess, and anacron is probably the right tool for systems which don't have predictable up times. Anything else you used would essentially have to solve the same problems as it does.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu