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.

Error on deploying through Firebase CLI: Error: Server Error. connect ETIMEDOUT

See original GitHub issue

[REQUIRED] Environment info

Firebase version 8.6.0

firebase-tools:

Platform: : Ubuntu

[REQUIRED] Test case

Firebase CLI Issue

I am Trying to deploy the Cloud functions to my Project. I get this Error: Server Error. connect ETIMEDOUT most of the time. Checked with the network from my side, seems stable.

[REQUIRED] Steps to reproduce

  1. Open Terminal
  2. Type firebase deploy

[REQUIRED] Expected behavior

Deploy all the Cloud functions

[REQUIRED] Actual behavior

Error: Server Error. connect ETIMEDOUT <IP>

[debug] [2020-08-10T15:52:04.036Z] ----------------------------------------------------------------------
[debug] [2020-08-10T15:52:04.037Z] Command:       /usr/local/lib/node_modules/firebase-tools/lib/bin/firebase.js /home/aravind/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/bin/firebase deploy --only functions
[debug] [2020-08-10T15:52:04.037Z] CLI Version:   8.7.0
[debug] [2020-08-10T15:52:04.037Z] Platform:      linux
[debug] [2020-08-10T15:52:04.037Z] Node Version:  v12.18.1
[debug] [2020-08-10T15:52:04.037Z] Time:          Mon Aug 10 2020 21:22:04 GMT+0530 (India Standard Time)
[debug] [2020-08-10T15:52:04.038Z] ----------------------------------------------------------------------
[debug] [2020-08-10T15:52:04.038Z] 
[debug] [2020-08-10T15:52:04.042Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2020-08-10T15:52:04.042Z] > authorizing via signed-in user
[debug] [2020-08-10T15:52:04.043Z] [iam] checking project linarc-collaboration-dev for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]
[debug] [2020-08-10T15:52:04.044Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2020-08-10T15:52:04.044Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token  
 <request body omitted>
[debug] [2020-08-10T15:52:12.764Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=utf-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 10 Aug 2020 15:52:12 GMT","server":"scaffolding on HTTPServer2","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-27=\":443\"; ma=2592000,h3-T050=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[debug] [2020-08-10T15:52:12.776Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/linarc-collaboration-dev:testIamPermissions  
 {"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]}
[debug] [2020-08-10T15:52:14.016Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 10 Aug 2020 15:52:13 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","server-timing":"gfet4t7; dur=1139","alt-svc":"h3-29=\":443\"; ma=2592000,h3-27=\":443\"; ma=2592000,h3-T050=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[debug] [2020-08-10T15:52:14.020Z] >>> HTTP REQUEST POST https://iam.googleapis.com/v1/projects/linarc-collaboration-dev/serviceAccounts/linarc-collaboration-dev@appspot.gserviceaccount.com:testIamPermissions  
 {"permissions":["iam.serviceAccounts.actAs"]}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mddarmawancommented, Jan 14, 2021

same problem here… npm install -g firebase-tools@latest doesn´t solve the problem

this is my console output: image

Same here image

2reactions
samtsterncommented, Aug 11, 2020

@iamaravinds as you can see here, others have experienced ETIMEDOUT issues as well: https://github.com/firebase/firebase-tools/issues?q=is%3Aissue+ETIMEDOUT

In your case I think you can solve it by updating to the latest version of the Firebase CLI. You’re running version 6.5.2 which tries to make this request:

HTTP REQUEST GET https://admin.firebase.com/v1/projects

However firebase.com no longer exists. Try updating:

npm install -g firebase-tools@latest
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Server Error. connect ETIMEDOUT 104.197.85.31:443
Just close your terminal and re-run these commands. firebase login and now try again firebase deploy --only hosting. It works for me!!!
Read more >
Server Error. connect ETIMEDOUT 104.197.85.31:443
i am using firebase cli and i try the following $ firebase init. the cli continue with the message : You're about to...
Read more >
firebase function deploy error - connect ETIMEDOUT
I'm in china, and I have opened my v p n service, then I tried to ping this ip address, the result is...
Read more >
[Solved]-Firebase functions deploy results in "Error in the build ...
I meet this problem too and I fix it by command lines below. npm install firebase-functions@latest firebase-admin@latest --save npm install -g firebase-tools.
Read more >
Admin SDK error handling - Firebase - Google
Certain API errors also contain a service error code that is specific to the API that generated the error. For example some errors...
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