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

fails fluentd with RUBYOPT with two or more options #2801

Closed
tdtds opened this issue Jan 28, 2020 · 0 comments · Fixed by #2807
Closed

fails fluentd with RUBYOPT with two or more options #2801

tdtds opened this issue Jan 28, 2020 · 0 comments · Fixed by #2807

Comments

@tdtds
Copy link

tdtds commented Jan 28, 2020

Describe the bug
When RUBYOPT environment variable has two or more options (e.g. "-rfoo -rbar"), fluentd fails to start supervisor and into infinite loop.

To Reproduce

i% RUBYOPT="-rbundler/setup -rtest-unit" fluentd                                                                     [basic_input_plugin]
2020-01-28 11:49:33 +0900 [info]: parsing config file is succeeded path="/etc/fluent/fluent.conf"
2020-01-28 11:49:33 +0900 [info]: gem 'fluentd' version '1.9.0'
2020-01-28 11:49:33 +0900 [info]: gem 'fluent-plugin-wmi' version '0.1.0'
2020-01-28 11:49:33 +0900 [info]: using configuration file: <ROOT>
</ROOT>
2020-01-28 11:49:33 +0900 [info]: starting fluentd-1.9.0 pid=32730 ruby="2.5.7"
2020-01-28 11:49:33 +0900 [info]: spawn command to main:  cmdline=["/home/sho/.rbenv/versions/2.5.7/bin/ruby", "-Eascii-8bit:ascii-8bit", "-rbundler/setup -rtest-unit", "/home/sho/.rbenv/versions/2.5/bin/fluentd", "--under-supervisor"]
Traceback (most recent call last):
        1: from /home/sho/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/home/sho/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- bundler/setup -rtest-unit (LoadError)
2020-01-28 11:49:33 +0900 [info]: Worker 0 finished unexpectedly with status 1
:
:
(repeat infinite...)

Expected behavior
fluentd stops with clearly error messages.

Your Environment

  • fluentd 1.9.0
  • ruby 2.5.7p206
  • Debian GNU/Linux 9 (on Windows WSL)
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

Successfully merging a pull request may close this issue.

1 participant