Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1049429 > unrolled thread

Bug#720096: marked as pending in rsyslog

Started byHarald Dunkel <harri@afaics.de>
First post2021-02-22 19:10 +0100
Last post2021-02-25 13:40 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.debian.bugs.dist

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#720096: marked as pending in rsyslog Harald Dunkel <harri@afaics.de> - 2021-02-22 19:10 +0100
    Bug#720096: marked as pending in rsyslog Michael Biebl <biebl@debian.org> - 2021-02-22 20:10 +0100
      Bug#720096: marked as pending in rsyslog Harald Dunkel <harald.dunkel@aixigo.com> - 2021-02-25 13:40 +0100

#1049429 — Bug#720096: marked as pending in rsyslog

FromHarald Dunkel <harri@afaics.de>
Date2021-02-22 19:10 +0100
SubjectBug#720096: marked as pending in rsyslog
Message-ID<BLnOG-7py-7@gated-at.bofh.it>
Sorry to say, but this is not a fix. A fix would avoid the race
condition, no matter whats written in the config files.

Your "fix" is just a workaround. If I add

/var/log/logfile1
{
	rotate 7
	daily
	missingok
	notifempty
	delaycompress
	compress	
	postrotate
		/usr/lib/rsyslog/rsyslog-rotate
	endscript
}
/var/log/logfile2
{
	rotate 7
	daily
	missingok
	notifempty
	delaycompress
	compress	
	postrotate
		/usr/lib/rsyslog/rsyslog-rotate
	endscript
}

in another config file, then the problem is back.

[toc] | [next] | [standalone]


#1049438

FromMichael Biebl <biebl@debian.org>
Date2021-02-22 20:10 +0100
Message-ID<BLoKK-7Z6-9@gated-at.bofh.it>
In reply to#1049429

[Multipart message — attachments visible in raw view] — view raw

Am 22.02.2021 um 18:57 schrieb Harald Dunkel:
> Sorry to say, but this is not a fix. A fix would avoid the race
> condition, no matter whats written in the config files.
> 
> Your "fix" is just a workaround. If I add

If you have a better solution, I'm all ears.


[toc] | [prev] | [next] | [standalone]


#1049783

FromHarald Dunkel <harald.dunkel@aixigo.com>
Date2021-02-25 13:40 +0100
Message-ID<BMo5X-2VQ-3@gated-at.bofh.it>
In reply to#1049438
On Mon, 22 Feb 2021 20:00:33 +0100 Michael Biebl <biebl@debian.org> wrote:
> Am 22.02.2021 um 18:57 schrieb Harald Dunkel:
> > Sorry to say, but this is not a fix. A fix would avoid the race
> > condition, no matter whats written in the config files.
> > 
> > Your "fix" is just a workaround. If I add
> 
> If you have a better solution, I'm all ears.
> 
> 

My favorite workaround is to kick out the delaycompress, see
https://bugs.debian.org/720096#130.

A clean solution would have to delay sending a SIGHUP to rsyslog,
until *all* rsyslog logfiles have been processed by logrotate,
regardless in which logrotate config file or "{ ... }" block they
are mentioned. Some kind of global "sharedscripts" option.


Regards
Harri

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web