fluent-plugin-mysql icon indicating copy to clipboard operation
fluent-plugin-mysql copied to clipboard

Installation on td-agent 1.7 fails due to ruby version dependency of jsonpath 1.0.6

Open manikantannaren opened this issue 5 years ago • 2 comments

Starting November 18th Jsonpath released version 1.0.6 which defines Ruby version dependency as >=2.5 and td-agent 1.7 is on Ruby 2.4 because of this installation of the plugin fails.

09:24:31 [91mERROR:  Error installing fluent-plugin-mysql:
09:24:31     jsonpath requires Ruby version >= 2.5.
09:24:31 [0m"td-agent-gem install fluent-plugin-mysql -v 0.3.4" command filed with exit code 1.

Environment: Centos 7 td-agent-1.7.0 Embedded Ruby 2.4.0

fluent-plugin-mysql defines jsonpath as a runtime dependency but does not constrain the version of jsonpath.

Workaround Install jsonpath 1.0.5 first

  1. td-agent-gem install jsonpath -v 1.0.5
  2. td-agent-gem install fluent-plugin-mysql -v 0.3.4

manikantannaren avatar Nov 21 '20 05:11 manikantannaren

td-agent 1.7 is very old, and Ruby 2.4's EoL was the last April (2020/04). So what we should do is not to set jsonpath -v 1.0.5 as a dependency, but to update the runtime.

tagomoris avatar Nov 24 '20 11:11 tagomoris

Yes, td-agent1.7 is quite old and that ruby 2.4 is now EOL. This issue will rear it's head again in different form and one way to mitigate is to pin versions of dependencies. For now, till I get to upgrading td-agent; the step is to force install jsonpath -v 1.0.5.

manikantannaren avatar Nov 25 '20 04:11 manikantannaren