-
Notifications
You must be signed in to change notification settings - Fork 227
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
Stream: Removed #892
Comments
not sure if this helps but locally i see when using the simulator 09:58:46:160 ERROR Received RST_STREAM with error code 8 (node_modules/@taxfyle/backend-commons/lib/connections/pubsub.js:197) |
this has been happening now nightly... any update? |
@crivera Sorry for the silence - I've been watching another issue to see if it bore fruit. Can you try the instructions in this comment and see if it helps? #890 (comment) We've been tracking some issues related to the streams reconnecting on subscriptions. |
Tried by switch back over to grpc-js:latest and now i get the same issue as in #890 that my worker gets killed without any information |
The same issue in that there's a spike in CPU and then it's killed after a while without any log output? Can you paste in some more details about how you're initializing the PubSub object, any changed parameters, etc...? I haven't seen the exact problem you're describing above, but maybe we can make a repro that way. |
Yes we see a little spike in CPU (but that could also be from restarting) and yes no log output. It seems its blocking the whole node thread since the "health" endpoint becomes unavailable and k8s restarts the pod We do a very standard project setup:
"@google-cloud/pubsub": "^1.5.0", running on node 13. Nothing has changed I am able to remove the problem when we go back to before the upgrade at pubsub v 1.1.14 |
I am seeing the same issue. It started around 5 days ago and now my alerting service, which subscribes to a couple of pubsub topics, dies within 24 hours with the error below:
I am using @google-cloud/pubsub at v1.6.0 and following #825 have included the standalone grpc lib. I then instantiate the connection like:
The actual error is thrown inside the @google/pubsub message-stream.js file ( I have tried to add Not sure how and where to catch it; I would like to re-subscribe on end. |
We've started to receive this in our production environment as well and it completely halts the services from receiving messages which is quite the annoyance. We received this at the exact same time across multiple topics and subscriptions and server instances running a GKE cluster. |
We're seeing the same error. For now, we catch the error by listening to the Simplified example: const setupSubscription = () => {
const subscription = // init PubSub subsription
subscription.on('message', messageHandler);
subscription.once('error', error => {
subscription.off('message', messageHandler);
setupSubscription();
});
} Edit: we're also using the older C++ |
Thanks @jperasmus I took the less valiant approach and moved the container onto a k8s cluster. Now the entire container will restart - and resubscribe - if it fails. Luckily it hasn't experienced the dropout since I moved host; quite possibly because everything is on GCP. |
Okay, cool. Glad it is mitigated for you. We're actually using Google App Engine Flexible Environment and still getting the issue, so we're still experiencing the issue while on GCP. |
I actually plan to change the architecture. This is not the first time that I have had issues with a long subscription in a micro service. I plan to take the subscription out, leaving an API. Then write a GCF to trigger on the topic and post messages to the API. |
Oh my... I was hoping to avoid that work around We're manually injecting |
My environment is exactly the same as reported by @carmelid and can confirm also experiencing the issue described here |
I get the same "Stream removed" error while using a connection between a C++ app inside a GKE pod and a Bigtable backend, using the Google Cloud C++ stack (which uses the GRPC underlying stack) :
The error happens quite frequently (every hour). Using GKE 1.16.8-gke.8 and gGRPC v1.26.0. |
Sorry this is still causing a problem for you all. Let me check with our gRPC guru, especially if it's happening across multiple libraries. @murgatroid99, any thoughts? |
My recommendation is to stop using the C++-based |
@murgatroid99 on recent @google-cloud/pubsub issues the advice was exactly the opposite, I actually had to start using the C++ gRPC binding in order to stabilize my production environment that heavily depends on Google Pub/Sub. What is the the level of confidence that grpc-js is now stable? can it be considered production ready? to me is a bit worrisome that gax-nodejs dependency is no longer pinning grpc-js https://github.com/googleapis/gax-nodejs/blob/master/package.json#L17 |
When there are bugs in Regarding the pinning, that was done previously done in response to some bugs in |
@jperasmus I have some good news for you: we published grpc-js version 1.0 today and that version is no longer considered "incomplete" or "experimental". The client libraries should be able to pick that version up soon. |
That is excellent news, thanks @murgatroid99 |
At this point we're basically held up by some versioning gotchas with the other libraries and some GCP services. :S I'm working on a way to work around that right now. |
This versioning issue should be sorted out next week when |
The Pub/Sub library 2.0 is still not released yet, due to a confluence of factors, but I'm crossing my fingers that we can do it this week. |
|
The newer grpc-js has been pulled in for a while now, and this issue has gone quiet. Is anyone here still having the issue? |
@feywind We just implemented the pubsub client recently, running into the error: |
@feywind we're seeing this intermittently as well Version:
Occurred this morning at |
I could've sworn I responded to this... There is now a 2.5.0 for |
Environment details
@google-cloud/pubsub
version: 1.5.0Steps to reproduce
Randomly we just got an error from our connection to pubsub
message: "Error: Stream removed
at MessageStream._onEnd (/app/node_modules/@google-cloud/pubsub/build/src/message-stream.js:234:26)
at ClientDuplexStream. (/app/node_modules/@google-cloud/pubsub/build/src/message-stream.js:274:43)
at Object.onceWrapper (events.js:411:28)
at ClientDuplexStream.emit (events.js:317:22)
at endReadableNT (_stream_readable.js:1215:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)"
this also happens locally with the simulator
please help
The text was updated successfully, but these errors were encountered: