Skip to content
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

Firebase deploy fails with "Error: HTTP Error: 500, Internal error encountered." #865

Closed
ghost opened this issue Aug 14, 2018 · 62 comments
Closed

Comments

@ghost
Copy link

ghost commented Aug 14, 2018

When deploying our site today on Travis CI, our deployment fails with the following error:

Error: HTTP Error: 500, Internal error encountered.

Version info

firebase-tools@4.1.0

Platform Information

Linux on Travis CI

Log is here

Note: The build last night that used v. 4.0.3 worked correctly.

cc: @pbakaus, @CrystalFaith

@mbleigh
Copy link
Contributor

mbleigh commented Aug 14, 2018

We're going to need debug logs to be able to diagnose the problems here -- can you either flip on --debug in the CI build or alternatively make sure it is keeping firebase-debug.log as an artifact during failed builds?

@ghost
Copy link
Author

ghost commented Aug 14, 2018

@mbleigh - Please check out the details in https://travis-ci.org/ampproject/docs/jobs/415953980, which I hope provides the details you need.

cc: @rsimha

@rsimha
Copy link

rsimha commented Aug 14, 2018

Here are the failure logs: https://travis-ci.org/ampproject/docs/jobs/415953980#L7375-L7424

@mbleigh
Copy link
Contributor

mbleigh commented Aug 14, 2018

How (and when) did you generate the auth token that you're using in the CI system? Will it work if you generate a new one with firebase login:ci?

@rsimha
Copy link

rsimha commented Aug 14, 2018

New token generated. Build in progress: https://travis-ci.org/ampproject/docs/builds/415999283

@ghost
Copy link
Author

ghost commented Aug 14, 2018

Resolved. Needed new auth token.

@ghost ghost closed this as completed Aug 14, 2018
@arthabus
Copy link

arthabus commented Sep 17, 2018

Just faced the same issue. Relogin/updating token didn't solve it.

here is the log: firebase-debug.log

It was working yesterday but today we've updated firebase-tools to v4.3.1 (from v3.*). It works for our dev version of the project (basically a separate firebase project) but not for prod.

Please advice on possible solutions.

EDIT
We are able to deploy functions, but not hosting:

firebase deploy --only hosting fails with the attached log and with the "500 internal error" message
firebase deploy --only functions works as expected

Again the same codebase deploys without issues into the alternative dev project.
Reverting to the previously deployed code doesn't solve the problem.

@Berlioz
Copy link
Contributor

Berlioz commented Sep 17, 2018

It's difficult to tell for sure from my standpoint, but I suspect that your issue has something to do with nonstandard IAM permissions being set on the user attempting to do the deploy. Try doing the deploy with a user that has the Editor permission on the corresponding Cloud project? If you reach out to Firebase Support and open a case referencing this issue, they'll have the accesses required to help you troubleshoot your IAM permissions in greater detail.

If that doesn't work, as a temporary workaround, you should be able to temporarily downgrade firebase-tools to a 3.x release using npm with npm install -g firebase-tools@3.19.3 or whatever version you used to be on.

@arthabus
Copy link

arthabus commented Sep 17, 2018

Thanks @Berlioz - downgrading resolved the issue for now!

Though we are looking to use function custom timeout from the code which requires firebase-tool 4+
The permission is set to "Owner" actually. I'll file an issue to support as well.

Thanks again for the quick and helpful reply!

@neer17
Copy link

neer17 commented Oct 1, 2018

Deploying functions later some time resolved my problem. This may be an internal firebase bug.

@ajayarajan-quotient
Copy link

