FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Red Hat Linux

 
 
LinkBack Thread Tools
 
Old 01-08-2008, 10:10 AM
"Herta Van den Eynde"
 
Default logrotate Problem

On 08/01/2008, Marcos Aurelio Rodrigues <deigratia33@gmail.com> wrote:
> give more information to us...
>
> but, questions for you. Is the cron running?
>
> is there a file? /etc/cron.daily/logrotate
>
>
>
> --
> ========================================
> Marcos Aurelio Rodrigues (DEiGrAtiA-33)
> <deigratia33@gmail.com>
> CCNA
> Mirabilia laudo semprer, Dei
> ========================================
>
>
> On Jan 8, 2008 4:47 AM, Vivek Mangal <vivek.mangal9685@gmail.com> wrote:
>
> > Hello All,
> >
> > I have a Problem to create the log file
> > i configured logrotate.conf as
> >
> > \\ /etc/logrotate.conf file\\
> > # 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
> > # RPM packages drop log rotation information into this directory
> > include /etc/logrotate.d
> > # no packages own wtmp -- we'll rotate them here
> > /var/log/wtmp {
> > monthly
> > create 0664 root utmp
> > rotate 1
> > }
> > \\End of Log file \\
> > --

Also verify that /etc/logrotate.d/syslog exists. If it exists, please
post it contents.

Kind regards,

Herta

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 01-09-2008, 05:15 AM
"Vivek Mangal"
 
Default logrotate Problem

Hello All,

