-
Notifications
You must be signed in to change notification settings - Fork 26
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
Problem with file output plugin after upgrade to 4.4.0 #411
Comments
@fujimotos @daipom Could you take a look this? |
Sure! I will. |
This is my bug. I implemented the tempdir creation as follows: Dir.mktmpdir("fluentd-lock-") do |lock_dir|
ENV['FLUENTD_LOCK_DIR'] = lock_dir
se.run
end So what we probably need is revert fluent/fluentd@75ef92f, |
And this is the fix: fluent/fluentd#3864 <system>
workers 3
</system>
<source>
@type dummy
tag test.log
</source>
<match test.**>
@type file
path test.log
append true
<buffer>
@type memory
flush_interval 3s
flush_mode interval
</buffer>
</match> and by running Fluentd as follows: $ fluentd --daemon test.pid --log test.log -c test.conf |
@ashie Can we go on to release td-agent v4.4.1? Since
|
Yea, we should release it ASAP. |
Fixed by fluent/fluentd#3864. Schedule to be released early next week. |
Thanks, I did not expect this to happen so fast. You are awesome. |
As td-agent 4.4.0 is using fluentd 1.15.1, there is a change in file output plugin. The plugin now creates
/tmp/fluentd-lock-*
directories. While td-agent is run without--daemon
flag everything works great, the temp dir is created and the app works as expected. But when--daemon
option is set then the temp directory is created but then it is removed and after that the name of that directory is passed to the child processes. That blocks them from functioning properly and makes them throw lots ofNo such file or directory
errors.Related strace output
The problem does not occur in ealier td-agent version as it using version of tdagent that does not create this directory.
What kind of information should I attach to make it easier for you to find the solution?
The text was updated successfully, but these errors were encountered: