Here's the full error:
ERROR: build step 2 "us.gcr.io/gae-runtimes/buildpacks/google-gae-22/python/builder:python_20231016_RC00" failed: step exited with non-zero status: 1
Hi @mark4,
Welcome to Google Cloud Community!
If you are getting the error "ERROR: build step 2 "us.gcr.io/gae-runtimes/buildpacks/google-gae-22/python/builder:python_20231016_RC00" failed: step exited with non-zero status: 1" when deploying your Python app to Google App Engine, you can try the following:
Hi @christianpaula ,
I tried with both my original runtime (python37) and with the new runtime I want to use (python312) and got the same error with both. So now I can't change my website at all because each attempt at deployment fails.
I don't use "buildpacks" nor do I know what they are. The command I use is: `gcloud --project=diffpdf app deploy app.yaml`. After this gcloud uploads all my website's files and then did the deployment for me and my website would be updated.
Using the above command always worked in the past which is why I think this is a google bug rather than my bug: after all the error is output by a program that gcloud calls behind the scenes over which I have no control.
I tried reporting it as an issue: https://issuetracker.google.com/issues/307323840 (which has full details) but was told to use this forum for help.
I just retried using the python39 runtime since gcloud installs its own local Python 3.9, but that fails just the same:
$ gcloud version
Google Cloud SDK 452.0.1
bq 2.0.98
bundled-python3-unix 3.9.17
core 2023.10.25
gsutil 5.27
$ gcloud --project=diffpdf app deploy app.yaml
Services to deploy:
descriptor: [/home/mark/qtrac/www-qtrac/app.yaml]
source: [/home/mark/qtrac/www-qtrac]
target project: [diffpdf]
target service: [default]
target version: [20231028t125756]
target url: [https://diffpdf.appspot.com]
target service account: [diffpdf@appspot.gserviceaccount.com]
Do you want to continue (Y/n)?
Beginning deployment of service [default]...
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 261 files to Google Cloud Storage ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build a2c97c37-178e-40bb-8822-354de95606f4 status: FAILURE
An unexpected error occurred. Refer to build logs: https://console.cloud.google.com/cloud-build/builds;region=us-central1/a2c97c37-178e-40bb-8822-354de...
Full build logs: https://console.cloud.google.com/cloud-build/builds;region=us-central1/a2c97c37-178e-40bb-8822-354de...
The log has the same error message as I originally reported.
It looks like a gcloud bug to me--especially since it says "unexpected error"--but if you want to see my app.yaml or any other file please ask.
I am very frustrated that I can't update my website.
I replied with more details and then the next email I had was an automated one asking if your reply solved my problem. Your reply did not solve it as my reply explained. But there seems to be no way to say that.
I can no longer update my website using the gcloud tool so I don't know what to do.