-
Notifications
You must be signed in to change notification settings - Fork 974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to create a new project #2028
Comments
Does bird test already exist in Google Cloud? Is it possible you just need
to link it to Firebase? If so you can do it either via the Firebase
console or the CLI.
…On Mon, Mar 16, 2020, 1:10 PM Mohd Arshul Mansoori ***@***.***> wrote:
[REQUIRED] Environment info
*firebase-tools:* 7.15.0
*Platform:* linux
[REQUIRED] Test case
$ firebase projects:create
? Please specify a unique project id (warning: cannot be modified afterward) [6-30 characters]:
bird-test
? What would you like to call your project? (defaults to your project ID) Bird Com
✖ Creating Google Cloud Platform project
Error: Failed to create Google Cloud project. See firebase-debug.log for more info.
[REQUIRED] Steps to reproduce
firebase projects:create
[REQUIRED] Expected behavior
Create new firebase project
[REQUIRED] Actual behavior
Showing Error:
✖ Creating Google Cloud Platform project
Error: Failed to create Google Cloud project. See firebase-debug.log for more info.
[2020-03-16T13:06:26.340Z] ----------------------------------------------------------------------
[2020-03-16T13:06:26.342Z] Command: /usr/bin/node /usr/bin/firebase projects:create --debug
[2020-03-16T13:06:26.343Z] CLI Version: 7.15.0
[2020-03-16T13:06:26.343Z] Platform: linux
[2020-03-16T13:06:26.343Z] Node Version: v10.16.0
[2020-03-16T13:06:26.343Z] Time: Mon Mar 16 2020 18:36:26 GMT+0530 (India Standard Time)
[2020-03-16T13:06:26.343Z] ----------------------------------------------------------------------
[2020-03-16T13:06:26.343Z]
[2020-03-16T13:06:26.347Z] > 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"]
[2020-03-16T13:06:26.347Z] > authorizing via signed-in user
? Please specify a unique project id (warning: cannot be modified afterward) [6-30 characters]:
bird-test
? What would you like to call your project? (defaults to your project ID)
⠋ Creating Google Cloud Platform project[2020-03-16T13:06:33.371Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects
projectId=bird-test, name=bird-test, parent=undefined
⠧ Creating Google Cloud Platform project[2020-03-16T13:06:35.604Z] <<< HTTP RESPONSE 409 vary=X-Origin, Referer, Origin,Accept-Encoding, content-type=application/json; charset=UTF-8, date=Mon, 16 Mar 2020 13:06:35 GMT, server=ESF, cache-control=private, x-xss-protection=0, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, server-timing=gfet4t7; dur=1658, alt-svc=quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000, accept-ranges=none, transfer-encoding=chunked
[2020-03-16T13:06:35.605Z] <<< HTTP RESPONSE BODY code=409, message=Requested entity already exists, status=ALREADY_EXISTS
[2020-03-16T13:06:35.613Z] HTTP Error: 409, Requested entity already exists
✖ Creating Google Cloud Platform project
[2020-03-16T13:06:36.512Z] FirebaseError: HTTP Error: 409, Requested entity already exists
at module.exports (/usr/lib/node_modules/firebase-tools/lib/responseToError.js:38:12)
at Request._callback (/usr/lib/node_modules/firebase-tools/lib/api.js:39:35)
at Request.self.callback (/usr/lib/node_modules/firebase-tools/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
at Request.EventEmitter.emit (domain.js:448:20)
at Request.<anonymous> (/usr/lib/node_modules/firebase-tools/node_modules/request/request.js:1154:10)
at Request.emit (events.js:198:13)
at Request.EventEmitter.emit (domain.js:448:20)
at IncomingMessage.<anonymous> (/usr/lib/node_modules/firebase-tools/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:286:20)
at IncomingMessage.emit (events.js:203:15)
at IncomingMessage.EventEmitter.emit (domain.js:448:20)
at endReadableNT (_stream_readable.js:1129:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Error: Failed to create Google Cloud project. See firebase-debug.log for more info.
Output of firebase projects:list
✔ Preparing the list of your Firebase projects
No projects found.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2028>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACATB2XANOW6BY4A2YSI3W3RHYQMXANCNFSM4LMGQ66Q>
.
|
@samtstern No there's no project named bird-test, also I tried other names as well but faced the same issue. |
It looks like As an action that could be taken: that error message should be output in the command. |
@bkendall yeah, perhaps it exists for some other user somewhere in google, but not for my account. |
Yes, they have to be globally unique across google (cloud platform). We could have some unique ID generation a loop if a In the meantime, the console does do some random generating if there's a conflict, if it's convenient for you to create the projects there. |
No, actually I am trying to create a script to set up a firebase project, I'll try to provide the unique ID as of now but it may not be a foolproof approach. It would be really helpful if the unique ID is generated automatically by CLI. |
@arshul thanks for the feedback! Right now it's not feasible for the CLI to check/generate unique IDs so I am going to close this. If you ever get stuck here, the Firebase console does this automatically during project creation so it's better to create projects there and then use them through the CLI. |
Same error, but I've tried several id's and doesn't work. Maybe a connection problem? |
@monticp could be! I would suggest creating your project in the Firebase console in that case. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I had the same issue , I disconnected my vpn and it worked right away |
It was a credential problem. Nothing about Firebase at the end. |
I logged in successfully using firebase login, but it still showing the same error |
I've faced same issues! Error: Failed to create project. See firebase-debug.log for more info. |
im facing the same issue, i tried, firebase login --reauth yet it doesnt work tried 5-10 unique project names still not happeining. |
I solved this issue. I was using the random identifier '0000001' as a unique identifier, but it was not working and always gave the same error: 'Failed to create project. See firebase-debug.log for more info.' However, when I logged in and used the unique identifier provided by the Google Console, it worked right away in the CLI. I think there was a problem with my initial unique identifier. Hope this helps. |
Hey, I was having the same issue. What worked for me was creating my project on the Firebase Console website https://console.firebase.google.com
|
[REQUIRED] Environment info
firebase-tools: 7.15.0
Platform: linux
[REQUIRED] Test case
[REQUIRED] Steps to reproduce
firebase projects:create
[REQUIRED] Expected behavior
Create new firebase project
[REQUIRED] Actual behavior
Showing Error:
Output of
firebase projects:list
The text was updated successfully, but these errors were encountered: