在 Google Cloud Build 上部署 NodeJs 应用程序时出现问题
Issue in deploying NodeJs app on Google Cloud Build
我正在尝试在 google 云上部署 node.js
应用程序,但出现以下错误:
Finished Step #2 - "detector"
Starting Step #3 - "analyzer"
Step #3 - "analyzer": Already have image (with digest): asia.gcr.io/gae-runtimes/buildpacks/nodejs10/builder:nodejs10_20200913_10_22_0_RC00
Step #3 - "analyzer": ERROR: failed to initialize cache: failed to create image cache: accessing cache image "asia.gcr.io/[redacted]/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache:latest": connect to repo store 'asia.gcr.io/[redacted]/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache:latest': GET https://asia.gcr.io/v2/[redacted]/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache/manifests/latest: DENIED: Permission denied for "latest" from request "/v2/[redacted]/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache/manifests/latest".
Finished Step #3 - "analyzer"
ERROR
ERROR: build step 3 "asia.gcr.io/gae-runtimes/buildpacks/nodejs10/builder:nodejs10_20200913_10_22_0_RC00" failed: step exited with non-zero status: 1
最初我遇到了这个线程中提到的问题:
然后,在使用该解决方案后,我遇到了这个新错误。
CloudBuild.yaml:
steps:
- name: node:10.15.1
entrypoint: npm
args: ['install']
- name: node:10.15.1
entrypoint: npm
args: [ 'run', 'build', '--prod --verbose']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['beta', 'app', 'deploy', '--version=prod', '--no-cache']
timeout: '4800s'
搜索错误消息,导致此类错误的最常见原因是计费问题。请确保已启用计费功能并且之前的付款没有问题。
如果这不能解决问题,请按照 Google 的文档了解如何 troubleshoot common Container Registry and Docker issues。
让我知道这对您有何作用。
我正在尝试在 google 云上部署 node.js
应用程序,但出现以下错误:
Finished Step #2 - "detector"
Starting Step #3 - "analyzer"
Step #3 - "analyzer": Already have image (with digest): asia.gcr.io/gae-runtimes/buildpacks/nodejs10/builder:nodejs10_20200913_10_22_0_RC00
Step #3 - "analyzer": ERROR: failed to initialize cache: failed to create image cache: accessing cache image "asia.gcr.io/[redacted]/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache:latest": connect to repo store 'asia.gcr.io/[redacted]/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache:latest': GET https://asia.gcr.io/v2/[redacted]/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache/manifests/latest: DENIED: Permission denied for "latest" from request "/v2/[redacted]/app-engine-tmp/build-cache/ttl-7d/default/buildpack-cache/manifests/latest".
Finished Step #3 - "analyzer"
ERROR
ERROR: build step 3 "asia.gcr.io/gae-runtimes/buildpacks/nodejs10/builder:nodejs10_20200913_10_22_0_RC00" failed: step exited with non-zero status: 1
最初我遇到了这个线程中提到的问题:
然后,在使用该解决方案后,我遇到了这个新错误。
CloudBuild.yaml:
steps:
- name: node:10.15.1
entrypoint: npm
args: ['install']
- name: node:10.15.1
entrypoint: npm
args: [ 'run', 'build', '--prod --verbose']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['beta', 'app', 'deploy', '--version=prod', '--no-cache']
timeout: '4800s'
搜索错误消息,导致此类错误的最常见原因是计费问题。请确保已启用计费功能并且之前的付款没有问题。
如果这不能解决问题,请按照 Google 的文档了解如何 troubleshoot common Container Registry and Docker issues。
让我知道这对您有何作用。