I can not deploy the my flask app in app engine

168 views
Skip to first unread message

Jayesh Manani

unread,
Mar 3, 2021, 11:17:25 AM3/3/21
to Google App Engine
Hello,
I have been trying to deploy a new version also, and I also tried to deploy the same version, But it was saying like Error Response: [9] Cloud build,

Then I checked my log and can not find something more informative why this is happening?
 
I can find in the log message like this : Already have image (with digest): asia.gcr.io/gae-runtimes/buildpacks/python37/builder:python37_20210208_3_7_9_RC00

and in step 4 analyzer I can see something like 

[31;1mERROR: [0mfailed to initialize cache: failed to create image cache: accessing cache image "asia.gcr.io/{project_name}/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache:ba7aa57d-5535-4db5-b063-89a23ff21ef3": connect to repo store 'asia.gcr.io/{bucket_name}/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache:ba7aa57d-5535-4db5-b063-89a23ff21ef3': GET https://asia.gcr.io/v2/{bucket_name}/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache/manifests/ba7aa57d-5535-4db5-b063-89a23ff21ef3: DENIED: Permission denied for "ba7aa57d-5535-4db5-b063-89a23ff21ef3" from request "/v2/{bucket_name}/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache/manifests/ba7aa57d-5535-4db5-b063-89a23ff21ef3". 

Please, Help me to get through.


gonzalezwalter

unread,
Mar 3, 2021, 4:51:39 PM3/3/21
to Google App Engine
I can see you have a permission denied error for your storage bucket. 

I would recommend creating a new bucket or modifying the existing bucket to ensure that both your App Engine and Cloud Build service accounts have Storage Admin permissions to be able to write and read to the bucket and use both the --bucket and --no-cache flags on your gcloud app deploy command. 

Reply all
Reply to author
Forward
0 new messages