• 7

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

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: ( 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.

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.

  • 4
Reply Report
      • 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 ??
    • 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.
      • 1
    • 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

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags