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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-17-2002, 09:26 AM
|
#1
|
|
Member
Registered: Feb 2002
Location: Pittsburgh, PA, USA
Posts: 73
Rep:
|
Help with crontab log error
The cron daemon keeps emailing me informing me of an error. Problem is, I can't figure out why it is erroring out. This is the error message:
/etc/cron.daily/logrotate:
error: bad top line in state file /var/lib/logrotate.status
The top and only line in /var/lib/logrotate.status is a "1". When I removed the line, I got this error:
/etc/cron.daily/logrotate:
error: error reading top line of /var/lib/logrotate.status
So obviously, something needs to be in the top line of that file and it's not supposed to be a "1".
Any ideas on what it should be?
Thanks,
M
|
|
|
|
06-17-2002, 09:34 AM
|
#2
|
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
This is what I have at my production workstation (RH7.2)
Quote:
logrotate state -- version 2
"/var/log/htmlaccess.log" 2002-5-22
"/var/log/netconf.log" 2002-6-1
"/var/log/messages" 2002-6-16
"/var/log/secure" 2002-6-16
"/var/log/maillog" 2002-6-16
"/var/log/spooler" 2002-6-16
"/var/log/boot.log" 2002-6-16
"/var/log/cron" 2002-6-16
"/var/log/wtmp" 2002-6-1
"/var/log/rpmpkgs" 2002-6-16
"/var/log/up2date" 2002-6-16
|
|
|
|
|
06-17-2002, 09:41 AM
|
#3
|
|
Member
Registered: Feb 2002
Location: Pittsburgh, PA, USA
Posts: 73
Original Poster
Rep:
|
Any idea on what generates this file? I recently moved all my logs to /usr/log and Im certain this is the reason. However, I thought I've changed everything to reflect this move.
Thanks!
M
|
|
|
|
06-20-2003, 04:16 AM
|
#4
|
|
LQ Newbie
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: RedHat8.0
Posts: 1
Rep:
|
Found this thread through a search, it is a bit late now but wanted to post an answer for posterity's sake.
Delete the empty logrotate.status and run logrotate again:
/etc/cron.daily/logrotate /etc/logrotate.conf
The logrotate.status will be recreated automatically.
|
|
|
|
06-20-2003, 05:17 AM
|
#5
|
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 14, Chakra
Posts: 3,517
Rep: 
|
If you don't want the file here but in /usr/log, why don't you create a link?
|
|
|
|
12-21-2004, 01:05 AM
|
#6
|
|
LQ Newbie
Registered: Dec 2002
Location: Pune
Posts: 21
Rep:
|
Hi,
Even i faced the same problem. The simple solution for this is :
1> Take a back up of the logrotate.status file.
mv /var/lib/logrotate.status /var/lib/logrotate.status.bak
2> Run to logrotate sommand manually to regenerate this file again
logrotate -fv /etc/logrotate.conf
This should solve your problem.
Do let us know in case you face any problem.
Cheers
dawood
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:13 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|