<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hello,</p>
<p><br>
</p>
<p>I think that the reason of why this surfacing recently is because tomcat8 was started using an init script which chowned the catalina.out every start. However it starts using systemd now. There was at least one other bug related to this:</p>
<p><a href="https://bugs.launchpad.net/ubuntu/+source/tomcat9/+bug/1861881/comments/3" class="x_OWAAutoLink" id="LPlnk665054">https://bugs.launchpad.net/ubuntu/+source/tomcat9/+bug/1861881/comments/3</a><br>
</p>
<p>Although that particular bug was fixed in upstream Debian package...<br>
</p>
<p><br>
</p>
<p>Either solution that Utkarsh suggested are fine. But I would have voted for re-syncing of rsyslogd. This would solve this problem and all possible existing and future problems with any other package imported from Debian. But I guess this won't be possible
 for existing releases, so a delta is also needed for the time being.</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Evren<br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Utkarsh Gupta <utkarsh.gupta@canonical.com><br>
<b>Sent:</b> Thursday, May 5, 2022 10:50:30 PM<br>
<b>To:</b> Ubuntu Devel<br>
<b>Cc:</b> Evren Yurtesen; Ubuntu Server<br>
<b>Subject:</b> Log-rotation doesn't work for catalina.out in src:tomcat9 as intended</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hello,<br>
<br>
A few weeks ago, LP: #1964881/tomcat9 was opened by Evren (also CC'd<br>
here), mentioning that Logging/Log rotation does not work for<br>
catalina.out as expected.<br>
<br>
Since this was in sync w/ Debian, we forwarded this there via<br>
<a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008668">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008668</a>. If you<br>
follow the thread, you'll see two observations:<br>
<br>
a) This is Ubuntu-specific because of the changes introduced in<br>
src:rsyslog over a decade ago, which basically doesn't let it run as<br>
root, which is where I think the problem(s) started to originate.<br>
However, I am kinda stumped that it took more than 13 years to get to<br>
this bug. :)<br>
<br>
b) Markus (an implicit co-maintainer of tomcat* in Debian) said that<br>
the approach to fix the same, whilst being Ubuntu-specific, doesn't<br>
make sense to him. So since I am not very well-versed with<br>
src:tomcat*, I am confused about what we should do here then.<br>
<br>
What do y'all think? I think I am convinced that if a) is true, then<br>
this will indeed be a delta which we'll have to maintain forever (or<br>
at least until we re-sync rsyslog :)). What do you think should be the<br>
correct path? If there's someone who has more experience with the<br>
package, can they take a look?<br>
<br>
<br>
- u<br>
</div>
</span></font>
</body>
</html>