I have a Problem to create the log file.
Log file did not compress and they did not rotate weekly.
i donot know what is the problem.
and i configured logrotate.conf as
all the entries in /etc/logrotate.d/* are correct.
their are any other file which are responsible for it ?
and how can i solve it ?
\\ /etc/logrotate.conf file\\
# 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
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
\\ End of Log file \\
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 01-09-2008, 09:56 AM
"Marcos Aurelio Rodrigues"
 
Default logrotate Problem

Hi Vivek,

I already wrote a message for you about that problem, but you didn't answer
the question...


Wrote yesterday :
give more information to us...

but, questions for you. Is the cron running?

is there a file? /etc/cron.daily/logrotate


--
========================================
Marcos Aurelio Rodrigues (DEiGrAtiA-33)
< deigratia33@gmail.com>
CCNA
Mirabilia laudo semprer, Dei
========================================

On Jan 9, 2008 4:15 AM, Vivek Mangal < vivek.mangal9685@gmail.com> wrote:

> Hello All,
>
> I have a Problem to create the log file.
> Log file did not compress and they did not rotate weekly.
> i donot know what is the problem.
> and i configured logrotate.conf as
> all the entries in /etc/logrotate.d/* are correct.
> their are any other file which are responsible for it ?
> and how can i solve it ?
> \\ /etc/logrotate.conf file\\
> # 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
> # RPM packages drop log rotation information into this directory
> include /etc/logrotate.d
> # no packages own wtmp -- we'll rotate them here
> /var/log/wtmp {
> monthly
> create 0664 root utmp
> rotate 1
> }
> \\ End of Log file \\
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 01-09-2008, 01:07 PM
Andrew Bacchi
 
Default logrotate Problem

Vivek Mangal wrote:

Hello All,

I have a Problem to create the log file.

Which log file? Is it not created? Or, not rotated?
You're not providing enough info for us to help you.


Log file did not compress and they did not rotate weekly.
i donot know what is the problem.

Which version of RH?
Did you read the man page for logrotate?
It says logrotate is controled be a cron job.
Did you look in /etc/cron.weekly? /etc/cron.daily?
What sets off logrotate?
Do you see 0anacron in those directories?
Is the cron damon running?


and i configured logrotate.conf as
all the entries in /etc/logrotate.d/* are correct.
their are any other file which are responsible for it ?
and how can i solve it ?
\\ /etc/logrotate.conf file\\
# 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
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
\\ End of Log file \\


--
veritatis simplex oratio est
-Seneca

Andrew Bacchi
Systems Programmer
Information Technologies Infrastructure
Rensselaer Polytechnic Institute
phone: 518.276.6415 fax: 518.276.2809

http://www.rpi.edu/~bacchi/

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 07-30-2008, 10:31 AM
Balaji
 
Default Logrotate Problem

Dear All,

Currently i am using CentOS 4.4 Linux
I have configured crontab to run cron.daily at 4:02 am
2 4 * * * root run-parts /etc/cron.daily

On 4:02 am my pc is shutdown and i am boot-up my pc on 13:11:10
Please verify the system log messages from "/var/log/messages" file
Jul 30 13:11:10 localhost syslogd 1.4.1: restart (remote reception).
Jul 30 13:11:10 localhost snmpd[2663]: Received TERM or STOP
signal... shutting down...

Jul 30 13:11:11 localhost snmpd: snmpd shutdown succeeded
Jul 30 13:11:11 localhost snmpd: snmpd startup succeeded
Jul 30 13:11:12 localhost syslogd 1.4.1: restart (remote reception).
Jul 30 13:11:12 localhost logrotate: ALERT exited abnormally with [1]

But Logrotate will be done after PC is boot-up

Please verify the logrotate messages from "/var/spool/mail/root" file
From root@localhost Wed Jul 30 13:15:07 2008
Return-Path: <root@localhost>
Received: from localhost (localhost.localdomain [127.0.0.1])
by localhost (8.13.1/8.13.1) with ESMTP id m6U7j7ll012654
for <root@localhost>; Wed, 30 Jul 2008 13:15:07 +0530
Received: (from root@localhost)
by localhost (8.13.1/8.13.1/Submit) id m6U7j7xn012641
for root; Wed, 30 Jul 2008 13:15:07 +0530
Date: Wed, 30 Jul 2008 13:15:07 +0530
Message-Id: <200807300745.m6U7j7xn012641@localhost>
From: root@localhost (Anacron)
To: root@localhost
Content-Type: text/plain; charset="ANSI_X3.4-1968"
Subject: Anacron job 'cron.daily'
/etc/cron.daily/logrotate:

I am not sure why this is happening. Can some one throw light on this.

Regards
-S.Balaji

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-12-2008, 12:08 PM
"Dr. Michael J. Chudobiak"
 
Default logrotate problem

Hi all,

I'm having problems running logrotate from cron. The emails say:

/etc/cron.daily/logrotate:
error: cannot open current directory: Permission denied

logrotate tries to open ".", which works out to "/root". Sure enough,
selinux is blocking access to admin_home_t:


type=AVC msg=audit(1226489667.211:371): avc: denied { read } for
pid=2291 comm="logrotate" name="root" dev=dm-0 ino=2162689
scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023
tcontext=system_ubject_r:admin_home_t:s0 tclass=dir
type=SYSCALL msg=audit(1226489667.211:371): arch=40000003 syscall=5
success=no exit=-13 a0=80525d3 a1=8000 a2=0 a3=8000 items=0 ppid=2289
pid=2291 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0
tty=(none) ses=39 comm="logrotate" exe="/usr/sbin/logrotate"
subj=system_u:system_r:logrotate_t:s0-s0:c0.c1023 key=(null)




Is this a policy bug?

An /.autorelabel didn't fix it.

I'm using F10 rawhide.


- Mike

--
fedora-selinux-list mailing list
fedora-selinux-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-selinux-list
 
Old 11-12-2008, 01:09 PM
Daniel J Walsh
 
Default logrotate problem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dr. Michael J. Chudobiak wrote:
> Hi all,
>
> I'm having problems running logrotate from cron. The emails say:
>
> /etc/cron.daily/logrotate:
> error: cannot open current directory: Permission denied
>
> logrotate tries to open ".", which works out to "/root". Sure enough,
> selinux is blocking access to admin_home_t:
>
> type=AVC msg=audit(1226489667.211:371): avc: denied { read } for
> pid=2291 comm="logrotate" name="root" dev=dm-0 ino=2162689
> scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023
> tcontext=system_ubject_r:admin_home_t:s0 tclass=dir
> type=SYSCALL msg=audit(1226489667.211:371): arch=40000003 syscall=5
> success=no exit=-13 a0=80525d3 a1=8000 a2=0 a3=8000 items=0 ppid=2289
> pid=2291 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0
> tty=(none) ses=39 comm="logrotate" exe="/usr/sbin/logrotate"
> subj=system_u:system_r:logrotate_t:s0-s0:c0.c1023 key=(null)
>
>
>
> Is this a policy bug?
>
> An /.autorelabel didn't fix it.
>
> I'm using F10 rawhide.
>
>
> - Mike
>
> --
> fedora-selinux-list mailing list
> fedora-selinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-selinux-list
Is this standard config, or are you having logrotate look for something
in the /root directory?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkka45AACgkQrlYvE4MpobPQcgCcDu4F/30Yh0Oy/S7KytVSt0yy
54kAn2JISpIMCS5VBt0SwbQwofNTTsOK
=+LMz
-----END PGP SIGNATURE-----

--
fedora-selinux-list mailing list
fedora-selinux-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-selinux-list
 
Old 06-10-2011, 06:50 AM
kshitij mali
 
Default Logrotate problem

Hi All ,
*
I am getting daily logrotation failure please see the below messages from /var/log/messages
*
================================================== ==========
May 13 00:02:04 D1OKH680RL syslogd 1.4.1: restart.
May 13 00:02:12 D1OKH680RL syslogd 1.4.1: restart.
May 13 00:02:12 D1OKH680RL logrotate: ALERT exited abnormally with [1]
================================================== ==========


*
in crontab daily i have shedule the cron job to rotatelog for specific time
*
2 0 * * * /usr/bin/logrotate /etc/logrotate.conf
*
priviously it was rotating log with no problem but from last some days logrotate is not rotating properly which tends to loss of log .
*
i have even tried with -v option in crontab file still i am unable to get any verbose log stating what is an actuall problem
*
can some help me to troubleshoot this issue .
*
Thanks in Advanced .
*
Kshitij
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 07:12 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org