logging stops after a few hours with "retry total timeout exceeded"
See original GitHub issue(This is in continuation of #586)
Because of #586 we yanked out the google winston log library and used directly "@google-cloud/logging": "5.3.1",
24 hours went by with no memory leak BUT I just realized that logging did stop about 15 hours after it started. Every attempt to write an entry since then produced the following (thousands of such messages in the log, the one below is the first).
These messages start appearing about 7 hours after the deployment but between the 7th and the 15ht hour I do see some of our log messages as well as the "ERROR: " messages.
The message is written using a console.log() in the error path of the promise. Here is the approximate code that produces this message:
import * as googleLogging from '@google-cloud/logging';
...
const metadata =
{
resource: {
type: "gke_container",
}
}
const logger = new googleLogging.Logging().log(
"name",
{
removeCircular: true
}
);
const entry = this.logger.entry(metadata, data);
let promise = this.logger.debug(entry); // this worked fine for several hours
promise.catch(err => {
// This is what we see after
console.log(`ERROR: ${util.inspect(err)}`) ;
});
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
node.js - Retry total timeout exceeded before any response ...
I solved this problem by adding this "google-gax": "1.6.2" in package.json. @grpc/grpc-js@0.6.x has memory leak issues. grpc was required by ...
Read more >Troubleshoot Lambda function retry and timeout issues ... - AWS
When I invoke my AWS Lambda function using an AWS SDK, the function times out, the API request stops responding, or an API...
Read more >How to Get to the Bottom of Network Timeout Issues
Based on the basic idea, first check the ECS instance and link for packet loss from the monitoring. The result shows that no...
Read more >Building resilient azure functions with retry policies - Medium
A special kind of exception is timeout, which can happen on the client, server, or proxy. Client can decide to terminate waiting for...
Read more >Troubleshoot common connection issues to Azure SQL ...
Your application must catch error 40197, log the embedded error code (%d) within the message for troubleshooting, and try reconnecting to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@gae123 could you please try:
https://www.npmjs.com/package/@google-cloud/logging/v/5.4.1
and let us know if this version is continuing to have problems?
@gae123 please feel free to reopen this if you bump into this issue again, I think the issues with
@grpc/grpc-js
we’re currently working on are unrelated to this bug 👍