You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since google-gax forced the grpc-js version to 0.6.4 (googleapis/gax-nodejs@628db9e), I am having the following issue :
Error: No connection established
at Http2CallStream.call.on (/usr/src/node_modules/@google-cloud/bigtable/node_modules/@grpc/grpc-js/build/src/call.js:68:41)
at Http2CallStream.emit (events.js:203:15)
at Http2CallStream.EventEmitter.emit (domain.js:448:20)
at process.nextTick (/usr/src/node_modules/@google-cloud/bigtable/node_modules/@grpc/grpc-js/build/src/call-stream.js:75:22)
at process._tickCallback (internal/process/next_tick.js:61:11)
Reproduction steps
The bug only happens after one hour. We are using grpc-js inside @google-cloud/bigtable and our bigtable instance is autoscaling.
Thank you for the report! Just to confirm, does that mean that the script should have an hour of idle time with no network requests to experience that, or just an hour of runtime?
Similar issue on @google-cloud/pubsub@1.1.0
After about 10 minutes of idle time with no network requests, any call to "publish" callbacks after 10 minutes (maxRetryDelayMillis) to say "Retry total timeout exceeded before any response was received"
To be able to find this error "No connection established", I had to add logs in the google-gax module
Just to make sure I understand, are you making some requests that succeed, then going idle for a while, then making more requests and seeing these errors?
@murgatroid99 we are seeing that our services are running fine for 10ish minutes and then we start dropping connections. At this time we see deadline exceeded errors. Once this happens we are unable to have successful requests with both google-cloud/pubsub and google-cloud/datastore
@alexander-fenster we are seeing this using with services running within GKE containers
Reacted by harscoet, Justin Reich, Aaron Wirick, Ankur Verma, Jan Krynauw, Kirill Groshkov and Namrane🔹
We downgraded @grpc/grpc-js to 0.5.4 and also other related google libraries to a version that don't depend on @grpc/grpc-js@0.6.x. The problem seems gone. It may related to #1062 & #1061
Reacted by Julian Gong, Matej Šnuderl and Montoya Edu
I have published version 0.6.5 of @grpc/grpc-js. You should pick it up if you update your dependencies. Please try that and see if it solves this problem.
I'm experiencing sustained CPU spikes to 100% after an hour since a pod is started. I've created a debug pod which doesn't handle any traffic and it still manifests the same way. After profiling the CPU I've found that calls to startCallStream consistently fail which causes the whole tryPick function to be called again basically blocking the node process:
I'm hoping this issue hasn't resurfaced, but I did encounter the same error in a project that had been idle for some time. I recycled the pod so I should have an idea of the timeout being the cause in the future, but it impacted all our instances in a test environment.
The error:
err:
message: '14 UNAVAILABLE: No connection established'name: Errorstack: > Error: 14 UNAVAILABLE: No connection established at Object.callErrorFromStatus (/app/packages/animus/node_modules/@grpc/grpc-js/src/call.ts:81:24) at Object.onReceiveStatus (/app/packages/animus/node_modules/@grpc/grpc-js/src/client.ts:334:36) at Object.onReceiveStatus (/app/packages/animus/node_modules/@grpc/grpc-js/src/client-interceptors.ts:434:34) at Object.onReceiveStatus (/app/packages/animus/node_modules/@grpc/grpc-js/src/client-interceptors.ts:397:48) at Http2CallStream.outputStatus (/app/packages/animus/node_modules/@grpc/grpc-js/src/call-stream.ts:230:22) at Http2CallStream.maybeOutputStatus (/app/packages/animus/node_modules/@grpc/grpc-js/src/call-stream.ts:280:14) at Http2CallStream.endCall (/app/packages/animus/node_modules/@grpc/grpc-js/src/call-stream.ts:263:12) at Http2CallStream.cancelWithStatus (/app/packages/animus/node_modules/@grpc/grpc-js/src/call-stream.ts:597:10) at ChannelImplementation.tryPick (/app/packages/animus/node_modules/@grpc/grpc-js/src/channel.ts:387:22) at ChannelImplementation._startCallStream (/app/packages/animus/node_modules/@grpc/grpc-js/src/channel.ts:433:10) at Http2CallStream.start (/app/packages/animus/node_modules/@grpc/grpc-js/src/call-stream.ts:573:18) at BaseUnaryInterceptingCall.start (/app/packages/animus/node_modules/@grpc/grpc-js/src/client-interceptors.ts:374:15) at BaseUnaryInterceptingCall.start (/app/packages/animus/node_modules/@grpc/grpc-js/src/client-interceptors.ts:437:11) at ServiceClientImpl.makeUnaryRequest (/app/packages/animus/node_modules/@grpc/grpc-js/src/client.ts:315:10) at ServiceClientImpl.<anonymous> (/app/packages/animus/node_modules/@grpc/grpc-js/src/make-client.ts:174:15) at args (/app/packages/animus/node_modules/dialogflow/src/v2beta1/sessions_client.js:175:35) at /app/packages/animus/node_modules/google-gax/src/normalCalls/timeout.ts:54:13 at OngoingCallPromise.call (/app/packages/animus/node_modules/google-gax/src/call.ts:82:23) at NormalApiCaller.call (/app/packages/animus/node_modules/google-gax/src/normalCalls/normalApiCaller.ts:46:15) at funcPromise.then.then (/app/packages/animus/node_modules/google-gax/src/createApiCall.ts:103:26) at Object.dynatraceOnServiceExecutionIndicator [as doInvoke] (/opt/dynatrace/oneagent/agent/bin/1.195.54.20200529-113801/any/nodejs/nodejsagent.js:1803:20) at Object.a.safeInvoke (/opt/dynatrace/oneagent/agent/bin/1.195.54.20200529-113801/any/nodejs/nodejsagent.js:1854:29) at /opt/dynatrace/oneagent/agent/bin/1.195.54.20200529-113801/any/nodejs/nodejsagent.js:7079:25 at process._tickCallback (internal/process/next_tick.js:68:7)"code: 14
We install dependencies from the package-lock.json, which has @grpc/grpc-js locked in at 1.0.4.
Hello everyone, I've been trying to create a secret in the GCP from running the GCP APIs from AWS lambda. I tried setting the environment variable at the run time like process.env.GOOGLE_APPLICATION_CREDENTIALS = '/tmp/serviceAccountCreds.json'; . The GCP API for secret manager was running fine till DEC 29th on my environment. But from then on the API is throwing below error
Error: 14 UNAVAILABLE: No connection established
at Object.callErrorFromStatus (/home/akhil/onboard/node_modules/@grpc/grpc-js/src/call.ts:81:24)
at Object.onReceiveStatus /home/akhil/onboard/node_modules/@grpc/grpc-js/src/client.ts:334:36)
at Object.onReceiveStatus /home/akhil/onboard/node_modules/@grpc/grpc-js/src/client-interceptors.ts:434:34)
at Object.onReceiveStatus (/home/akhil/onboard/node_modules/@grpc/grpc-js/src/client-interceptors.ts:397:48)
at /home/akhil/onboard/node_modules/@grpc/grpc-js/src/call-stream.ts:237:24
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
code: 14,
details: 'No connection established',
metadata: Metadata { internalRepr: Map(0) {}, options: {} }
OK @ducvu91. Since last week, I'm encountering this issue every time I run the createSecret GCP API. Will try to create a new issue to get some attention for the issue. Not sure what needs to be done from dev end if this gets encountered in production environment.
I was getting this issue because I setup the Firestore emulator and wasn't turning it on. If you recently enabled the emulators, you have to start them with firebase emulators:start . Then you'll start getting the information from your local database.
Seeing the same issue with "@google-cloud/scheduler": "^1.6.0":
Error: 14 UNAVAILABLE: No connection established
at Object.callErrorFromStatus (/app/node_modules/@grpc/grpc-js/build/src/call.js:30:26)
at Http2CallStream.<anonymous> (/app/node_modules/@grpc/grpc-js/build/src/client.js:96:33)
at Http2CallStream.emit (events.js:327:22)
at Http2CallStream.EventEmitter.emit (domain.js:467:12)
at /app/node_modules/@grpc/grpc-js/build/src/call-stream.js:97:22
at processTicksAndRejections (internal/process/task_queues.js:75:11)
at runNextTicks (internal/process/task_queues.js:62:3)
at listOnTimeout (internal/timers.js:523:9)
at processTimers (internal/timers.js:497:7)
UPDATE:
Not a frequent issue, it randomly happened today.
It was running on Node.js 12.
Resolved @grpc/grpc-js version was 0.6.15
After reading above I guess getting @grpc/grpc-js >= 0.6.18 could solve the issue 🤔
Hey
Trying to run simple pub/sub code in my code
Every time brings the following error:
Error: 1 CANCELED: Call cancelled
at callErrorFromStatus (C:\storage-actions\node_modules@grpc\grpc-js\build\src\call.js:31:19)
at Object.onReceiveStatus (C:\storage-actions\node_modules@grpc\grpc-js\build\src\client.js:192:76)
at Object.onReceiveStatus (C:\storage-actions\node_modules@grpc\grpc-js\build\src\client-interceptors.js:360:141)
at Object.onReceiveStatus (C:\storage-actions\node_modules@grpc\grpc-js\build\src\client-interceptors.js:323:181)
at C:\storage-actions\node_modules@grpc\grpc-js\build\src\resolving-call.js:94:78
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
{
code: 1,
details: 'Call cancelled',
metadata: Metadata { internalRepr: Map(0) {}, options: {} },
note: 'Exception occurred in retry method that was not classified as transient'
}
Is the problem related to a certain version and/or incompatible versions?
Activity
alexander-fenster commentedon Oct 4, 2019
Thank you for the report! Just to confirm, does that mean that the script should have an hour of idle time with no network requests to experience that, or just an hour of runtime?
harscoet commentedon Oct 4, 2019
Similar issue on @google-cloud/pubsub@1.1.0
After about 10 minutes of idle time with no network requests, any call to "publish" callbacks after 10 minutes (maxRetryDelayMillis) to say "Retry total timeout exceeded before any response was received"
To be able to find this error "No connection established", I had to add logs in the google-gax module
reichjustin commentedon Oct 4, 2019
We are seeing the exact same issues as @harscoet with
@google-cloud/pubsub@1.1.0apatora commentedon Oct 4, 2019
It happens after an hour of runtime (I had this issue on our main API). Then it starts to throw those errors on separate processes progressively.
weipublic commentedon Oct 4, 2019
Same issue when using
@google-cloud/datastorewhich depends ongoogle-gaxalexander-fenster commentedon Oct 4, 2019
We are looking into this and will either fix it ASAP, or release an update to
google-gaxthat pins@grpc/grpc-jsto an older version.murgatroid99 commentedon Oct 4, 2019
Just to make sure I understand, are you making some requests that succeed, then going idle for a while, then making more requests and seeing these errors?
alexander-fenster commentedon Oct 4, 2019
Also, do you folks run your code on a physical machine, or in any kind of cloud e.g. cloud functions?
reichjustin commentedon Oct 4, 2019
@murgatroid99 we are seeing that our services are running fine for 10ish minutes and then we start dropping connections. At this time we see deadline exceeded errors. Once this happens we are unable to have successful requests with both
google-cloud/pubsubandgoogle-cloud/datastore@alexander-fenster we are seeing this using with services running within GKE containers
weipublic commentedon Oct 4, 2019
We downgraded
@grpc/grpc-jsto 0.5.4 and also other related google libraries to a version that don't depend on@grpc/grpc-js@0.6.x. The problem seems gone. It may related to #1062 & #1061murgatroid99 commentedon Oct 4, 2019
If my fix is right, this problem was actually in #1015 but it was overshadowed by other problems.
murgatroid99 commentedon Oct 4, 2019
I have published version 0.6.5 of
@grpc/grpc-js. You should pick it up if you update your dependencies. Please try that and see if it solves this problem.alexander-fenster commentedon Oct 5, 2019
@apatora @harscoet @reichjustin @weipublic Could you folks please check if the fix in v0.6.5 works for you all, and let us know? Thank you!
67 remaining items
alexandrugheorghe commentedon Feb 25, 2020
I'm experiencing sustained CPU spikes to 100% after an hour since a pod is started. I've created a debug pod which doesn't handle any traffic and it still manifests the same way. After profiling the CPU I've found that calls to
startCallStreamconsistently fail which causes the wholetryPickfunction to be called again basically blocking the node process:Is it intended for this code: https://github.com/grpc/grpc-node/pull/1251/files#diff-a96b991cf71efa63f54e0313d45cf39cR234-R257 to create a loop like the one I described?
I'm currently using these versions of google libraries:
The libraries are using
"@grpc/grpc-js@0.6.16", "@grpc/grpc-js@^0.6.12"I will update this post with logs from
GRPC_TRACKin an hour or so.murgatroid99 commentedon Feb 25, 2020
@alexandrugheorghe That looks like the same bug as reported in googleapis/nodejs-pubsub#890, and that user says that the problem was fixed in
@grpc/grpc-jsversion 0.6.18.alexandrugheorghe commentedon Feb 25, 2020
@murgatroid99 I'll update now and check it again in an hour.
alexandrugheorghe commentedon Feb 26, 2020
@murgatroid99 Sorry for the late reply. Pods have been stable, version
0.6.18has fixed my issues.Thanks again for the quick reply and the fix.
tcarrio commentedon Jun 5, 2020
I'm hoping this issue hasn't resurfaced, but I did encounter the same error in a project that had been idle for some time. I recycled the pod so I should have an idea of the timeout being the cause in the future, but it impacted all our instances in a test environment.
The error:
We install dependencies from the
package-lock.json, which has@grpc/grpc-jslocked in at1.0.4.{ // deps... "@grpc/grpc-js": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.0.4.tgz", "integrity": "sha512-Qawt6HUrEmljQMPWnLnIXpcjelmtIAydi3M9awiG02WWJ1CmIvFEx4IOC1EsWUWUlabOGksRbpfvoIeZKFTNXw==", "requires": { "google-auth-library": "^6.0.0", "semver": "^6.2.0" }, "dependencies": { /** deps... */ } } }Will have another issue opened if this has resurfaced. I'll be back with more if it's an issue we come across again.
AkhilA4 commentedon Jan 3, 2021
Hello everyone, I've been trying to create a secret in the GCP from running the GCP APIs from AWS lambda. I tried setting the environment variable at the run time like
process.env.GOOGLE_APPLICATION_CREDENTIALS = '/tmp/serviceAccountCreds.json';. The GCP API for secret manager was running fine till DEC 29th on my environment. But from then on the API is throwing below error@grpc/grpc-jsversion installed is 1.1.8The secrets manager's version is 3.2.3
sidd-kulk commentedon Jan 4, 2021
I am facing the same issue again:
package.json:
package-lock.json
ducvu91 commentedon Jan 4, 2021
@sidcool1234 i'm too.
I'm use dialogflow, it doesn't usually happen
"@google-cloud/storage": "^2.5.0",
"@google-cloud/vision": "^1.8.0",
"actions-on-google": "^1.8.0",
"body-parser": "^1.18.3",
"config": "^3.0.1",
"dialogflow": "^1.2.0",
"dialogflow-fulfillment": "^0.6.1",
AkhilA4 commentedon Jan 7, 2021
@sidcool1234 , @ducvu91 did you guys find any work-around or still persisting with this issue ? Please let me know if you guys found any work-around.
ducvu91 commentedon Jan 7, 2021
@AkhilA4 not yet, Sometimes it happens and it's random, there's no specific case so I can't find where the cause is.
AkhilA4 commentedon Jan 7, 2021
OK @ducvu91. Since last week, I'm encountering this issue every time I run the createSecret GCP API. Will try to create a new issue to get some attention for the issue. Not sure what needs to be done from dev end if this gets encountered in production environment.
Ignacio1996 commentedon Mar 18, 2021
I was getting this issue because I setup the Firestore emulator and wasn't turning it on. If you recently enabled the emulators, you have to start them with firebase emulators:start . Then you'll start getting the information from your local database.
maikelrobier commentedon Mar 30, 2021
Seeing the same issue with
"@google-cloud/scheduler": "^1.6.0":UPDATE:
@grpc/grpc-jsversion was0.6.15After reading above I guess getting
@grpc/grpc-js >= 0.6.18could solve the issue 🤔brachaIzakov commentedon Jun 12, 2023
Hey
Trying to run simple pub/sub code in my code
Every time brings the following error:
Error: 1 CANCELED: Call cancelled
at callErrorFromStatus (C:\storage-actions\node_modules@grpc\grpc-js\build\src\call.js:31:19)
at Object.onReceiveStatus (C:\storage-actions\node_modules@grpc\grpc-js\build\src\client.js:192:76)
at Object.onReceiveStatus (C:\storage-actions\node_modules@grpc\grpc-js\build\src\client-interceptors.js:360:141)
at Object.onReceiveStatus (C:\storage-actions\node_modules@grpc\grpc-js\build\src\client-interceptors.js:323:181)
at C:\storage-actions\node_modules@grpc\grpc-js\build\src\resolving-call.js:94:78
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
{
code: 1,
details: 'Call cancelled',
metadata: Metadata { internalRepr: Map(0) {}, options: {} },
note: 'Exception occurred in retry method that was not classified as transient'
}
Is the problem related to a certain version and/or incompatible versions?