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


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

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

Path csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Evren Yurtesen <Evren.Yurtesen@abo.fi>
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 <EhrFT-bVYt-1@gated-at.bofh.it> (permalink)
References <E6En7-5dfN-21@gated-at.bofh.it>
X-Original-To Utkarsh Gupta <guptautkarsh2102@gmail.com>, Thorsten Glaser <t.glaser@tarent.de>, "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 <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.762
Reply-To Evren Yurtesen <Evren.Yurtesen@abo.fi>, 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
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 <debian-bugs-dist@lists.debian.org> archive/latest/1715308
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 25
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc "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 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

Cross-posted to 2 groups.

Show key headers only | View raw


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 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.

One solution would be undoing https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/388608 at Ubuntu. But I do not know how to reach to correct people at Ubuntu side. I also do not think I could convince them that this is creating problems.

It is really sad to see that a simple problem related to a single file's permissions can take so long to resolve. Any help you can provide is welcome. 

Thanks,
Evren

Back to linux.debian.maint.java | Previous | NextNext 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