3

I have started my google cloud setup today. Tried to follow instructions in interactive tutorial. Setting up my First App that uses Node.js worked fine. But deploying app to Compute Engine failed with following error.

ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred while creating a Google Cloud Storage bucket.

I have added my account as Admin to 3 Storage buckets I found with my account.

4

Try by setting this configuration parameter first:

gcloud config set app/use_deprecated_preparation True

as proposed in Google's Public Issue Tracker

If that doesn't work, can you provide the link to the tutorial you followed, so that the error can be reproduced?

Usually, it's a matter of setting the right permissions (as you pointed out regarding your account), but when you deploy your app to a Compute Engine instance, that instance will have to communicate with the Cloud Storage Buckets. This means that the Compute Engine Service Account needs to have the proper IAM permissions to access the Cloud Storage.

You can also create a new service account that your app can use to access specific resources in your Google Cloud Project.

Check your IAM and/or service accounts to see the available accounts, roles and permissions.

7
  • Which roles and permissions are you talking about can you please tell ?? – Sudhanshu Gaur Nov 22 '17 at 9:19
  • For example, roles/storage.admin to have full privileges over the whole storage... Roles specify a bundle of permissions given to a specific account. Here are the Cloud Storage roles described. You can either add roles at a bucket level or at a more general project level, as explained here. – Tudormi Nov 22 '17 at 9:51
  • It depends on what you want to permit to another user (through their account), or to a machine/product/application (through their service account). You can permit read, write, delete, full admin access, etc. Either per bucket or per the whole storage... More details here – Tudormi Nov 22 '17 at 9:55
  • 2
    Also i am the only owner here there are no other users so I think I will be having all permissions for my app engine. Don't you think it is not related to Permissions ?? – Sudhanshu Gaur Nov 22 '17 at 11:41
  • 1
    This issue is currently being investigated: here and here – Tudormi Nov 22 '17 at 16:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.