Open mf69 opened 1 year ago
Please try installing faraday 1.x. e.g.)
$ sudo td-agent-gem install faraday --version 1.10.3
Yes that seems to fix it.
It's not a bug. But it might be useful we bundle both faraday 1.x and 2.x to ready for such case. On the other hand, it's not so easy to implement on the current system due to bundler's limitation.
Describe the bug
fluentd fails to start with this error with 4.5.0-1 on Ubuntu 20.04
fluentd[2844091]: /opt/td-agent/lib/ruby/2.7.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'faraday' (>= 0.17.3, < 2.0) - did find: [faraday-2.7.4] (Gem::MissingSpecVersionError)
To Reproduce
Install sudo apt install td-agent=4.5.0-1
This should start the agent but it fails... Setting up td-agent (4.5.0-1) ... Job for td-agent.service failed because the control process exited with error code.
See "systemctl status td-agent.service" and "journalctl -xe" for details.
$ sudo systemctl status td-agent ● td-agent.service - td-agent: Fluentd based data collector for Treasure Data Loaded: loaded (/lib/systemd/system/td-agent.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Fri 2023-06-16 20:46:39 UTC; 2min 41s ago Docs: https://docs.treasuredata.com/display/public/PD/About+Treasure+Data%27s+Server-Side+Agent Process: 2885496 ExecStart=/opt/td-agent/bin/fluentd --log $TD_AGENT_LOG_FILE --daemon /var/run/td-agent/td-agent.pid $TD_AGENT_OPTIONS (code=exited, status=1/FAILURE)
Jun 16 20:46:39 REDACTED systemd[1]: td-agent.service: Failed with result 'exit-code'. Jun 16 20:46:39 REDACTED systemd[1]: Failed to start td-agent: Fluentd based data collector for Treasure Data. Jun 16 20:46:39 REDACTED systemd[1]: td-agent.service: Scheduled restart job, restart counter is at 5. Jun 16 20:46:39 REDACTED systemd[1]: Stopped td-agent: Fluentd based data collector for Treasure Data. Jun 16 20:46:39 REDACTED systemd[1]: td-agent.service: Start request repeated too quickly. Jun 16 20:46:39 REDACTED systemd[1]: td-agent.service: Failed with result 'exit-code'. Jun 16 20:46:39 REDACTED systemd[1]: Failed to start td-agent: Fluentd based data collector for Treasure Data.
Check in /var/log/syslog and find this error fluentd[2885496]: /opt/td-agent/lib/ruby/2.7.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'faraday' (>= 0.17.3, < 2.0) - did find: [faraday-2.7.4] (Gem::MissingSpecVersionError)
Expected behavior
agent starts successfully
Your Environment
Your Configuration
Your Error Log
Additional context
downgrading to v4.4.2-1 "fixes" the issue for now.