Re: Log-rotation doesn't work for catalina.out in src:tomcat9 as intended

2022-05-12 Thread Andreas Hasenack
Hi,

On Thu, May 12, 2022 at 10:53 AM Utkarsh Gupta
 wrote:
>
> Hi Andreas,
>
> On Thu, May 12, 2022 at 6:17 PM Andreas Hasenack  
> wrote:
> > This reminded me that frr is also affected by this:
> > https://bugs.launchpad.net/ubuntu/+source/frr/+bug/1958162
> >
> > And frr is in main now. I'll work on it.
>
> Ah. D'you think there could be somewhat of a common solution here?
> Or are each of them going to be very different from each other?

I don't know yet :)

-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Re: Log-rotation doesn't work for catalina.out in src:tomcat9 as intended

2022-05-12 Thread Utkarsh Gupta
Hi Andreas,

On Thu, May 12, 2022 at 6:17 PM Andreas Hasenack  wrote:
> This reminded me that frr is also affected by this:
> https://bugs.launchpad.net/ubuntu/+source/frr/+bug/1958162
>
> And frr is in main now. I'll work on it.

Ah. D'you think there could be somewhat of a common solution here?
Or are each of them going to be very different from each other?


- u

-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Re: Log-rotation doesn't work for catalina.out in src:tomcat9 as intended

2022-05-12 Thread Andreas Hasenack
Hi,

On Tue, May 10, 2022 at 5:07 AM Evren Yurtesen  wrote:
>
> Hi Robie and Utkarsh,
>
>
> This issue is not isolated to tomcat9 package. For example, jetty9 package 
> logging does not work. Rsyslog says:

This reminded me that frr is also affected by this:

https://bugs.launchpad.net/ubuntu/+source/frr/+bug/1958162

And frr is in main now. I'll work on it.

-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Re: Log-rotation doesn't work for catalina.out in src:tomcat9 as intended

2022-05-10 Thread Evren Yurtesen
Hi Robie and Utkarsh,


This issue is not isolated to tomcat9 package. For example, jetty9 package 
logging does not work. Rsyslog says:

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 ]

The rsyslogd change could be made deliberately but maybe it can be 
re-evaluated. It seems to be causing many problems.

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.

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.

Maybe Utkarsh can suggest this to Debian? and see how they react?


Evren


From: Robie Basak 
Sent: Monday, May 9, 2022 7:21:14 PM
To: Utkarsh Gupta
Cc: Ubuntu Devel; Ubuntu Server; Evren Yurtesen
Subject: Re: Log-rotation doesn't work for catalina.out in src:tomcat9 as 
intended

On Fri, May 06, 2022 at 01:20:30AM +0530, Utkarsh Gupta wrote:
> a) This is Ubuntu-specific because of the changes introduced in
> src:rsyslog over a decade ago, which basically doesn't let it run as
> root, which is where I think the problem(s) started to originate.
> However, I am kinda stumped that it took more than 13 years to get to
> this bug. :)
>
> b) Markus (an implicit co-maintainer of tomcat* in Debian) said that
> the approach to fix the same, whilst being Ubuntu-specific, doesn't
> make sense to him. So since I am not very well-versed with
> src:tomcat*, I am confused about what we should do here then.
>
> What do y'all think? I think I am convinced that if a) is true, then
> this will indeed be a delta which we'll have to maintain forever (or
> at least until we re-sync rsyslog :)). What do you think should be the
> correct path? If there's someone who has more experience with the
> package, can they take a look?

AIUI, it's a deliberate decision for Ubuntu to ship rsyslog by default
and that it is configured to not run as root as a delta against Debian.
So I expect the default position to be that we should try to maintain
that, unless there's some reason it no longer makes sense.

Therefore, I think what we need to do is fix the tomcat* packaging to
correctly work with that. Hopefully we can find a way that makes sense
regardless of whether rsyslog runs as root or not. Then this should be
acceptable to Debian too, and we wouldn't need a delta in the tomcat*
packaging. Maybe this isn't possible, but as far as I can tell, this
hasn't been ruled out. All I saw in the Debian bug was the Debian
maintainer declining one specific proposed solution. But maybe a general
solution acceptable to both configurations of rsyslog can be found? This
is where I'd look next.

HTH,

Robie
-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Re: Log-rotation doesn't work for catalina.out in src:tomcat9 as intended

2022-05-09 Thread Robie Basak
On Fri, May 06, 2022 at 01:20:30AM +0530, Utkarsh Gupta wrote:
> a) This is Ubuntu-specific because of the changes introduced in
> src:rsyslog over a decade ago, which basically doesn't let it run as
> root, which is where I think the problem(s) started to originate.
> However, I am kinda stumped that it took more than 13 years to get to
> this bug. :)
> 
> b) Markus (an implicit co-maintainer of tomcat* in Debian) said that
> the approach to fix the same, whilst being Ubuntu-specific, doesn't
> make sense to him. So since I am not very well-versed with
> src:tomcat*, I am confused about what we should do here then.
> 
> What do y'all think? I think I am convinced that if a) is true, then
> this will indeed be a delta which we'll have to maintain forever (or
> at least until we re-sync rsyslog :)). What do you think should be the
> correct path? If there's someone who has more experience with the
> package, can they take a look?

AIUI, it's a deliberate decision for Ubuntu to ship rsyslog by default
and that it is configured to not run as root as a delta against Debian.
So I expect the default position to be that we should try to maintain
that, unless there's some reason it no longer makes sense.

Therefore, I think what we need to do is fix the tomcat* packaging to
correctly work with that. Hopefully we can find a way that makes sense
regardless of whether rsyslog runs as root or not. Then this should be
acceptable to Debian too, and we wouldn't need a delta in the tomcat*
packaging. Maybe this isn't possible, but as far as I can tell, this
hasn't been ruled out. All I saw in the Debian bug was the Debian
maintainer declining one specific proposed solution. But maybe a general
solution acceptable to both configurations of rsyslog can be found? This
is where I'd look next.

HTH,

Robie


signature.asc
Description: PGP signature
-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Re: Log-rotation doesn't work for catalina.out in src:tomcat9 as intended

2022-05-06 Thread Evren Yurtesen
Hello,


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:

https://bugs.launchpad.net/ubuntu/+source/tomcat9/+bug/1861881/comments/3

Although that particular bug was fixed in upstream Debian package...


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.


Thanks,

Evren


From: Utkarsh Gupta 
Sent: Thursday, May 5, 2022 10:50:30 PM
To: Ubuntu Devel
Cc: Evren Yurtesen; Ubuntu Server
Subject: Log-rotation doesn't work for catalina.out in src:tomcat9 as intended

Hello,

A few weeks ago, LP: #1964881/tomcat9 was opened by Evren (also CC'd
here), mentioning that Logging/Log rotation does not work for
catalina.out as expected.

Since this was in sync w/ Debian, we forwarded this there via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008668. If you
follow the thread, you'll see two observations:

a) This is Ubuntu-specific because of the changes introduced in
src:rsyslog over a decade ago, which basically doesn't let it run as
root, which is where I think the problem(s) started to originate.
However, I am kinda stumped that it took more than 13 years to get to
this bug. :)

b) Markus (an implicit co-maintainer of tomcat* in Debian) said that
the approach to fix the same, whilst being Ubuntu-specific, doesn't
make sense to him. So since I am not very well-versed with
src:tomcat*, I am confused about what we should do here then.

What do y'all think? I think I am convinced that if a) is true, then
this will indeed be a delta which we'll have to maintain forever (or
at least until we re-sync rsyslog :)). What do you think should be the
correct path? If there's someone who has more experience with the
package, can they take a look?


- u
-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Log-rotation doesn't work for catalina.out in src:tomcat9 as intended

2022-05-05 Thread Utkarsh Gupta
Hello,

A few weeks ago, LP: #1964881/tomcat9 was opened by Evren (also CC'd
here), mentioning that Logging/Log rotation does not work for
catalina.out as expected.

Since this was in sync w/ Debian, we forwarded this there via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008668. If you
follow the thread, you'll see two observations:

a) This is Ubuntu-specific because of the changes introduced in
src:rsyslog over a decade ago, which basically doesn't let it run as
root, which is where I think the problem(s) started to originate.
However, I am kinda stumped that it took more than 13 years to get to
this bug. :)

b) Markus (an implicit co-maintainer of tomcat* in Debian) said that
the approach to fix the same, whilst being Ubuntu-specific, doesn't
make sense to him. So since I am not very well-versed with
src:tomcat*, I am confused about what we should do here then.

What do y'all think? I think I am convinced that if a) is true, then
this will indeed be a delta which we'll have to maintain forever (or
at least until we re-sync rsyslog :)). What do you think should be the
correct path? If there's someone who has more experience with the
package, can they take a look?


- u

-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel