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?
and enable cloud build 
at 
https://console.developers.google.com/apis/api/cloudbuild.googleapis.com/overview?project=xxx

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:
  https://cloud.google.com/sdk/release_notes

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.


On Monday, June 15, 2020 at 9:53:51 AM UTC-7, Siddharth Jain wrote:
>
> 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?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1b209822-e246-499c-9e6e-408b012cb4b0o%40googlegroups.com.

Reply via email to