firebase-admin-node icon indicating copy to clipboard operation
firebase-admin-node copied to clipboard

Error: 2 UNKNOWN: Authentication backend unknown error

Open michaelAtCoalesce opened this issue 3 years ago • 5 comments
trafficstars

Over the last 12 hours our firebase-admin node process has been experiencing the following error

Error: 2 UNKNOWN: Authentication backend unknown error

It appears to happen during a firestore transaction during the get, we do this in a few places and it seems to be happen transiently

[REQUIRED] Describe your environment

   "firebase-admin": "^11.0.1",
   node.js: "18.5.0"

image

between the periods of september 10th - 15th, we did not get this error. but we also got these issues on september 9th as well

michaelAtCoalesce avatar Sep 15 '22 17:09 michaelAtCoalesce

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Sep 15 '22 17:09 google-oss-bot

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Sep 16 '22 16:09 google-oss-bot

I am transferring this issue to the firebase-admin-node repo, as this is about the firebase-admin package.

hsubox76 avatar Sep 16 '22 16:09 hsubox76

Hi,

Could you please file a support request so the team can have info about the your project?

cherylEnkidu avatar Sep 17 '22 10:09 cherylEnkidu

hey @cherylEnkidu i did - the firebase support case # is 10197247

michaelAtCoalesce avatar Sep 19 '22 17:09 michaelAtCoalesce

Hi @michaelAtCoalesce , are you still experiencing these errors recently?

cherylEnkidu avatar Oct 19 '22 14:10 cherylEnkidu

Close the issue since there is no updates. Please feel free to reopen it.

cherylEnkidu avatar Nov 08 '22 20:11 cherylEnkidu

We just experienced a massive burst of these out of nowhere: image

samatcolumn avatar Jul 17 '23 22:07 samatcolumn

Hello, not a massive burst for us, but we saw the same problem @samatcolumn posted out of nowhere for some requests. I checked the Firestore health dashboard and didn't see any incident report. Anyone knows what can be causing this? Is it something to worry about?

nicolas-ilr avatar Jul 17 '23 22:07 nicolas-ilr

The issue seems to be quieting down now: image

I don't think this is an SDK issue, but maybe the SDK team could get someone from the backend team to post an update here or on the status dashboard.

samatcolumn avatar Jul 17 '23 23:07 samatcolumn

Same here. Suddenly getting this error on pub/sub cron function.

Full log:

Error: 2 UNKNOWN: Authentication backend unknown error.
    at Object.callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:330:49)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181)
    at process.nextTick (/workspace/node_modules/@grpc/grpc-js/build/src/call-stream.js:145:78)
    at process._tickCallback (internal/process/next_tick.js:61:11)
Caused by: Error
    at Query._get (/workspace/node_modules/@google-cloud/firestore/build/src/reference.js:1450:23)
    at Query.get (/workspace/node_modules/@google-cloud/firestore/build/src/reference.js:1439:21)
    at exports.cron1hless5m.functions.pubsub.schedule.timeZone.onRun (/workspace/index.js:12987:4)

hkchakladar avatar Jul 17 '23 23:07 hkchakladar

Yep same here.

MorenoMdz avatar Jul 18 '23 00:07 MorenoMdz

We got the same error at the same time. It started from 22:25:15 (UTC).

osdajigu avatar Jul 18 '23 01:07 osdajigu

we got them as well around the same time for around 10 minutes or so and then they disappeared. Any conclusion ?

karkeeb avatar Jul 18 '23 08:07 karkeeb

Getting them right now again, the same happened yesterday, a burst and then ok again.

leandroz avatar Jul 18 '23 19:07 leandroz

Same here...

MorenoMdz avatar Jul 18 '23 20:07 MorenoMdz

Yep this is happening again!

samatcolumn avatar Jul 18 '23 20:07 samatcolumn

These errors are lining up with errors we are seeing.

jlotito-scoir avatar Jul 18 '23 20:07 jlotito-scoir

@cherylEnkidu do you mind reopening this and or contacting support internally? I have a support ticket but it did not get any updates yet.

MorenoMdz avatar Jul 18 '23 20:07 MorenoMdz

cc @lahirumaramba

samatcolumn avatar Jul 18 '23 23:07 samatcolumn

got this again. @cherylEnkidu / @lahirumaramba : can you please reopen / look at this ?

karkeeb avatar Jul 19 '23 05:07 karkeeb

Did anyone find any solution? we are still having this issue.

inazalaei avatar Aug 11 '23 06:08 inazalaei

@cherylEnkidu we experienced another burst of these errors today from 6:40:25 - 6:41:00 (US Eastern Time). Can you please escalate this to Google Cloud? In my opinion these outages should count against Firestore's 99.999% multi-regional SLA which allows for only 5.26 minutes of downtime per year. We have exceeded that on this issue alone this year, and it is not the only kind of FIrestore downtime we have experienced.

samatcolumn avatar Aug 31 '23 12:08 samatcolumn

Also @cherylEnkidu one reason why this may be relevant to this repository: the previous response I got from Google Cloud is that it's the client's responsibility to retry with exponential backoff. I think that's nonsense (we can't know about every category of gRPC error!) but it may be something that the Admin Node SDK could handle internally.

samatcolumn avatar Aug 31 '23 12:08 samatcolumn

Getting these errors randomly on different firestore operations (read and write).

jbromberg avatar Sep 07 '23 02:09 jbromberg

Screenshot 2023-09-26 at 2 05 18 PM

Seeing the same issue here! Was anybody able to contact support and receive a helpful response?

yilunc avatar Sep 26 '23 18:09 yilunc

Support gave me the extremely unhelpful response that this is within Firestore's SLA because it's my responsibility, as the consumer, to implement a retry policy. I strongly believe that retry should be done within the Firebase Admin SDK and not inside of every single app but 🤷

samatcolumn avatar Sep 26 '23 21:09 samatcolumn

This error is still occuring for us.

oconnorjoseph avatar Oct 09 '23 17:10 oconnorjoseph

We're experiencing this, no idea what's causing it. Help.

ehedaya avatar Oct 10 '23 01:10 ehedaya

Likewise. We're noticing this occur periodically today for us.

dschnare avatar Oct 10 '23 12:10 dschnare