-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No such file or directory after logrotation #6
Comments
Watching the log just now I saw that the exception was thrown several seconds after it created a new tailer for the new file. Perhaps it received an updated/new event instead of deleted once apache finished the logrotation. Since the errors is in the initialize method it feels like it's actually trying to create a new tailer for that log. |
After adding return unless File.exists?(@path) to line 178 and 202 solves the issue but that feels like a hack. |
Thanks for filing :) I'll work on a test case that reproduces it (I can reproduce it by hand) and get a fix committed, soon. |
Any progress on this? |
Not yet, I've been busy managing SysAdvent this month. Today's the last day for it, so I'll have free time to fix this (and other pending todos) after it's all over ;) |
Hi,
I'm using em-tail to tail apache log files but I'm running into problems when the files are rotated by Apache. I get the following exception
You can see the code I'm testing with here: https://gist.github.com/746500
It seems it's trying to recreate a FileTail with the old path.
The text was updated successfully, but these errors were encountered: