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
Object storage connection failures failing to record in S3 debugging details #19584
Comments
Opened a ticket: https://mattermost.atlassian.net/browse/MM-42006 |
@bbodenmiller - Are you not observing the S3 debug logs at all, or sometimes they log and sometimes not? Can you show me the logs around this line:
?
Would this point to an infrastructure issue? |
I get S3 SDK logs but only for successful connections to S3 like
You would think but the infrastructure people tell me everything is working as expected at network and S3 level. Probably best to discuss further in #20427 since that's the issue I was working when determined I'm not seeing S3 logs as expected. |
@agnivade an example of my S3 debug log is shown at #19579. Since the S3 debug log overlaps it is hard to follow but the short story is entries in Mattermost log with Today during a 17 second period a large number of Here is one of the S3 debug log entries from today during that 17 second time period:
|
This seems to be an issue with the minio library. If there's an error while making the request, the request does not get logged: https://github.com/minio/minio-go/blob/ff482a18933aa30769bfaeb7d34fa680fa51bcee/api.go#L491 I have raised an issue here: minio/minio-go#1664 |
Summary
We're seeing intermittent object storage failures in Mattermost log but not seeing the details in S3 debug log despite having it enabled. We are seeing S3 debug logs for successfully connections to S3.
Steps to reproduce
Expected behavior
S3 debug log should show failures to help in determining what is going wrong
Observed behavior (that appears unintentional)
S3 debug log does not show failures
In Mattermost log:
S3 log: no entries for
h4u8h1nd73yyirrnxewhs5bfgy
in2022-02-17_05:46
period (S3 log appears to use UTC time)Furthermore if we look at all HTTP status codes in S3 log we only see
200
and404
s for 24 hour period (as would be expected if object storage is working correctly).Possible fixes
Questions/observations
The text was updated successfully, but these errors were encountered: