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

install plugin doesn't work with version 4 #153

Open
ynuyasha opened this issue Jan 28, 2022 · 2 comments
Open

install plugin doesn't work with version 4 #153

ynuyasha opened this issue Jan 28, 2022 · 2 comments

Comments

@ynuyasha
Copy link

Hi,
if i try to install opensearch plugin i receive an error because seems that from version 4 td-agent-gem doesn't support anymore the --no-rdoc option. I tried to find this option inside cookbook but i didn't find where is declared.

================================================================================
Error executing action `install` on resource 'td_agent_gem[opensearch]'
================================================================================
 
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /usr/sbin/td-agent-gem install fluent-plugin-opensearch -q --no-rdoc --no-ri -v "1.0.0" ----
STDOUT: 
STDERR: ERROR:  While executing gem ... (OptionParser::InvalidOption)
invalid option: --no-rdoc
Did you mean?  no-force
---- End output of /usr/sbin/td-agent-gem install fluent-plugin-opensearch -q --no-rdoc --no-ri -v "1.0.0" ----
Ran /usr/sbin/td-agent-gem install fluent-plugin-opensearch -q --no-rdoc --no-ri -v "1.0.0" returned 1
 
Resource Declaration:
---------------------
# In /var/chef/runs/cde65ad4-a10f-46c8-acdc-d1d048c5fca0/local-mode-cache/cache/cookbooks/td-agent/recipes/configure.rb
 
36:     td_agent_gem plugin do
37:       plugin true
38:       notifies :restart, "service[td-agent]", :delayed
39:     end
40:   end
 
Compiled Resource:
------------------
# Declared in /var/chef/runs/cde65ad4-a10f-46c8-acdc-d1d048c5fca0/local-mode-cache/cache/cookbooks/td-agent/recipes/configure.rb:36:in `block in from_file'
 
td_agent_gem("opensearch") do
package_name "fluent-plugin-opensearch"
provider Chef::Provider::Package::TdRubygems
action :install
retries 0
retry_delay 2
default_guard_interpreter :default
plugin true
gem_binary "/usr/sbin/td-agent-gem"
declared_type :td_agent_gem
cookbook_name "td-agent"
recipe_name "configure"
end
 
Platform:
---------
x86_64-linux
@ynuyasha
Copy link
Author

i think this is the bug chef/chef#8416

ynuyasha added a commit to ynuyasha/chef-td-agent that referenced this issue Feb 3, 2022
@theundefined
Copy link

any progress on this? :)

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