The current Google Cloud project does not contain an App Engine application. Use `gcloud beta app create` to initialize an App Engine application within the project

1,076 views
Skip to first unread message

Siddharth Jain

unread,
Jun 15, 2020, 12:53:51 PM6/15/20
to Google App Engine
Hello,

I am trying to re-deploy a GAE app. Last deployment I did was way back in 2018. I am deploying by running following command

gcloud app deploy

but I get this error:

You are about to deploy the following services:
 
- xxx/default/20200614t201625 (from [c:\my_dir\app.yaml])
     
Deployed URL: [https://xxx.appspot.com]


Do you want to continue (Y/n)?  Y


ERROR
: (gcloud.app.deploy) The current Google Cloud project [xxx] does not contain an App Engine application. Use `gcloud beta app create` to initialize an App Engine application within the project.


I doubt this error message because I have previously deployed an app and it is even live at https://xxx.appspot.com. I don't want to screw up anything. Can anybody help?

Siddharth Jain

unread,
Jun 15, 2020, 2:59:15 PM6/15/20
to Google App Engine
I can even go to the app engine dashboard and see details like when I deployed last time

Screen Shot 2020-06-15 at 11.56.21 AM.png

so I think I am getting this error incorrectly. It says "The current Google Cloud project [xxx] does not contain an App Engine application." whereas it most definitely does. Could anybody from Google help here?

Elliott (Cloud Platform Support)

unread,
Jun 15, 2020, 6:30:40 PM6/15/20
to Google App Engine
Hello Siddharth,

It seems that you would like to report an issue with GCP, deploying and application. Google Groups is meant to discuss general Google products. The best way to do this is to open a Google Issue Tracker, where your issue could be marked as private to share project information.

Siddharth Jain

unread,
Jun 15, 2020, 7:21:20 PM6/15/20
to Google App Engine
Hi Elliott,

but it only allows to create a public tracker. How do I create a private issue here?

Siddharth Jain

unread,
Jun 15, 2020, 9:21:11 PM6/15/20
to Google App Engine
I fixed this by running

gcloud components update

turns out I was using one and a half year old components.
After installing the components I also had to enable billing at https://console.cloud.google.com/billing/linkedaccount?

I still get permission denied errors once in a while when I try to deploy e.g.:

Updating service [default]...failed.
ERROR
: (gcloud.app.deploy) Error Response: [7] failed to fetch metadata from GCR, with reason: generic::permission_denied: failed to fetch metadata from GCR for image us.gcr.io/xxx/app-engine-tmp/app/ttl-2h:68b61902-1810-4fa5-8345-63c2b86cdc66, with reason: generic::permission_denied: fetchImageMetadata failed for image us.gcr.io/xxx/app-engine-tmp/app/ttl-2h:68b61902-1810-4fa5-8345-63c2b86cdc66, reason: generic::permission_denied: error fetching manifest (digest "sha256:c083a27da29cd7269bd95fa565fe33f2c01dfa963dcd023a33b98701bac0a747"): generic::permission_denied: HTTP/403 from http://storage.googleapis.com/us.artifacts.xxx.appspot.com/containers/images/sha256:c083a27da29cd7269bd95fa565fe33f2c01dfa963dcd023a33b98701bac0a747


Your current Cloud SDK version is: 124.0.0
You will be upgraded to version: 296.0.1

┌───────────────────────────────────────────────────────┐
│           These components will be removed.           │
├────────────────────────────────┬────────────┬─────────┤
│              Name              │  Version   │   Size  │
├────────────────────────────────┼────────────┼─────────┤
│ Windows command line ssh tools │ 2016.05.13 │ 1.8 MiB │
└────────────────────────────────┴────────────┴─────────┘
┌─────────────────────────────────────────────────────────────────────────────┐
│                      These components will be updated.                      │
├─────────────────────────────────────────────────────┬────────────┬──────────┤
│                         Name                        │  Version   │   Size   │
├─────────────────────────────────────────────────────┼────────────┼──────────┤
│ BigQuery Command Line Tool                          │     2.0.57 │  < 1 MiB │
│ BigQuery Command Line Tool (Platform Specific)      │     2.0.56 │  < 1 MiB │
│ Bundled Python 2.7                                  │            │          │
│ Cloud SDK Core Libraries                            │ 2020.06.10 │ 14.8 MiB │
│ Cloud SDK Core Libraries (Platform Specific)        │ 2020.04.10 │  < 1 MiB │
│ Cloud Storage Command Line Tool                     │       4.51 │  3.5 MiB │
│ Cloud Storage Command Line Tool (Platform Specific) │       4.50 │  < 1 MiB │
│ Cloud Tools for PowerShell                          │            │          │
│ gcloud Beta Commands                                │ 2019.05.17 │  < 1 MiB │
│ gcloud app Python Extensions                        │     1.9.91 │  6.1 MiB │
└─────────────────────────────────────────────────────┴────────────┴──────────┘
┌────────────────────────────────────────────────────────┐
│          These components will be installed.           │
├────────────────────────────────┬────────────┬──────────┤
│              Name              │  Version   │   Size   │
├────────────────────────────────┼────────────┼──────────┤
│ Bundled Python 2.7             │     2.7.13 │ 13.3 MiB │
│ Bundled Python 3.7             │      3.7.5 │ 14.7 MiB │
│ Bundled Python 3.7             │            │          │
│ Cloud Datastore Emulator       │      2.1.0 │ 18.4 MiB │
│ Cloud Tools for PowerShell     │   1.0.1.10 │ 17.9 MiB │
│ Windows command line ssh tools │            │          │
│ Windows command line ssh tools │ 2020.01.03 │  3.2 MiB │
│ gRPC python library            │     1.20.0 │  1.5 MiB │
│ gRPC python library            │            │          │
│ gcloud cli dependencies        │ 2018.08.03 │  1.3 MiB │
│ gcloud cli dependencies        │ 2020.06.05 │  3.4 MiB │
└────────────────────────────────┴────────────┴──────────┘

A lot has changed since your last upgrade.  For the latest full release notes,
please visit:

Do you want to continue (Y/n)?

╔════════════════════════════════════════════════════════════╗
╠═ Creating update staging area                             ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: BigQuery Command Line Tool                 ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: BigQuery Command Line Tool (Platform Sp... ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Bundled Python                             ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Cloud SDK Core Libraries                   ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Cloud SDK Core Libraries (Platform Spec... ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Cloud Storage Command Line Tool            ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Cloud Storage Command Line Tool (Platfo... ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: PowerShell cmdlets                         ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Windows command line ssh tools             ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: gcloud Beta Commands                       ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: gcloud app Python Extensions               ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: BigQuery Command Line Tool                   ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: BigQuery Command Line Tool (Platform Spec... ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Bundled Python 2.7                           ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Bundled Python 2.7                           ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Bundled Python 3.7                           ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Bundled Python 3.7                           ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud Datastore Emulator                     ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud SDK Core Libraries                     ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud SDK Core Libraries (Platform Specific) ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud Storage Command Line Tool              ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud Storage Command Line Tool (Platform... ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud Tools for PowerShell                   ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud Tools for PowerShell                   ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Windows command line ssh tools               ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Windows command line ssh tools               ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gRPC python library                          ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gRPC python library                          ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gcloud Beta Commands                         ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gcloud app Python Extensions                 ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gcloud cli dependencies                      ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gcloud cli dependencies                      ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Creating backup and activating new installation          ═╣
╚════════════════════════════════════════════════════════════╝

Performing post processing steps...done.

Start a new shell for the changes to take effect.


Update done!

WARNING: You will be unable to deploy applications after November 30, 2019 without adding a billing instrument to your project. Please add one at https://console.cloud.google.com/billing/linkedaccount?siddharth-jain-hrd

Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [7] Access Not Configured. Cloud Build has not been used in project siddharth-jain-hrd before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudbuild.googleapis.com/overview?project=siddharth-jain-hrd then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

George (Cloud Platform Support)

unread,
Jun 16, 2020, 12:41:12 PM6/16/20
to Google App Engine
Hello Siddharth,

Glad to read you have troubleshot your issue successfully. You are welcome opening separate issues in the Public Issue Tracker, if you are faced with other Cloud Platform related problems. This applies now, for the remaining issues you describe, which seem to be project-specific. You'll have to provide private information such as project numbers, so you should open a private issue in the PIT.
Reply all
Reply to author
Forward
0 new messages