question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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.

image

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:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bcoecommented, Oct 10, 2019

@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?

0reactions
bcoecommented, Nov 18, 2019

@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 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found