Fluentd stops working with error below. Using stable/stein branch on Ubuntu 18.04.
2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/2.4.0/fileutils.rb:230:in `mkdir' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/2.4.0/fileutils.rb:230:in `fu_mkdir' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/2.4.0/fileutils.rb:208:in `block (2 levels) in mkdir_p' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/2.4.0/fileutils.rb:206:in `reverse_each' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/2.4.0/fileutils.rb:206:in `block in mkdir_p' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/2.4.0/fileutils.rb:191:in `each' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/2.4.0/fileutils.rb:191:in `mkdir_p' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/plugin/in_tail.rb:192:in `start' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/root_agent.rb:203:in `block in start' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/root_agent.rb:192:in `block (2 levels) in lifecycle' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/root_agent.rb:191:in `each' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/root_agent.rb:191:in `block in lifecycle' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/root_agent.rb:178:in `each' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/root_agent.rb:178:in `lifecycle' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/root_agent.rb:202:in `start' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/engine.rb:274:in `start' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/engine.rb:219:in `run' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/supervisor.rb:805:in `run_engine' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/supervisor.rb:549:in `block in run_worker' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/supervisor.rb:730:in `main_process' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/supervisor.rb:544:in `run_worker' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/lib/fluent/command/fluentd.rb:316:in `<top (required)>' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.4.2/bin/fluentd:8:in `<top (required)>' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/bin/fluentd:23:in `load' 2019-07-20 05:12:57 +0000 [error]: #0 /opt/td-agent/embedded/bin/fluentd:23:in `<top (required)>' 2019-07-20 05:12:57 +0000 [error]: #0 /usr/sbin/td-agent:7:in `load' 2019-07-20 05:12:57 +0000 [error]: #0 /usr/sbin/td-agent:7:in `<main>'2019-07-20 05:12:57 +0000 [error]: #0 unexpected error error_class=Errno::EACCES error="Permission denied @ dir_s_mkdir - /var/run/fluentd" 2019-07-20 05:12:57 +0000 [error]: #0 suppressed same stacktrace2019-07-20 05:12:57 +0000 [info]: Worker 0 finished unexpectedly with status 1
Fix proposed to branch: master /review. opendev. org/671888
Review: https:/