Path: csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!bofh.it!news.nic.it!robomod From: Thorsten Glaser 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: References: X-Original-To: Evren Yurtesen X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Apr 29 18:03:10 2022 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -3.962 Reply-To: Thorsten Glaser , 1008668@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: Debian Java Maintainers 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: archive/latest/1715392 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 40 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Utkarsh Gupta , "1008668@bugs.debian.org" <1008668@bugs.debian.org>, "ebourg@apache.org" , Markus Koschany , "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 On Fri, 29 Apr 2022, Evren Yurtesen wrote: > > What is the problem with logrotate? It happily rotates files owned > > by anyone in Debian. >=20 > 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=E2=80=99t normally generated by rsyslog thoug= h, they=E2=80=99re 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 --=20 Infrastrukturexperte =E2=80=A2 tarent solutions GmbH Am Dickobskreuz 10, D-53121 Bonn =E2=80=A2 http://www.tarent.de/ Telephon +49 228 54881-393 =E2=80=A2 Fax: +49 228 54881-235 HRB AG Bonn 5168 =E2=80=A2 USt-ID (VAT): DE122264941 Gesch=C3=A4ftsf=C3=BChrer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Ale= xander Steeg ***************************************************= * /=E2=81=80\ The UTF-8 Ribbon =E2=95=B2=C2=A0=E2=95=B1 Campaign against Mit dem tarent-Newsletter ni= chts mehr verpassen: =C2=A0=E2=95=B3=C2=A0 HTML eMail! Also, https://www.tarent.de/newslette= r =E2=95=B1=C2=A0=E2=95=B2 header encryption! ***************************************************= *