alloy icon indicating copy to clipboard operation
alloy copied to clipboard

loki.source.file sometimes fails when rotating big files in docker

Open wildum opened this issue 7 months ago • 2 comments

What's wrong?

When rotating big files (>8G), the loki.source.file component sometimes failed to register the rotation properly and kept the handle open to the deleted file instead of closing it and opening a new one to the new file.

Steps to reproduce

I couldn't reproduce the issue despite trying a scenario as close as possible to the one from the user who reported this problem and I don't have enough data to find out how this problem occurred. I'm creating this issue so that other users can share info in case they face the same problem

System information

Docker Linux

Software version

from v1.6 to 1.7.5

Configuration


Logs


wildum avatar Apr 10 '25 07:04 wildum

One additional detail is that this issue has only been reproduced with dockerized Alloy that had an uptime of 6 weeks plus. It has also been seen with small files under those circumstances. So I wonder if it is not related to file size after all.

maxlemieux avatar Apr 14 '25 17:04 maxlemieux

This issue has not had any activity in the past 30 days, so the needs-attention label has been added to it. If the opened issue is a bug, check to see if a newer release fixed your issue. If it is no longer relevant, please feel free to close this issue. The needs-attention label signals to maintainers that something has fallen through the cracks. No action is needed by you; your issue will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity. Thank you for your contributions!

github-actions[bot] avatar May 15 '25 00:05 github-actions[bot]