0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

td-agentのupdateでfluent-plugin-twitterが動かなくなった話と回避策

Posted at

概要

td-agentを使って、twitterのsamplingデータを取得している。td-agnetのバージョンを (4.1.1-1) から (4.2.0-1) へアップデートした。
その際、 fluent-plugin-twitter が動かなくなったので報告する。

エラー内容

$sudo systemctl restart td-agnet.service をしてもエラーで起動しない。

次の様にsystemctlを使わず起動するとエラーが出色される。

/opt/td-agent/bin/fluentd --dry_run -c /etc/td-agent/td-agent.conf

エラーを見ると

because http_parser.rb-0.7.0 conflicts with http_parser.rb (~> 0.6.0)

というエラーが出る。
fluent-plugin-twitter が http_paraser.rb の 0.6.0 が必要なところを、0.7.0が優先的に起動し、そちらでエラーになった模様。

回避策

調べた所、 http_parser.rb で 0.6.0と0.7.0の両方がインストールされていたので、0.7.0をアンイストールした。

$/opt/td-agent/bin/fluent-gem uninstall http_parser.rb 

をすると、どちらのバージョンを削除するか聞いてくるので 0.7.0 を削除した。

環境

ubuntu20.04

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?