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

2022-05-10 Thread Evren Yurtesen
Hi Markus, Please ignore my previous message about logrotate. It was my mistake that it did not work. Would it be an acceptable solution if the fileOwner setting is removed from /etc/rsyslog.d/tomcat9.conf and su setting is removed from /etc/logrotate.d/tomcat9 file which are shipped with to

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

2022-04-29 Thread Thorsten Glaser
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 tomca

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

2022-04-29 Thread Timo Aaltonen
Evren Yurtesen kirjoitti 29.4.2022 klo 8.42: 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. try u

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

2022-04-28 Thread Evren Yurtesen
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 gene

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

2022-04-20 Thread Evren Yurtesen
Nevermind my previous idea. It does not work as the /var/log/tomcat9 is group writable by `adm` group. Causes the following problem: :( # logrotate -f /etc/logrotate.d/tomcat9 error: skipping "/var/log/tomcat9/catalina.out" because parent directory has insecure permissions (It's world writable

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

2022-04-14 Thread Evren Yurtesen
Hi Markus, You are quite right. The root cause of the issue is Ubuntu dropping privileges of rsyslogd to `syslog` user. This change was done way back in ~2009 in Ubuntu package. https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/388608 (which does not explain the benefits very clearly, b

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

2022-04-14 Thread Thorsten Glaser
On Thu, 14 Apr 2022, Utkarsh Gupta wrote: > The submitter has provided a debdiff, too: > https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1008668;filename=tomcat9_9.0.58-1ubuntu1.debdiff;msg=5. This will break other syslog implementations, though. What is the problem with logrotate? It ha

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

2022-04-14 Thread Markus Koschany
Am Donnerstag, dem 14.04.2022 um 16:23 +0530 schrieb Utkarsh Gupta: > Hi Emmanuel, > > We have bug #1008668 that's causing problems on the Ubuntu side and is > also reproducible via the Debian package (essentially, it's the same > in both places). Hi Utkarsh, I have been trying to reproduce this