Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Deploy Error: Authorization failed

I am trying the following firebase deploy command and I get the following error:

Error: Authorization failed. This account is missing the following required permissions on project ID project:

  cloudfunctions.functions.create   cloudfunctions.functions.delete   cloudfunctions.functions.get   cloudfunctions.functions.list   cloudfunctions.functions.update   cloudfunctions.operations.get   firebase.projects.get   firebasehosting.sites.update 

I have all the accesses. I am working with angular 6.

I should mention that this project was working normal in a previous project in Firebase. I have created a new one and I want to migrate the contents of the previous one to this new one and there the problem started.

I should also mention that before I was logged in with another user.

Any ideas?

like image 529
Paco Zevallos Avatar asked Nov 05 '18 02:11

Paco Zevallos


1 Answers

If you created your project in the fireabse website account, during firebase deployment we need to select that firebase project for hosting. Also if you created more than one project in the firebase account, we need to select one project for the deployment process. For that you need to run the below command.

firebase use --add

It will list multiple project and you can choose one from that option. Then run firebase deploy.

like image 149
Roshil K Avatar answered Sep 30 '22 14:09

Roshil K