概要
GAE(GCP)のDockerビルドにある時から失敗した。
エラーログ
Beginning deployment of service [default]... ╔════════════════════════════════════════════════════════════╗ ╠═ Uploading 1 file to Google Cloud Storage ═╣ ╚════════════════════════════════════════════════════════════╝ File upload done. Updating service [default]...failed. ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 424550c8-2297-4c69-804b-fad3f35b3d11 status: FAILURE. Build error details: {"error":{"errorType":"BuildError","canonicalCode":"INVALID_ARGUMENT","errorId":"7778D8F1","errorMessage":"INFO FTL version node-v0.15.0\nINFO Beginning FTL build for node\nINFO ... Check the build log for errors: https://console.cloud.google.com/gcr/builds/424550c8-2297-4c69-804b-fad3f35b3d11?project=775053654181
上記URLをみに行く。
... Step #1 - "builder": containerregistry.client.v2_2.docker_http_.V2DiagnosticException: response: {'status': '403', 'content-length': '298', 'x-xss-protection': '0', 'transfer-encoding': 'chunked', 'server': 'Docker Registry', '-content-encoding': 'gzip', 'docker-distribution-api-version': 'registry/2.0', 'cache-control': 'private', 'date': 'Fri, 12 Apr 2019 11:31:22 GMT', 'x-frame-options': 'SAMEORIGIN', 'content-type': 'application/json'} Step #1 - "builder": Permission denied for "5b18290cc045bb9cea7164015c5a536c6f28033a08f92be34acfe1053a56fa8f" from request "/v2/bubbly-cascade-200510/app-engine-tmp/build-cache/ttl-7d/node-cache/manifests/5b18290cc045bb9cea7164015c5a536c6f28033a08f92be34acfe1053a56fa8f". : None Finished Step #1 - "builder" ERROR ERROR: build step 1 "gcr.io/gae-runtimes/nodejs10_app_builder:nodejs10_20190319_10_15_3_RC00" failed: exit status 1
原因と解決策
Permission Denied
?
よく考えたら無料トライアル期間が終わったのであった。 それで403, Permission Denied。 アップグレードすることで解決した。 アクセス数もほぼないから大丈夫だろう。