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


Groups > linux.debian.maint.java > #12387

Bug#1008668: bug #1008668: tomcat9: logrotated is not able to truncate catalina.out

Path csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Thorsten Glaser <t.glaser@tarent.de>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.java
Subject Bug#1008668: bug #1008668: tomcat9: logrotated is not able to truncate catalina.out
Date Fri, 29 Apr 2022 20:10:01 +0200
Message-ID <EhDe1-c390-9@gated-at.bofh.it> (permalink)
References <EhrFT-bVYt-1@gated-at.bofh.it> <E6En7-5dfN-21@gated-at.bofh.it> <EhrFT-bVYt-1@gated-at.bofh.it>
X-Original-To Evren Yurtesen <Evren.Yurtesen@abo.fi>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Fri Apr 29 18:03:10 2022
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.962
Reply-To Thorsten Glaser <t.glaser@tarent.de>, 1008668@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
X-Debian-Pr-Message followup 1008668
X-Debian-Pr-Package tomcat9
X-Debian-Pr-Keywords patch
X-Debian-Pr-Source tomcat9
Content-Language de-DE-1901
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding QUOTED-PRINTABLE
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1715392
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 40
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Utkarsh Gupta <guptautkarsh2102@gmail.com>, "1008668@bugs.debian.org" <1008668@bugs.debian.org>, "ebourg@apache.org" <ebourg@apache.org>, Markus Koschany <apo@debian.org>, "debian-java@lists.debian.org" <debian-java@lists.debian.org>
X-Original-Date Fri, 29 Apr 2022 20:01:56 +0200 (CEST)
X-Original-Message-ID <3ccfc661-6dc-ef9b-b4a-7126834444bb@tarent.de>
X-Original-References <1d5c7e66890344ebb087016dc9d38864@abo.fi> <164863800076.954689.10871384784835826478.reportbug@ubuntu2204> <1d5c7e66890344ebb087016dc9d38864@abo.fi>
Xref csiph.com linux.debian.bugs.dist:1101775 linux.debian.maint.java:12387

Cross-posted to 2 groups.

Show key headers only | View raw


On Fri, 29 Apr 2022, Evren Yurtesen wrote:

> >  What is the problem with logrotate? It happily rotates files owned
> >  by anyone in Debian.
> 
> Because in Ubuntu rsyslog drops privileges to `syslog` user.
> Therefore, the log files generated by rsyslog are owned by the
> `syslog` user. But tomcat9 logrotate configuration forces logrotate to
> become `tomcat` user, during rotation. Rsyslog fails to truncate the
> catalina.out file which has read/write permissions only for `syslog`
> user.

The logfiles from tomcat aren’t normally generated by rsyslog though,
they’re directly written by Java or via shell redirections.

Anyway, this is chiefly a *buntu issue and the proposed fix would
worsen the situation in Debian, so please try to get this solved
on the *buntu side.

bye,
//mirabilos
-- 
Infrastrukturexperte • tarent solutions GmbH
Am Dickobskreuz 10, D-53121 Bonn • http://www.tarent.de/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

                        ****************************************************
/⁀\ The UTF-8 Ribbon
╲ ╱ Campaign against      Mit dem tarent-Newsletter nichts mehr verpassen:
 ╳  HTML eMail! Also,     https://www.tarent.de/newsletter
╱ ╲ header encryption!
                        ****************************************************

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Find similar


Thread

Bug#1008668: bug #1008668: tomcat9: logrotated is not able to truncate catalina.out Evren Yurtesen <Evren.Yurtesen@abo.fi> - 2022-04-29 07:50 +0200
  Bug#1008668: bug #1008668: tomcat9: logrotated is not able to truncate catalina.out Timo Aaltonen <tjaalton@debian.org> - 2022-04-29 09:40 +0200
  Bug#1008668: bug #1008668: tomcat9: logrotated is not able to truncate catalina.out Thorsten Glaser <t.glaser@tarent.de> - 2022-04-29 20:10 +0200

csiph-web