logdna / logdna/fluent-plugin-logdna

Error: Unable to activate http-2.2.2, because http_parser.rb-0.8.0 conflicts with http_parser.rb (~> 0.6.0)

Open
#39 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
2
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Hi,

My environment is: `td-agent 4.4.1 fluentd 1.15.2 (c32842297ed2c306f1b841a8f6e55bdd0f1cb27f)`
My fluentd config is:
```

@type logdna
api_key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hostname test
tags web,dev

```
After I started the fluentd, fluentd crashed immediately.

Here is the fluentd log:
```
2023-02-02 19:10:23 -0800 [info]: #0 starting fluentd worker pid=140851 ppid=140846 worker=0
2023-02-02 19:10:23 -0800 [error]: #0 unexpected error error_class=Gem::ConflictError error="Unable to activate http-2.2.2, because http_parser.rb-0.8.0 conflicts with http_parser.rb (~> 0.6.0)"
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/specification.rb:2247:in `raise_if_conflicts'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/specification.rb:1369:in `activate'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems.rb:217:in `rescue in try_activate'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems.rb:210:in `try_activate'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:151:in `rescue in require'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:147:in `require'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-logdna-0.4.0/lib/fluent/plugin/out_logdna.rb:46:in `start'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/compat/call_super_mixin.rb:42:in `start'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:203:in `block in start'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:192:in `block (2 levels) in lifecycle'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:191:in `each'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:191:in `block in lifecycle'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:178:in `each'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:178:in `lifecycle'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:202:in `start'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/engine.rb:248:in `start'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/engine.rb:147:in `run'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/supervisor.rb:764:in `block in run_worker'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/supervisor.rb:1037:in `main_process'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/supervisor.rb:755:in `run_worker'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/command/fluentd.rb:381:in `'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/bin/fluentd:15:in `'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/bin/fluentd:23:in `load'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/bin/fluentd:23:in `'
2023-02-02 19:10:23 -0800 [error]: #0 /usr/sbin/td-agent:15:in `load'
2023-02-02 19:10:23 -0800 [error]: #0 /usr/sbin/td-agent:15:in `'
2023-02-02 19:10:23 -0800 [error]: #0 Unable to activate http-2.2.2, because http_parser.rb-0.8.0 conflicts with http_parser.rb (~> 0.6.0) path=nil error_class=Gem::ConflictError error="Unable to activate http-2.2.2, because http_parser.rb-0.8.0 conflicts with http_parser.rb (~> 0.6.0)"
2023-02-02 19:10:23 -0800 [error]: #0 suppressed same stacktrace
2023-02-02 19:10:23 -0800 [error]: Worker 0 finished unexpectedly with status 2
2023-02-02 19:10:23 -0800 [info]: Received graceful stop
```

Am I the only one who got this error? I'm using a couple other plugins, is it a conflict? Thanks.

Contributor guide

Open the contributing guide

Research direction

Start with lib/fluent/plugin/out_logdna.rb at the require reached from line 46, then inspect the plugin's dependency declarations and reproduce the reported td-agent 4.4.1, fluentd 1.15.2 configuration. Done means the logdna output can load without the http/http_parser.rb Gem::ConflictError and fluentd no longer exits immediately.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
observability-sre
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.