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

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 2022-04-29 20:10 +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>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | 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