-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If fluent-plugin-opensearch faied to refresh @_aws_credentials
, it won't refresh @_aws_credentials
anymore
#129
Comments
We are running 6 instances with this plugin for about 1 month. We faced this bug in 3 out of 6 instances. Therefore, this isn't rare problem. |
It is happening the same to me with the same plugin version |
@ashie san, Could you please confirm if there's any update for this issue? |
This is similar to #110 , we are experiencing the same issue. |
FYI: My quick and dirty fix You can build and install like the following $ fluent-gem build fluent-plugin-opensearch.gemspec
$ sudo fluent-gem install fluent-plugin-opensearch |
Hi @aYukiSekiguchi, |
Sure. I created a PR: #142 |
This should be fixed in #142. |
(check apply)
Steps to replicate
There is no reliable steps to replicate.
When it failed to refresh
@_aws_credentials
like the following error log:It stopped to refresh with dumping the following log:
Therefore, it will fail to flush the buffer with
The security token included in the request is expired
error message in the future.FYI: The following is my config, but I don't think this depends on config.
Expected Behavior or What you need to ask
I'm not sure whether this is bug, but I want fluent-plugin-opensearch to refresh
@_aws_credentials
at the nextrefresh_credentials_interval
. I guessAssumeRoleCredentials.new()
failes if a network is unstable. If this happens, fluent-plugin-opensearch stops sending logs. I'm not happy with this.The reason why fluent-plugin-opensearch stops to refresh
@_aws_credentials
is thattimer_execute()
removes the timer if its block raises an exeption.https://github.com/fluent/fluentd/blob/2b4ca5d2927b706c3bdc98ffd0a0b66232bc0b65/lib/fluent/plugin_helper/timer.rb#L84-L85
Using Fluentd and OpenSearch plugin versions
The text was updated successfully, but these errors were encountered: