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.

Random build timeouts using `firebase deploy`

See original GitHub issue

I have a large project with many cloud functions, and lately an error has been popping up on random functions in my deploy: Deployment error. Build failed: Build has timed out. Sometimes it says Build error details not available instead of the timeout.

This affects a small percentage of functions but is enough to be annoying (often requiring many redeploys).

Triage

If I check Stackdriver logs for the build failure, I see an error message INVALID_ARGUMENT in all cases.

But I never used to get this before and the timeouts are not at all deterministic (when they occur OR for which functions they occur). If this is a GCP limit I’m running into, I’m not really sure which one it is.

Moreover, some days seem to have far fewer build timeouts than other days.

Environment

The only things that have changed outside the code are package version bumps, including an upgrade from the Node 6 runtime to the Node 10 runtime, as well as a version bump to the latest firebase CLI (installed globally).

Also worth noting is that I do a large number of parallel deploys, but the errors occur even when only a handful of functions are being deployed concurrently.

Any ideas? Much appreciated!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:15
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
opcommented, Sep 12, 2019

We’ve seen an increasing amount of timeouts too. Might be our CI provider that’s having issues though. (We’re also on Node 10.)

Wouldn’t it make sense to make an effort to retry on timeout failures though?

1reaction
whaattcommented, Sep 12, 2019

Just for clarity, I think two separate issues are being discussed in this thread: (A) the original deploy issue for Cloud Functions and (B) the Firebase hosting issue this morning, which is being worked on (as @mitchelloptima noted).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase-Hosted Cloud Function retrying on any request that ...
This behavior is ONLY consistently replicable when the function is called on a domain that is proxied through firebase hosting. It seems to...
Read more >
Best practices for Cloud Firestore - Firebase
Use the best practices listed here as a quick reference when building an application that uses Cloud Firestore. Database location. When you create...
Read more >
Random Bug Deploying Functions : r/Firebase - Reddit
It appears that when trying to build my functions, Firebase cli is looking at the wrong package.json file. In my main Vue project,...
Read more >
Build a Multiplayer Game with JavaScript & Firebase - YouTube
In this video, we're going to make a simple online multiplayer game from scratch with HTML, CSS, vanilla JavaScript and Firebase.
Read more >
gcloud firebase test android run
gcloud firebase test android run --app=APP_APK --timeout=100s ... bucket where raw test results will be stored (default: a timestamp with a random suffix)....
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