Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase deploy stucks / hangs without error message

The command Firebase deploy always stucks when I run it.

Here is the verbose info:

    $ firebase deploy --token "SOMETOKEN" --debug
----------------------------------------------------------------------
Command:      /usr/local/bin/node /usr/local/bin/firebase deploy --token SOMETOKEN --debug
CLI Version:  3.0.0
Platform:     darwin
Node Version: v5.0.0
Time:         Tue May 24 2016 14:25:31 GMT+0800 (CST)
----------------------------------------------------------------------

> command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
> refreshing access token with scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
>>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token refresh_token=SOMETOKEN, client_id=XXXXXX-XXXXXX.apps.googleusercontent.com, client_secret=XXXXXX, grant_type=refresh_token, scope=email openid https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase
<<< HTTP RESPONSE 200 cache-control=no-cache, no-store, max-age=0, must-revalidate, pragma=no-cache, expires=Mon, 01 Jan 1990 00:00:00 GMT, date=Tue, 24 May 2016 06:25:33 GMT, vary=X-Origin, Origin,Accept-Encoding, content-type=application/json; charset=UTF-8, x-content-type-options=nosniff, x-frame-options=SAMEORIGIN, x-xss-protection=1; mode=block, server=GSE, alternate-protocol=443:quic, alt-svc=quic=":443"; ma=2592000; v="34,33,32,31,30,29,28,27,26,25", accept-ranges=none, connection=close
>>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/hackdaychat
<<< HTTP RESPONSE 200 server=nginx, date=Tue, 24 May 2016 06:25:34 GMT, content-type=application/json; charset=utf-8, content-length=109, connection=close, x-content-type-options=nosniff, strict-transport-security=max-age=31536000; includeSubdomains, cache-control=no-cache, no-store
>>> HTTP REQUEST GET https://admin.firebase.com/v1/database/hackdaychat/tokens
<<< HTTP RESPONSE 200 server=nginx, date=Tue, 24 May 2016 06:25:36 GMT, content-type=application/json; charset=utf-8, content-length=423, connection=close, x-content-type-options=nosniff, strict-transport-security=max-age=31536000; includeSubdomains, cache-control=no-cache, no-store

As you can see, I tried it with a token I have created before via firebase login:ci.

Without a token it is the same result.

I have also created the local Firebase project. There was no error during Firebase init.

Firebase --list works fine. FireBase login and Firebase logout works fine.

Some additional info:

  • $ node -v --> v5.0.0
  • $ npm -v --> 3.3.6
  • $ firebase -V --> 3.0.0
  • OS: OS X 10.11.4
  • Location: Shanghai, but using Proxy to Singapur.
  • Access to Firebase website works fine.
  • I have owner rights on the project I am using
  • I try to deploy some kind of empty project. Means: My public folder only contains index.html and 404.html.

Anyone got an idea what could go wrong?

like image 566
Alex Avatar asked May 24 '16 06:05

Alex


2 Answers

I got similar problem

Try

firebase logout

then

firebase login 

it's works on my case. Once i logged in it's seem firebase app required extra permissions

also

npm update -g firebase-tools
like image 182
Kawisathorn Sangiemchit Avatar answered Oct 22 '22 06:10

Kawisathorn Sangiemchit


Same here

firebase login and logout work fine. Same with init.

Also tried with and without a token. Same result as described by Frank.

I am behind a corporate proxy.

  • node -v --> v4.4.2
  • firebase --version --> 3.0.1
  • npm -v --> 2.15.0
like image 38
Phillip Bge Avatar answered Oct 22 '22 05:10

Phillip Bge