-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Failed to submit <n> logs #4346
Comments
What is the ETA for a fix? Our logs are flooding with exceptions of this logging client. |
same problem here, same setup (Debian Stretch), python 3.5.3. any fix arose ? |
@waprin, do you have any insight here? |
Historically, the most common reason bugs occur here is either:
This is what the
If you don't mind making sync logging calls ,switching to using the synchronous transport will will fix 2) (and also be a useful data point if it does. since then the issue is very likely concurrency bug)
So, you can help verify whether it's 1) by disabling log propagation (see |
I would go for 2. because:
hope it helps |
Deadline exceeded likely means that the request for some reason or another failed to complete in the allotted time. This doesn't necessarily indicate an issue with the library, rather, it can indicate that either the network was congested and unable to send the requests within the deadline or that the logging service failed to respond within the deadline. Switching transports is unlikely to solve this, as it'll just "move" where the deadline exceeded error is bubbled. I'm not sure what to do here. One thing we should definitely do is regenerate the underlying code to pick up the new retry/timeout behavior in api_core, which will allow us the possibility of giving users the ability to change the deadline. |
logging's underlying code has been regenerated and I suspect this issue may disappear. I'm going to close this issue for now, but please comment if it reappears with the latest version. |
I'm periodically getting this error. |
We enabled Stackdriver logging for our application this morning and are seeing excessive exceptions since:
Failed to submit 1 logs.
, due to:I don't think we're hitting the API limit (1k rps, and we're averaging at 60rps). I do see some 403 errors reported in the API console, but not sure those relate to these deadline exceeded.
We're seeing this at an about hourly frequency across our 10 instances. This application itself runs in GCP. This is using the
CloudLoggingHandler
with async / batching transport.General, Core, and Other are also allowed as types
Stackdriver logging
Debian 9
python --version
Python 3.5.3
pip show google-cloud
,pip show google-<service>
orpip freeze
The text was updated successfully, but these errors were encountered: