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.

Getting GOAWAY when listening to streams after a while

See original GitHub issue

Hi everyone. We have a server listening over many long lived streams using firebase-admin. We recently bumped our versions of @google-cloud/firestore and firebase-admin to:

    "@google-cloud/firestore": "^2.1.0",
    "firebase-admin": "^8.0.0"

We managed to get rid of the DEADLINE_EXCEEDED we were previously getting but unfortunately we are now getting a new error:

Getting metadata from plugin failed with error: New streams cannot be created after receiving a GOAWAY

This one happens on different conditions though… While we could reproduce DEADLINE_EXCEEDED with some load tests this ~seems to happen after a few hours~ always happens after 30 minutes or so (perhaps when the streams being listened to are idle for a while?) after the server process starts. Any idea of what might be the cause, and also, which combination of package versions might get us free from both DEADLINE_EXCEEDED and GOAWAY errors? Because when this happens, restarting the process is the only remedy.

Environment details

  • OS: Happening locally on macOS 10.14.4 and also on a docker container based on the node:10-alpine image running on a Ubuntu 18.04.2 LTS machine.
  • Node.js version: v10.15.0 on macOS, v10.xon the Ubuntu machine.
  • npm version: 6.9.0
  • @google-cloud/firestore version: ^2.1.0

Steps to reproduce

  1. Start the server (which currently listens to ~80 streams)
  2. Leave it running and wait
  3. After a while (maybe after streams have no activity for some time) the error comes up and the streams “stop working”, i.e, no new events are detected starting from there

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jakeleventhalcommented, Jun 8, 2019

I am having the same problem

1reaction
callmehiphopcommented, Jun 14, 2019

@jmacedoit I can confirm that the latest version does pull in 0.4.3, all patch updates get pulled in automatically.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to handle HTTP/2 GOAWAY with HttpClient?
In the HTTP/2 GOAWAY frame there is the indication of what was the last stream processed by the server, so the client can...
Read more >
HTTP/2 exception handling - Google Groups
After some time, I receive such errors from the scenario: ... Cannot create stream 2003 greater than Last-Stream-ID 2001 from GOAWAY.
Read more >
Need to be careful when you using gRPC keepalive - Allen Ng
First thing that I am not so sure about are these two configurations, from the description MaxConnectionAgeGrace is the time allowed for the...
Read more >
Will Extreme Sensitivity to Sound Ever Go Away?
It should get better over time–but noise damage can take months to “heal”. In the meantime, you need to protect your ears from...
Read more >
A Young Athlete Gets a Series of Infections. Why Wouldn't ...
Why Wouldn't They Go Away? ... It was late afternoon by the time the women reached Northshore University Hospital in Evanston.
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