Firebase托管部署失败 [英] Firebase hosting deployment failing

查看:68
本文介绍了Firebase托管部署失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行 firebase deploy 将运行几分钟,然后出现超时错误 Error:ESOCKETTIMEDOUT

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

我已经成功地进行了多次部署,除了我的项目的前端(用React写)之外,没有做任何改动.

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

我有一个单独的文件夹,其中包含我的云函数,这些文件夹可以与 firebase deploy --only函数

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

我曾尝试使用 firebase deploy -常规部署进行部署,但功能标记除外,但是没有运气.

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

还尝试更新npm和firebase-tools

Also tried updating npm and firebase-tools

运行 firebase deploy --debug 几分钟后会产生以下错误:

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

推荐答案

正如@thmsdnnr所提到的,此错误似乎是由Firebase上的问题引起的.早上首先尝试了一个新的部署,然后进行了所有尝试.

As @thmsdnnr mentioned, it seems that this error was caused by issues at firebase. Tried a new deployment first thing in the morning and everything went through first try.

这篇关于Firebase托管部署失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