Hi, I`m getting the following error while using FirebaseMessaging.sendAsyc

com.google.firebase.messaging.FirebaseMessagingException: Internal error encountered.
at com.google.firebase.messaging.FirebaseMessaging.handleSendHttpError(FirebaseMessaging.java:290)
at com.google.firebase.messaging.FirebaseMessaging.access$600(FirebaseMessaging.java:55)
at com.google.firebase.messaging.FirebaseMessaging$1.execute(FirebaseMessaging.java:259)
at com.google.firebase.messaging.FirebaseMessaging$1.execute(FirebaseMessaging.java:240)
at com.google.firebase.internal.CallableOperation.call(CallableOperation.java:36)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:108)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:41)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.google.api.client.http.HttpResponseException: 500 Internal Server Error
{
"error": {
"code": 500,
"message": "Internal error encountered.",
"errors": [
{
"message": "Internal error encountered.",
"domain": "global",
"reason": "backendError"
}
],
"status": "INTERNAL"
}
}
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1070)

what could be the issue here, any response will be highly appreciated

@bkendall
Copy link
Contributor

@ajayarajan This is not the appropriate venue for that question. You will find StackOverflow or the appropriate channel in the Firebase Community a better place.

@liron-navon
Copy link

This could be useless now, but for anyone who might visit here, in my case the hosting service was down (yea, I didn't believe google services can be brought down either ), you can see what services are down here:

https://status.firebase.google.com/

@echofrost38
Copy link

yes, having same trouble now, looks like firebase is under weather :)

@robjr
Copy link

robjr commented Feb 6, 2019

same as you @liron-navon, after trying many things to make it work, I was about to contact the support when I saw on the status page that some services were down.

@shavik
Copy link

shavik commented Feb 6, 2019

hosting is down. but if you are deploying only functions using
firebase deploy --only functions will work.

@tsavo-vdb-knott
Copy link

tsavo-vdb-knott commented Feb 6, 2019

ROFL ! I'm so happy you just posted that! Holy shit I have a beta onboarding this morning! @shavik
Was freaking out because I thought I broke something...

@StickNitro
Copy link

StickNitro commented Feb 6, 2019

Same as @T-Knott-Mesh I thought I broke something, does firebase have a status page for services?

nm I found it here

@equidevium
Copy link

Yeap firebase is down. Hard to believe that this happened.

@tsavo-vdb-knott
Copy link

tsavo-vdb-knott commented Feb 6, 2019 via email

@preginald
Copy link

Is there anyway I can edit code in the server instead of having to deploy? I need to fix a bug.

@denz-io
Copy link

denz-io commented Feb 6, 2019

Encountering the same problem getting this error

Error: HTTP Error: 500, Internal error encountered.

@Wasi-Ayub
Copy link

Error: HTTP Error: 500, Internal error encountered.
Same Problem I'm facing when i hosting my project in firebase server

@CossyCossy
Copy link

how soon are they gonna be down????

@gildotdev
Copy link

Thank you for posting that it is down! I have been trying for the last 30 minutes to get this deployed through our CI.

@atomek1000
Copy link

haha i thought it was my network
Good that this site https://status.firebase.google.com/ exists

@Kobbersvard
Copy link

Haha I thought Iam fired 8-D

@denz-io
Copy link

denz-io commented Feb 6, 2019

Mitigation is rolled out! Issue is resolved https://status.firebase.google.com/incident/Hosting/19006

@tufac2
Copy link

tufac2 commented Aug 19, 2019

Same error! I have tried with several versions of firebase-tools and same problem.

I tried firebase deploy --only functions and it worked

@benatkin
Copy link

It hasn't been working for me for the last 20 minutes or so.

@rohitsuratekar
Copy link

I am facing same problem now, even when their website says service is normal.

@bkendall
Copy link
Contributor

Thanks for the reports folks. There's a newer issue that's tied to the 500 errors today that I'd like to keep this activity on, so if you're having issues to day (August 19, 2019 - huh, almost exactly a year later for this bug), go to #1609.

We're aware and we're working on it. Sorry for the inconvenience 😕. Stay tuned to #1609 for more updates.

@benatkin
Copy link

benatkin commented Aug 19, 2019

I'm annoyed that the status page doesn't acknowledge the issue. Don't care about the reply here. Update the status page first.

Compounding the issue for me, I deleted my staging site in an effort to fix it (for some reason it worked after I did that, go figure) and it wouldn't let me create a new one with the same name, even in the same project, so now I have to tell everyone to use the new URL.

@FCE-tc
Copy link

FCE-tc commented Aug 21, 2019

I am getting the same error when using 'firebase deploy'

`[info] + database: rules syntax for database is valid
[debug] [2019-08-21T14:52:22.716Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites//versions

[debug] [2019-08-21T14:52:23.713Z] <<< HTTP RESPONSE 500
[debug] [2019-08-21T14:52:23.714Z] <<< HTTP RESPONSE BODY
[error]
[error] Error: HTTP Error: 500, Internal error encountered.
[debug] [2019-08-21T14:52:23.855Z] Error Context: {
"body": {
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
},
"response": {
"statusCode": 500,
"body": {
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
},
"headers": {
"vary": "X-Origin, Referer, Origin,Accept-Encoding",
"content-type": "application/json; charset=UTF-8",
"date": "Wed, 21 Aug 2019 14:52:23 GMT",
"server": "ESF",
"cache-control": "private",
"x-xss-protection": "0",
"x-frame-options": "SAMEORIGIN",
"x-content-type-options": "nosniff",
"alt-svc": "quic=":443"; ma=2592000; v="46,43,39"",
"accept-ranges": "none",
"transfer-encoding": "chunked"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "firebasehosting.googleapis.com",
"port": 443,
"hostname": "firebasehosting.googleapis.com",
"hash": null,
"search": null,
"query": null,
"pathname": "/v1beta1/sites//versions",
"path": "/v1beta1/sites//versions",
"href": "https://firebasehosting.googleapis.com/v1beta1/sites//versions"
},
"method": "POST"
}
}
}`

@piavgh
Copy link

piavgh commented Aug 21, 2019

Same here

I am getting the same error when using 'firebase deploy'

`[info] + database: rules syntax for database is valid
[debug] [2019-08-21T14:52:22.716Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites//versions

[debug] [2019-08-21T14:52:23.713Z] <<< HTTP RESPONSE 500
[debug] [2019-08-21T14:52:23.714Z] <<< HTTP RESPONSE BODY
[error]
[error] Error: HTTP Error: 500, Internal error encountered.
[debug] [2019-08-21T14:52:23.855Z] Error Context: {
"body": {
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
},
"response": {
"statusCode": 500,
"body": {
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
},
"headers": {
"vary": "X-Origin, Referer, Origin,Accept-Encoding",
"content-type": "application/json; charset=UTF-8",
"date": "Wed, 21 Aug 2019 14:52:23 GMT",
"server": "ESF",
"cache-control": "private",
"x-xss-protection": "0",
"x-frame-options": "SAMEORIGIN",
"x-content-type-options": "nosniff",
"alt-svc": "quic=":443"; ma=2592000; v="46,43,39"",
"accept-ranges": "none",
"transfer-encoding": "chunked"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "firebasehosting.googleapis.com",
"port": 443,
"hostname": "firebasehosting.googleapis.com",
"hash": null,
"search": null,
"query": null,
"pathname": "/v1beta1/sites//versions",
"path": "/v1beta1/sites//versions",
"href": "https://firebasehosting.googleapis.com/v1beta1/sites//versions"
},
"method": "POST"
}
}
}`

@GeorgianIvan
Copy link

Same here. HTTP Error: 500

@davej
Copy link

davej commented Aug 21, 2019

Looks like there's a bunch of us getting a 500 in the last 30 minutes. Looks like Firebase is having an issue.

@bongartzc
Copy link

Yes I am also getting a 500 error.

@davej
Copy link

davej commented Aug 21, 2019

Also see #1609

@ghost
Copy link

ghost commented Aug 21, 2019

Brazil is off too. Getting error HTTP 500: Internal error on deploying to firebase hosting. It started by 12:00 PM

@poleselfg
Copy link

Same here

@junaidte14
Copy link

junaidte14 commented Aug 21, 2019

I was getting the same error 5 minutes ago but now it's working fine.

@poleselfg
Copy link

I was getting the same error 5 minutes ago but now it's working fine.

let me try

@junaidte14
Copy link

I have tested again and now I'm getting the same error. What's going on.....

@poleselfg
Copy link

I was getting the same error 5 minutes ago but now it's working fine.

nope same here in argentina

@KishiTheMechanic
Copy link

I'm still getting 500 error from Japan

@junaidte14
Copy link

now it's working for me again. I guess the development team is testing the issue by enabling/disabling access to deploy.

@KishiTheMechanic
Copy link

Oh, thank you now it's working fine for me as well.

@poleselfg
Copy link

WORKING FINE NOW!

@FCE-tc
Copy link

FCE-tc commented Aug 22, 2019

Can confirm working again. Thanks for the fix.

@raskri
Copy link

raskri commented Oct 24, 2019

This is happening again!

@quentin-wrnr
Copy link

Same for me, error 500 on several projects

@MrDrummer
Copy link

MrDrummer commented Oct 24, 2019

Seems to be back up! It actually did deploy, but I tried again as it appeared to happen way too quickly and it seems to be failing still.

@quentin-wrnr
Copy link

@MrDrummer not for me in France :/

@KappaDiElle
Copy link

happening again now for me in Italy,
but "--only functions" works well

@MrDrummer
Copy link

Seems to be working again now.

Quite ironic, as I was trying to deploy our dependencies status dashboard, which includes GCP and firebase!

@samtstern
Copy link
Contributor

Hey everyone just FYI: if you get 500 errors using Firebase services you should always do this:

  1. Check the status dashboard and see if it's a known incident.
  2. If there's nothing there, write in to Firebase support

500 errors mean that the backend is experiencing an unexpected issue and GitHub is not a great place to get help with urgent issues like that, especially since none of our backend code is on GitHub.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests