<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<meta content="text/html; charset=UTF-8">
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p>Hi Robie and Utkarsh,</p>
<p><br>
</p>
<p>This issue is not isolated to tomcat9 package. For example, jetty9 package logging does not work. Rsyslog says:</p>
<p><span class="PersonaPaneLauncher"></span></p>
<div class="_rp_Z4"></div>
<div class="_rp_65" style="">
<div class="_rp_75 ms-bg-color-neutralLighter"></div>
</div>
<div>May 10 10:01:58 ubuntu-wayland rsyslogd: file '/var/log/jetty9/jetty-console.log': open error: Permission denied [v8.2112.0 try https://www.rsyslog.com/e/2433 ]<br>
</div>
<div><br>
</div>
<div>The rsyslogd change could be made deliberately but maybe it can be re-evaluated. It seems to be causing many problems.</div>
<div><br>
</div>
<div>But, I have an alternative solution we can try. Some other packages seem to solve this issue by not defining who the owner of the files should be in rsyslog/logrotate config. I first tried it and it did not seem to work, but it was my mistake. It seems
to work.</div>
<div><br>
</div>
<div>This of course ends up with same result, the log file is created as syslog:adm by rsyslog. The logrotate automatically seems to use the same ownership for rotated files.
<br>
</div>
<div><br>
</div>
<div>Maybe Utkarsh can suggest this to Debian? and see how they react?<br>
</div>
<p></p>
<p><br>
</p>
</div>
</div>
<div dir="ltr">Evren</div>
<div dir="ltr"><br>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Robie Basak <robie.basak@ubuntu.com><br>
<b>Sent:</b> Monday, May 9, 2022 7:21:14 PM<br>
<b>To:</b> Utkarsh Gupta<br>
<b>Cc:</b> Ubuntu Devel; Ubuntu Server; Evren Yurtesen<br>
<b>Subject:</b> Re: 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">On Fri, May 06, 2022 at 01:20:30AM +0530, Utkarsh Gupta wrote:<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>
AIUI, it's a deliberate decision for Ubuntu to ship rsyslog by default<br>
and that it is configured to not run as root as a delta against Debian.<br>
So I expect the default position to be that we should try to maintain<br>
that, unless there's some reason it no longer makes sense.<br>
<br>
Therefore, I think what we need to do is fix the tomcat* packaging to<br>
correctly work with that. Hopefully we can find a way that makes sense<br>
regardless of whether rsyslog runs as root or not. Then this should be<br>
acceptable to Debian too, and we wouldn't need a delta in the tomcat*<br>
packaging. Maybe this isn't possible, but as far as I can tell, this<br>
hasn't been ruled out. All I saw in the Debian bug was the Debian<br>
maintainer declining one specific proposed solution. But maybe a general<br>
solution acceptable to both configurations of rsyslog can be found? This<br>
is where I'd look next.<br>
<br>
HTH,<br>
<br>
Robie<br>
</div>
</span></font></div>
</body>
</html>