Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase hosting deployment failing

Running firebase deploy will run for a few minutes before giving me a timeout error Error: ESOCKETTIMEDOUT

I've successfully deployed multiple times earlier, without changing anything but the frontend of my project (written in React).

I have a separate folder with my cloud functions, which deploy perfectly with firebase deploy --only functions

I've tried regular deployment with firebase deploy as well as with --except functions flag but with no luck.

Also tried updating npm and firebase-tools

running firebase deploy --debug yields the following error after a few minutes:

[2019-09-12T16:25:59.115Z] FirebaseError: Task 6822eef99ebcce0df4baf9cc03e49b399d046c7cdfeb5b2a2ef2511c1df963d1 failed: retries exhausted after 6 attempts
[2019-09-12T16:25:59.115Z] [hosting][upload queue][FINAL] max=7278, min=7278, avg=7278, active=4, complete=2, success=1, errored=1, retried=25, total=6, elapsed=192701
[2019-09-12T16:25:59.127Z] FirebaseError: Task f98dce8e7830e8cd5881bc5e109453c208ff7fc643d61ad64ca34a7d098abc2c failed: retries exhausted after 6 attempts
[2019-09-12T16:25:59.127Z] FirebaseError: Task 5a7166c6cab1624c8a0c074fc535a23685c338be838012dced4006be3cc6dedd failed: retries exhausted after 6 attempts
[2019-09-12T16:25:59.128Z] FirebaseError: Task 76dd5b5551e5cd383875692455ff415bf8df56c97f67e4a3746e3c53c23478e1 failed: retries exhausted after 6 attempts
[2019-09-12T16:25:59.129Z] FirebaseError: Task 541bb1a8843dd0c62ea7e673f2260c85e0b456f35cfde358b6ab3be936e9c705 failed: retries exhausted after 6 attempts
[2019-09-12T16:25:59.211Z] Error: ESOCKETTIMEDOUT
    at ClientRequest.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js:816:19)
    at Object.onceWrapper (events.js:298:28)
    at ClientRequest.emit (events.js:209:13)
    at ClientRequest.EventEmitter.emit (domain.js:476:20)
    at TLSSocket.emitRequestTimeout (_http_client.js:690:9)
    at Object.onceWrapper (events.js:298:28)
    at TLSSocket.emit (events.js:209:13)
    at TLSSocket.EventEmitter.emit (domain.js:476:20)
    at TLSSocket.Socket._onTimeout (net.js:468:8)
    at listOnTimeout (internal/timers.js:531:17)

Error: Task 6822eef99ebcce0df4baf9cc03e49b399d046c7cdfeb5b2a2ef2511c1df963d1 failed: retries exhausted after 6 attempts
like image 506
Algorythmic Avatar asked Sep 12 '19 16:09

Algorythmic


People also ask

Can Firebase be used for Hosting?

Firebase Hosting provides fast and secure hosting for your web app, static and dynamic content, and microservices.

How many websites can you host on Firebase?

The multisite feature supports a maximum of 36 sites per Firebase project.

Does Firebase Hosting have CDN?

Firebase Hosting is a fully-managed hosting service for static and dynamic content as well as microservices. The service is backed by SSD storage and a global CDN (content delivery network).


1 Answers

Delete the hidden folder in you project root directory.

.firebase/hosting.*.cache

like image 117
Sarang Avatar answered Sep 19 '22 15:09

Sarang