Re: Logrotate failing

2024-12-09 Thread Patrick O'Callaghan
On Sun, 2024-12-08 at 17:34 -0600, Roger Heflin wrote: > So, full filesystem or read-only filesystem would seem to be the most likely. Not full and not read-only, however it hasn't happened again in a few weeks so I'm going to assume that some update has fixed whatever it was. Thanks. poc -- _

Re: Logrotate failing

2024-12-09 Thread Patrick O'Callaghan
On Sun, 2024-12-08 at 23:20 +, Will McDonald wrote: > On Sun, 8 Dec 2024 at 23:03, Patrick O'Callaghan > wrote: > > > Dec 08 00:11:51 Bree logrotate[418079]: error: unable to open > > /var/log/sssd/sssd_kcm.log-20241027 (read-only) for compression: Permission >

Re: Logrotate failing

2024-12-08 Thread Roger Heflin
logrotate as far I as I know runs as root, so selinux should not matter. So, full filesystem or read-only filesystem would seem to be the most likely. Corrupted filesystem/directory and/or directory that hit some odd fs limitation (ext4 hashes files in a dir and when too many files hash into a

Re: Logrotate failing

2024-12-08 Thread Will McDonald
On Sun, 8 Dec 2024 at 23:03, Patrick O'Callaghan wrote: > Dec 08 00:11:51 Bree logrotate[418079]: error: unable to open > /var/log/sssd/sssd_kcm.log-20241027 (read-only) for compression: Permission > denied > However: > > $ sudo ls -lZ /var/log/sssd/sssd_kcm.log-202410

Logrotate failing

2024-12-08 Thread Patrick O'Callaghan
]: Starting logrotate.service - Rotate log files... Dec 08 00:11:51 Bree logrotate[418079]: error: unable to open /var/log/sssd/sssd_kcm.log-20241027 (read-only) for compression: Permission denied

Re: logrotate service failing

2024-07-22 Thread Barry
> On 22 Jul 2024, at 15:33, Paolo Galtieri wrote: > > I'm running syslog because that has what has always been running. Unless you need specific syslog features journal is a big improvement. The logs are records with fields, not just a string of text, that allows for smarter searching for ex

Re: logrotate service failing

2024-07-22 Thread Paolo Galtieri
I'm running syslog because that has what has always been running.  This was from before systemd.  Why both rsyslog and syslog-ng were running I have no idea.  I did not intentionally start both, I assumed only one would be running. Paolo On 7/21/24 01:15, Barry wrote: On 21 Jul 2024, at 01

Re: logrotate service failing

2024-07-21 Thread Barry
> On 21 Jul 2024, at 01:20, Paolo Galtieri wrote: > > Actually I have both running. That will not work. Only one must be running. Just to check; are you using syslog because systemd journal is not covering your use-case? If journal is sufficient then remove both the syslog daemons. Barry

Re: logrotate service failing

2024-07-20 Thread Paolo Galtieri
Actually I have both running. Paolo On 7/20/24 16:37, Todd Zullinger wrote: Paolo Galtieri wrote: It's interesting that both packages are available on F39. Is there a reason to have both?  And if only one should be installed which? It's not really different than having multiple web browsers o

Re: logrotate service failing

2024-07-20 Thread Todd Zullinger
Paolo Galtieri wrote: > It's interesting that both packages are available on F39. > Is there a reason to have both?  And if only one should be > installed which? It's not really different than having multiple web browsers or desktop environments. Some folks like rsyslog, some like syslog-ng. You

Re: logrotate service failing

2024-07-20 Thread Paolo Galtieri
It's interesting that both packages are available on F39. Is there a reason to have both?  And if only one should be installed which? Paolo On 7/20/24 14:27, Todd Zullinger wrote: Go Canes wrote: On Sat, Jul 20, 2024 at 3:49 PM Paolo Galtieri wrote: I wonder then if this is an issue due to

Re: logrotate service failing

2024-07-20 Thread Todd Zullinger
Go Canes wrote: > On Sat, Jul 20, 2024 at 3:49 PM Paolo Galtieri wrote: >> >> I wonder then if this is an issue due to dnf upgrade? I've used dnf >> upgrade to upgrade my system since at least F35. I wonder if at some >> point there was a syslog file which then became rsyslog and the old >> sysl

Re: logrotate service failing

