Skip to content
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

Default locations are not same as bin and documentation #255

Open
uCatu opened this issue Mar 17, 2021 · 1 comment
Open

Default locations are not same as bin and documentation #255

uCatu opened this issue Mar 17, 2021 · 1 comment

Comments

@uCatu
Copy link

uCatu commented Mar 17, 2021

See docs:
https://docs.fluentd.org/v/0.12/deployment/plugin-management#add-a-plugin-via-etc-fluent-plugin
Referring to /etc/fluent/plugin

While in code we are using -p /fluentd/plugins

set -- "$@" -c /fluentd/etc/${FLUENTD_CONF}

Same goes to conf file, when trying to use default binary:

	9: from /usr/bin/fluentd:23:in `<main>'
	8: from /usr/bin/fluentd:23:in `load'
	7: from /usr/lib/ruby/gems/2.7.0/gems/fluentd-1.12.1/bin/fluentd:8:in `<top (required)>'
	6: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
	5: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
	4: from /usr/lib/ruby/gems/2.7.0/gems/fluentd-1.12.1/lib/fluent/command/fluentd.rb:344:in `<top (required)>'
	3: from /usr/lib/ruby/gems/2.7.0/gems/fluentd-1.12.1/lib/fluent/supervisor.rb:727:in `configure'
	2: from /usr/lib/ruby/gems/2.7.0/gems/fluentd-1.12.1/lib/fluent/config.rb:31:in `build'
	1: from /usr/lib/ruby/gems/2.7.0/gems/fluentd-1.12.1/lib/fluent/config.rb:31:in `open'
/usr/lib/ruby/gems/2.7.0/gems/fluentd-1.12.1/lib/fluent/config.rb:31:in `initialize': No such file or directory @ rb_sysopen - /etc/fluent/fluent.conf (Errno::ENOENT)```
@kenhys
Copy link
Contributor

kenhys commented Apr 9, 2021

https://docs.fluentd.org/v/0.12/deployment/plugin-management#add-a-plugin-via-etc-fluent-plugin
is referred for general purpose, in the other hand, the docker image does not follow it. It seems it is an intentional change (I guess)
beause of docker image is a one of distribution of fluentd.
So, it may be better to mention it in https://github.com/fluent/fluentd-docker-image/blob/master/README.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants