Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #12385
| 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 | 2022-04-29 07:50 +0200 |
| Message-ID | <EhrFT-bVYt-1@gated-at.bofh.it> (permalink) |
| References | <E6En7-5dfN-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
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 | Next — Next in thread | Find similar
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