2024-07-20 Thread Go Canes
On Sat, Jul 20, 2024 at 3:49 PM Paolo Galtieri wrote: > > I wonder then if this is an issue due to dnf upgrade? I've used dnf > upgrade to upgrade my system since at least F35. I wonder if at some > point there was a syslog file which then became rsyslog and the old > syslog file was never remov

Re: logrotate service failing

2024-07-20 Thread Paolo Galtieri
t, 20 Jul 2024 12:05:10 -0700 Paolo Galtieri wrote: A little investigation showed the following in /etc/logrotate.d rsyslog:/var/log/messages syslog:/var/log/messages I don't have a syslog file in my /etc/logrotate.d, only rsyslog. I'm running fedora 40 and logrotate seem

Re: logrotate service failing

2024-07-20 Thread Tom Horsley
On Sat, 20 Jul 2024 12:05:10 -0700 Paolo Galtieri wrote: > A little investigation showed the following in /etc/logrotate.d > > rsyslog:/var/log/messages > syslog:/var/log/messages I don't have a syslog file in my /etc/logrotate.d, only rsyslog. I'm running fedora 40 and

logrotate service failing

2024-07-20 Thread Paolo Galtieri
I have updated my system using dnf upgrade for several releases.  I am currently running F39.  Today I was looking at my running services and noticed that the logrotate.service is failing to start due to the following error: Jul 20 11:49:41 caseyjones.homenet192-168-10.com logrotate[307129

Re: Issue with logrotate and mariadb?? After upgrade to Fedora 40

2024-06-01 Thread Roger Heflin
That would have to have been a mariadb config file/code change to no longer allow root at localhost to access without a password. Based on this change adding the root@localhost type auth on Windows then it should work. https://jira.mariadb.org/browse/MDEV-26715 Those changes were 10.11.0 so I won

Issue with logrotate and mariadb?? After upgrade to Fedora 40

2024-06-01 Thread Michael D. Setzer II via users
Worked fine with Fedora before 40, but now get message. Line in /etc/logrotate.d/mariadb /usr/bin/mariadb-admin $EXTRAPARAM --local flush-error-log \ flush-engine-log flush-general-log flush-slow-log #OUTPUT #/usr/bin/mariadb-admin: connect to server at 'localhost' failed #error: 'Access de

Re: logrotate and timer script

2020-10-05 Thread ITwrx
d" so that the new > file is picked up. > >> However, there doesn't seem to be a timer entry in systemctl output. >> Ideas on how to get started would be appreciated. > > It seems that the triggering timer isn't mentioned in the log, but you > should se

Re: logrotate and timer script

2020-10-04 Thread Samuel Sieb
Ideas on how to get started would be appreciated. It seems that the triggering timer isn't mentioned in the log, but you should see the log entries for running logrotate. "journalctl -b -u logrotate" will list only those. ___ users mailing

logrotate and timer script

2020-10-04 Thread Alex
Hi, I have a fedora32 system and would like the maillog to rotate exactly at a specific time. How do I do that? It used to be that I could create a crontab entry but now there appears to be this timer service, including /usr/lib/systemd/system/logrotate.timer included with the package that appear

logrotate - Re: What process rolls the log files Saturday night?

2020-05-09 Thread Robert Moskowitz
OK.  I found by reading the head of the new messages log. I see its termination message... On 5/10/20 1:29 AM, Robert Moskowitz wrote: actually the change occurred at 1am. On 5/10/20 1:19 AM, Robert Moskowitz wrote: I see that my various log files have been rolled over at midnight. But looki

Re: F22 rsyslog and logrotate: looks like a bug to me

2015-06-10 Thread Ed Greshko
On 06/11/15 03:11, Mark C. Allman wrote: > I see this line in /etc/logrotate.d/syslog: > > /bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null||true > > The PID file for rsyslog is actually /var/run/rsyslogd.pid, therefore > once logrotate runs the new l

F22 rsyslog and logrotate: looks like a bug to me

2015-06-10 Thread Mark C. Allman
I see this line in /etc/logrotate.d/syslog: /bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null||true The PID file for rsyslog is actually /var/run/rsyslogd.pid, therefore once logrotate runs the new log files, e.g., messages, maillog, etc., are empty. Sound like a bug to y

Re: logrotate/logwatch error on fc15

2012-10-25 Thread Alex
>> The script should be written to use 'file' not just parse the extension. > > > Why? Just because in <.001% of the time the extension will be wrong? Not > exactly an efficient use of resources. Are you in that much of a hurry to get your logwatch reports? I'd prefer to have a more accurate pro

Re: logrotate/logwatch error on fc15

2012-10-24 Thread Reindl Harald
Am 24.10.2012 19:20, schrieb Joe Zeff: > On 10/24/2012 08:58 AM, Alex wrote: >> The script should be written to use 'file' not just parse the extension. > > Why? Just because in <.001% of the time the extension will be wrong? Not > exactly an efficient use of resources. because it is NOT the

Re: logrotate/logwatch error on fc15

2012-10-24 Thread Joe Zeff
On 10/24/2012 08:58 AM, Alex wrote: The script should be written to use 'file' not just parse the extension. Why? Just because in <.001% of the time the extension will be wrong? Not exactly an efficient use of resources. -- users mailing list users@lists.fedoraproject.org To unsubscribe or c

Re: logrotate/logwatch error on fc15

2012-10-24 Thread Alex
>> I have an fc15 box and I'm having a problem with logwatch. I'm using >> bzip2 for the compresscmd for logrotate, yet it somehow is giving the >> compressed files a gz instead of bz2 extension. Logwatch uses this to >> determine which command to use t

Re: logrotate/logwatch error on fc15

2012-10-22 Thread Zdenek Pytela
Alex pise: > Hi, > > I have an fc15 box and I'm having a problem with logwatch. I'm using > bzip2 for the compresscmd for logrotate, yet it somehow is giving the > compressed files a gz instead of bz2 extension. Logwatch uses this to > determine which command to use

logrotate/logwatch error on fc15

2012-10-21 Thread Alex
Hi, I have an fc15 box and I'm having a problem with logwatch. I'm using bzip2 for the compresscmd for logrotate, yet it somehow is giving the compressed files a gz instead of bz2 extension. Logwatch uses this to determine which command to use to read the compressed files, so it th

Re: RESEND: Fedora 14=>16 Logrotate, Systemctl, Httpd, SSL problem

2012-03-20 Thread Craig White
have upgraded my server from Fedora 14 to Fedora 16 (x86_64) - most > things are going again happily but there are a few remaining problems - > the main one at the moment involves Logrotate, Systemctl, Httpd and SSL. > My logrotate.conf is set up for daily rotations so I get old logs l

RESEND: Fedora 14=>16 Logrotate, Systemctl, Httpd, SSL problem

2012-03-20 Thread Philip Rhoades
e are a few remaining problems - the main one at the moment involves Logrotate, Systemctl, Httpd and SSL. My logrotate.conf is set up for daily rotations so I get old logs like: /var/log/httpd/access_log-20120202 but, presumably because of the changes in Fedora from "service" to &q

Fedora 14=>16 Logrotate, Systemctl, Httpd, SSL problem

2012-02-01 Thread Philip Rhoades
People, I have upgraded my server from Fedora 14 to Fedora 16 (x86_64) - most things are going again happily but there are a few remaining problems - the main one at the moment involves Logrotate, Systemctl, Httpd and SSL. My logrotate.conf is set up for daily rotations so I get old logs like

Re: fail2ban vs. logrotate

2011-10-25 Thread Tim
On Tue, 2011-10-25 at 16:12 -0400, Mike Wohlgemuth wrote: > I don't see any way to get fail2ban to reopen the log file without > also forgetting the current ban list. As I recall, it's supposed to make temporary bans. So does it really need to keep a ban list forever? You'd be banning things tha

Re: fail2ban vs. logrotate

2011-10-25 Thread Tom Rivers
On 10/25/2011 4:12 PM, Mike Wohlgemuth wrote: > On 10/25/2011 11:12 AM, Mikkel L. Ellertson wrote: >> It looks like you would have to modify the syslog logrotate script >> and add a second command in the postrotate section after it restarts >> syslogd. Does fail2ban accept

Re: fail2ban vs. logrotate

2011-10-25 Thread Mike Wohlgemuth
On 10/25/2011 11:12 AM, Mikkel L. Ellertson wrote: > It looks like you would have to modify the syslog logrotate script > and add a second command in the postrotate section after it restarts > syslogd. Does fail2ban accept a SIGHUP to close and reopen the log file? > > That was m

Re: fail2ban vs. logrotate

2011-10-25 Thread Mike Wohlgemuth
On 10/25/2011 01:23 AM, Andre Speelmans wrote: > Change the config file for logrotate so that it does not create a new > file, but that it uses copy-and-truncate. The exact syntax is easily > found in the man-page. > Ah, that looks like what I need. I read the man page and s

Re: fail2ban vs. logrotate

2011-10-25 Thread Andre Speelmans
> It looks like you would have to modify the syslog logrotate script > and add a second command in the postrotate section after it restarts > syslogd. Does fail2ban accept a SIGHUP to close and reopen the log file? Or make it do copy-truncate, which is meant just for these cases where

Re: fail2ban vs. logrotate

2011-10-25 Thread Mikkel L. Ellertson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/25/2011 09:07 AM, Andre Speelmans wrote: >> I was referring to the fail2ban RPM. This has to be a problem for >> just about any installation that uses logrotate. > > Most daemons seem to use their own logfile and therefore c

Re: fail2ban vs. logrotate

2011-10-25 Thread Andre Speelmans
> I was referring to the fail2ban RPM. This has to be a problem for > just about any installation that uses logrotate. Most daemons seem to use their own logfile and therefore can use their own logrotate configuration script in /etc/logrotate.d. But /var/log/secure is not handled by a sp

Re: fail2ban vs. logrotate

2011-10-25 Thread Mikkel L. Ellertson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/25/2011 12:23 AM, Andre Speelmans wrote: >> It sounds like fail2ban still has the old log file open. You need to >> have logrotate tell fail2ban that the log file has changed. > > Change the config file for logrotate so that

Re: fail2ban vs. logrotate

2011-10-24 Thread Andre Speelmans
> It sounds like fail2ban still has the old log file open. You need to > have logrotate tell fail2ban that the log file has changed. Change the config file for logrotate so that it does not create a new file, but that it uses copy-and-truncate. The exact syntax is easily found in the ma

Re: fail2ban vs. logrotate

2011-10-24 Thread Mikkel L. Ellertson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/24/2011 12:14 PM, Mike Wohlgemuth wrote: > I've installed fail2ban on Fedora 15 to block repeated failed ssh > connections. It works great up until logrotate kicks in. When it > rotates /var/log/secure then fail2ban stops notic

Re: fail2ban vs. logrotate

2011-10-24 Thread suvayu ali
On Mon, Oct 24, 2011 at 20:17, Marvin Kosmal wrote: > Hi > > This does not address your problem directly. > > I use a program called  denyhosts for blocking ssh attempts.  It creates a > list in  /etc/hosts.deny. > > Great program. > +1 to denyhosts. > Good luck > > Marvin > -- Suvayu Open

Re: fail2ban vs. logrotate

2011-10-24 Thread Marvin Kosmal
On Mon, Oct 24, 2011 at 10:14 AM, Mike Wohlgemuth wrote: > I've installed fail2ban on Fedora 15 to block repeated failed ssh > connections. It works great up until logrotate kicks in. When it > rotates /var/log/secure then fail2ban stops noticing failed ssh > attempts. Usin

fail2ban vs. logrotate

2011-10-24 Thread Mike Wohlgemuth
I've installed fail2ban on Fedora 15 to block repeated failed ssh connections. It works great up until logrotate kicks in. When it rotates /var/log/secure then fail2ban stops noticing failed ssh attempts. Using fail2ban-client to reload the jail fixes the problem, but it also c

Logrotate problem

2011-06-09 Thread kshitij mali
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

Re: fix logrotate buffer overflow

2011-03-18 Thread Todd Zullinger
Colin McCabe wrote: > Thanks for the helpful suggestions, guys! I appreciate it. > > I would like to submit this upstream, but I'm having a bit of > difficulty finding the upstream for this project. Do you happen to > have a home page or mailing list for the logrotate upst

Re: fix logrotate buffer overflow

2011-03-18 Thread Colin McCabe
On Thu, Mar 17, 2011 at 9:38 PM, Todd Zullinger wrote: > Patrick O'Callaghan wrote: >> The Fedora Bugzilla is at http://bugzilla.redhat.com. You can create >> an account there and then report your bug (and patch) against the >> logrotate package. If it needs to be repo

Re: fix logrotate buffer overflow

2011-03-18 Thread Patrick O'Callaghan
On Fri, 2011-03-18 at 06:26 -0500, Aaron Konstam wrote: > > While I try to forward reports upstream as needed, I really don't > want > > to see anyone be discouraged from reporting bugs directly upstream. > > That benefits us all, IMO. > > > > OK, it is time to report ignorance. I have difficulty

Re: fix logrotate buffer overflow

2011-03-18 Thread Aaron Konstam
On Fri, 2011-03-18 at 00:38 -0400, Todd Zullinger wrote: > Patrick O'Callaghan wrote: > > The Fedora Bugzilla is at http://bugzilla.redhat.com. You can create > > an account there and then report your bug (and patch) against the > > logrotate package. If it needs to

Re: fix logrotate buffer overflow

2011-03-17 Thread Patrick O'Callaghan
On Fri, 2011-03-18 at 00:38 -0400, Todd Zullinger wrote: > Patrick O'Callaghan wrote: > > The Fedora Bugzilla is at http://bugzilla.redhat.com. You can create > > an account there and then report your bug (and patch) against the > > logrotate package. If it needs to

Re: fix logrotate buffer overflow

2011-03-17 Thread Todd Zullinger
Patrick O'Callaghan wrote: > The Fedora Bugzilla is at http://bugzilla.redhat.com. You can create > an account there and then report your bug (and patch) against the > logrotate package. If it needs to be reported upstream, the package > maintainer will do it. As a package main

Re: fix logrotate buffer overflow

2011-03-17 Thread Patrick O'Callaghan
On Thu, 2011-03-17 at 16:51 -0700, Colin McCabe wrote: > I was unable to create a ticket on the bug report system I found on > https://fedorahosted.org/logrotate/ > It allows me to view tickets by clicking on "View Tickets," but I > can't create one. > > Perhap

Re: fix logrotate buffer overflow

2011-03-17 Thread Kevin Fenzi
On Thu, 17 Mar 2011 16:51:29 -0700 Colin McCabe wrote: > Hi Patrick, > > I was unable to create a ticket on the bug report system I found on > https://fedorahosted.org/logrotate/ > It allows me to view tickets by clicking on "View Tickets," but I > can't c

Re: fix logrotate buffer overflow

2011-03-17 Thread Colin McCabe
Hi Patrick, I was unable to create a ticket on the bug report system I found on https://fedorahosted.org/logrotate/ It allows me to view tickets by clicking on "View Tickets," but I can't create one. Perhaps I need to create an account, or perhaps there is another bug tracker tha

Re: fix logrotate buffer overflow

2011-03-16 Thread Patrick O'Callaghan
On Wed, 2011-03-16 at 18:15 -0700, Colin McCabe wrote: > This patch fixes a buffer overflow in logrotate. The diff was done > against trunk on http://svn.fedorahosted.org/svn/logrotate/ > > Sorry if this is the wrong place to post this. I didn't see a mailing > list mentioned

fix logrotate buffer overflow

2011-03-16 Thread Colin McCabe
This patch fixes a buffer overflow in logrotate. The diff was done against trunk on http://svn.fedorahosted.org/svn/logrotate/ Sorry if this is the wrong place to post this. I didn't see a mailing list mentioned on the project page at https://fedorahosted.org/logrotate/ Fixed version with p

fix logrotate buffer overflow

2011-03-16 Thread Colin McCabe
This patch fixes a buffer overflow in logrotate. The diff was done against trunk on http://svn.fedorahosted.org/svn/logrotate/ Sorry if this is the wrong place to post this. I didn't see a mailing list mentioned on the project page at https://fedorahosted.org/logrotate/ Index: con

Re: logrotate

2010-03-04 Thread NoSpaze
Am Donnerstag, den 04.03.2010, 14:45 +0530 schrieb Kaushal Shriyan: > Hi, > > is there a way to scp or rsync the files to a remote host older than > 15 days in the logrotate config and than delete it on localhost older > than 15 days, so that at a time only 15 days of logs a

logrotate

2010-03-04 Thread Kaushal Shriyan
Hi, is there a way to scp or rsync the files to a remote host older than 15 days in the logrotate config and than delete it on localhost older than 15 days, so that at a time only 15 days of logs are available on localhost. Thanks, Kaushal -- users mailing list users@lists.fedoraproject.org To

Re: Logrotate not starting a new log file at cron.daily time?

2010-02-13 Thread Larry Brower
Philip Rhoades wrote: > People, > > Every day I want to run a script on the current, complete maillog file > so I set it up in crontab for 04:01 - one minute before the cron.daily > logrotate happens but all the maillog log files start with lines in the > file that vary betwe

Logrotate not starting a new log file at cron.daily time?

2010-02-13 Thread Philip Rhoades
People, Every day I want to run a script on the current, complete maillog file so I set it up in crontab for 04:01 - one minute before the cron.daily logrotate happens but all the maillog log files start with lines in the file that vary between 03:00 and 04:02 - how is this possible