Path: csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod From: Evren Yurtesen 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 07:50:01 +0200 Message-ID: References: X-Original-To: Utkarsh Gupta , Thorsten Glaser , "1008668@bugs.debian.org" <1008668@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Apr 29 05:45:09 2022 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -3.762 Reply-To: Evren Yurtesen , 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 Dkim-Filter: OpenDKIM Filter v2.11.0 smtp-out.abo.fi 4DB4510DB570 Thread-Topic: bug #1008668: tomcat9: logrotated is not able to truncate catalina.out Thread-Index: AQHYW4jqvyAFnZZW10uQwvvIxoNxng== Accept-Language: en-US, sv-FI Content-Language: en-US X-Originating-IP: [130.232.163.36] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Debian-Message: from BTS X-Mailing-List: archive/latest/1715308 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 25 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: "ebourg@apache.org" , Markus Koschany , "debian-java@lists.debian.org" X-Original-Date: Fri, 29 Apr 2022 05:42:56 +0000 X-Original-Message-ID: <1d5c7e66890344ebb087016dc9d38864@abo.fi> X-Original-References: <164863800076.954689.10871384784835826478.reportbug@ubuntu2204> Xref: csiph.com linux.debian.bugs.dist:1101700 linux.debian.maint.java:12385 Hi, I am not sure if anybody received my previous e-mails as I do not see them = in the mailing list thread. :( > What is the problem with logrotate? It happily rotates files owned by an= yone 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 r= otation. Rsyslog fails to truncate the catalina.out file which has read/wri= te permissions only for `syslog` user. One solution would be undoing https://bugs.launchpad.net/ubuntu/+source/rsy= slog/+bug/388608 at Ubuntu. But I do not know how to reach to correct peopl= e at Ubuntu side. I also do not think I could convince them that this is cr= eating problems. It is really sad to see that a simple problem related to a single file's pe= rmissions can take so long to resolve. Any help you can provide is welcome.= =20 Thanks, Evren=