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

Incorrect instructions to build a fluentd with elasticsearch-plugin for docker image #387

Open
stiliajohny opened this issue Jan 18, 2022 · 2 comments

Comments

@stiliajohny
Copy link

Describe the bug

At the page https://docs.fluentd.org/v/0.12/articles/docker-logging-efk-compose
The instructions given on https://docs.fluentd.org/v/0.12/articles/docker-logging-efk-compose#step-1-prepare-fluentd-image-with-your-config-+-plugin are incorrect

This has been tested on MacOS ( docker desktop ) and Archlinux ( docker runtime )

The current error if these instructions are used is

Click to expand for error log ```bash etching excon-0.90.0.gem # terminated with exception (report_on_exception is true): /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `initialize': Permission denied @ rb_sysopen - /usr/local/bundle/cache/excon-0.90.0.gem (Errno::EACCES) from /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `open' from /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `write_binary' from /usr/local/lib/ruby/2.6.0/rubygems/remote_fetcher.rb:305:in `cache_update_path' from /usr/local/lib/ruby/2.6.0/rubygems/remote_fetcher.rb:158:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/source.rb:206:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/resolver/specification.rb:101:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/request_set.rb:174:in `block (2 levels) in install' Fetching faraday-net_http-1.0.1.gem # terminated with exception (report_on_exception is true): /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `initialize': Permission denied @ rb_sysopen - /usr/local/bundle/cache/faraday-net_http-1.0.1.gem (Errno::EACCES) from /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `open' from /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `write_binary' from /usr/local/lib/ruby/2.6.0/rubygems/remote_fetcher.rb:305:in `cache_update_path' from /usr/local/lib/ruby/2.6.0/rubygems/remote_fetcher.rb:158:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/source.rb:206:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/resolver/specification.rb:101:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/request_set.rb:174:in `block (2 levels) in install' Fetching ruby2_keywords-0.0.5.gem # terminated with exception (report_on_exception is true): /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `initialize': Permission denied @ rb_sysopen - /usr/local/bundle/cache/ruby2_keywords-0.0.5.gem (Errno::EACCES) from /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `open' from /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `write_binary' from /usr/local/lib/ruby/2.6.0/rubygems/remote_fetcher.rb:305:in `cache_update_path' from /usr/local/lib/ruby/2.6.0/rubygems/remote_fetcher.rb:158:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/source.rb:206:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/resolver/specification.rb:101:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/request_set.rb:174:in `block (2 levels) in install' Fetching faraday-retry-1.0.3.gem # terminated with exception (report_on_exception is true): /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `initialize': Permission denied @ rb_sysopen - /usr/local/bundle/cache/faraday-retry-1.0.3.gem (Errno::EACCES) from /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `open' from /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `write_binary' from /usr/local/lib/ruby/2.6.0/rubygems/remote_fetcher.rb:305:in `cache_update_path' from /usr/local/lib/ruby/2.6.0/rubygems/remote_fetcher.rb:158:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/source.rb:206:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/resolver/specification.rb:101:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/request_set.rb:174:in `block (2 levels) in install' Fetching faraday-net_http_persistent-1.2.0.gem # terminated with exception (report_on_exception is true): /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `initialize': Permission denied @ rb_sysopen - /usr/local/bundle/cache/faraday-net_http_persistent-1.2.0.gem (Errno::EACCES) from /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `open' from /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `write_binary' from /usr/local/lib/ruby/2.6.0/rubygems/remote_fetcher.rb:305:in `cache_update_path' from /usr/local/lib/ruby/2.6.0/rubygems/remote_fetcher.rb:158:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/source.rb:206:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/resolver/specification.rb:101:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/request_set.rb:174:in `block (2 levels) in install' Fetching faraday-rack-1.0.0.gem # terminated with exception (report_on_exception is true): /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `initialize': Permission denied @ rb_sysopen - /usr/local/bundle/cache/faraday-rack-1.0.0.gem (Errno::EACCES) from /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `open' from /usr/local/lib/ruby/2.6.0/rubygems.rb:876:in `write_binary' from /usr/local/lib/ruby/2.6.0/rubygems/remote_fetcher.rb:305:in `cache_update_path' from /usr/local/lib/ruby/2.6.0/rubygems/remote_fetcher.rb:158:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/source.rb:206:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/resolver/specification.rb:101:in `download' from /usr/local/lib/ruby/2.6.0/rubygems/request_set.rb:174:in `block (2 levels) in install' ERROR: While executing gem ... (Errno::EACCES) Permission denied @ rb_sysopen - /usr/local/bundle/cache/faraday-rack-1.0.0.gem ```

Link to the problematic documentation

https://docs.fluentd.org/v/0.12/articles/docker-logging-efk-compose#step-1-prepare-fluentd-image-with-your-config-+-plugin

Expected explanation

Update the document,
The most appropriate documentations I have found was under https://hub.docker.com/r/fluent/fluentd/ on the section 3. Customize Dockerfile to install plugins (optional) in particular 3.1 For current images

I would suggest either copy the context of one of the dockerfiles or point the user reading the initial docs to the dockerhub docs ( the first option is more optimal IMO)

Additional context

this document was reviewed d2 years ago, it is expected technology, dependencies and implementation to have change.

@stiliajohny stiliajohny changed the title incorrect instructions to build a fluentd with elasticplugin docker image Incorrect instructions to build a fluentd with elasticsearch-plugin for docker image Jan 18, 2022
@cosmo0920
Copy link
Contributor

Have you tested on v1 version of documentation instruction? Fluentd v0.12 is already EOL and not maintained.

@stiliajohny
Copy link
Author

Have you tested on v1 version of documentation instruction? Fluentd v0.12 is already EOL and not maintained.

Aw, that might be one of the reasons,
After googling I didn't ended up on this link :)

Might be worth having a banner or a suggestion to visit the latest docs

Thanks so much for that !!

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