Getting started with gcutil and Compute Engine: Error: Resource projects / <project-id> not found

I am trying to get up and running using the Google Compute Engine and follow the start / hello world tutorial . After installing gcutil (running OSx) and Authentication on Google Compute Engine, the command should pass the following command

$ gcutil getproject --project=<project-id> --cache_flag_values 

However, the following error message appears

 Error: The resource 'projects/<project-id>' was not found 

Project ID is the ID of the authenticated project. If I try to execute any of the following commands in the tutorial (but including the project identifier, since resetting the value failed), for example.

 $ gcutil addfirewall http2 --project=<project-id> --description="Incoming http allowed." --allowed="tcp:http" 

The same error is returned.

I work in the $ HOME directory (the same directory that contains the gcutil-1.8.0 folder).

Can someone please tell me why I get projects that did not find the error, and if possible, how to overcome it?

+4
source share
4 answers

Visit the project page "Calculate the engine" once, then run the command again:

 $ gcutil getproject --project=<project-id> --cache_flag_values 

for me. it works.

+4
source

You must first enable billing in order to use the computing engine.

https://console.developers.google.com/billing

+2
source

Often you will see this error when authentication / authorization fails.

Verify that the gcutil user account is authorized according to the user account specified in the (Cloud Console) command section [https://cloud.google.com/console]. You can find this under the gear icon in the upper right.

To confirm which account gcutil is using, run the following command:

 $ gcutil auth --confirm_email --just_check_auth INFO: Authorization succeeded for user xxx@xxx.com 

If you find that you are logged in with the wrong account (for example, several people from chrome), you can re-authorize gcutil with:

 $ gcutil auth 

Make sure you follow this link in the right tab / browser context.

+1
source

You can use two steps:

Step 1: You turn on billing to use the Compute Engine .

Step 2: go to the Compute Engine project page once, then run the command again.

it works great for me.

0
source

Source: https://habr.com/ru/post/1483879/


All Articles