Log rotation stopped working

Hello,
I had a cronjob set up to rotate the Traefik logs and it's stopped working.

This is the command I had set up in crontab

docker kill --signal="USR1" $(docker ps | grep traefik | awk '{print $1}')

It used to work absolutely fine but seems to have stopped. I don't know when but I have just noticed it today.

I see the following entry in the traefik.log file
level=info msg="Closing and re-opening log files for rotation: user defined signal 1"

but it's appended to the existing file and not actually deleting the file and recreating it!

Has anything changed?

Did you ever get this fixed?
I just realized my logs has not been rotated in a while.
I see the same as you in my logs when sending a USR1, but it keeps sending log messages to the old files.

So I ran logrotate manually and it created new logfiles as expected, and traefik was still logging to the old ones:

-rw-r--r--.  1 olen olen          0 Dec 13 16:22 access.log                                                        
-rw-r--r--.  1 olen olen          0 Dec 13 16:22 traefik.log                                                       
-rw-r--r--.  1 olen olen   25489260 Dec 13 16:25 traefik.log.2024-11-04                                            
-rw-r--r--.  1 olen olen 7370824003 Dec 13 16:25 access.log.2024-11-04                

I could see in the logs that it had indeed sent the USR1 at the time the new files were created:

2024-12-13T16:22:35+01:00 INF Closing and re-opening log files for rotation: user defined signal 1                                                                                                                                     
2024-12-13T16:22:35+01:00 INF Closing and re-opening log files for rotation: user defined signal 1              

I even sent a USR1 manually, and it was logged

2024-12-13T16:25:33+01:00 INF Closing and re-opening log files for rotation: user defined signal 1

But traefik was happily logging away in the old files

-rw-r--r--.  1 olen olen 7370922253 Dec 13 16:32 access.log.2024-11-04
-rw-r--r--.  1 olen olen   25491239 Dec 13 16:32 traefik.log.2024-11-04

I see a few other, similar topics in the forum, but none of them have any responses or fixes.

Probably best to create an issue on Traefik Github.