In ML 5.3.x the tml-log image build fails since
fluent-plugin-mysql
has a dependency on another plugin-
jsonpath
of which a new version 1.0.6 was released on November 18th 2020. This new version broke dependency on ruby. Earlier version of jsonpath was okay with any version of ruby but jsonpath-1.0.6 declared minimum ruby version of 2.5 which is not present in the tml-log image. This is a transitive dependency of fluent-plugin-mysql and was not installed directly. So let's follow the steps provided in the resolution section to mitigate this issue.
The sample error log that you might encounter is shown below:
10:38:20 1 gem installed
10:38:21 [91mERROR: Error installing fluent-plugin-mysql:
10:38:21 jsonpath requires Ruby version >= 2.5.
10:38:21 [0m"td-agent-gem install fluent-plugin-mysql -v 0.3.4" command filed with exit code 1.
10:38:21 The command '/bin/sh -c /home/builder/docker-build/log-install.sh' returned a non-zero code: 1
10:38:21 ~/jobs/build_docker/workspace
10:38:21 Finished: SUCCESS