由于 Windows 上的临时文件 file.tgz 权限错误,无法提交 gcloud 构建

问题描述 投票:0回答:0

我在 Windows 上运行以下命令时遇到问题:

gcloud builds submit --timeout=3600s --region=europe-west1 --tag europe-west1-docker.pkg.dev/project/project-appengine/project-image:latest

它工作正常,但几天前我的部署脚本停止工作。以下是该命令返回的内容:

Creating temporary tarball archive of 3571 file(s) totalling 25.3 MiB before compression.
ERROR: gcloud crashed (PermissionError): [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\user\\AppData\\Local\\Temp\\tmp5i8xwo38\\file.tgz'

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics

我的 Windows 10 上有最新版本的 Google Cloud CLI。

文件权限出现问题?归档文件在目录中并且没问题。貌似SDK无法访问。可能和使用的Python版本有关?

我尝试了 Process Explorer,但发现没有进程锁定此文件。

Trace:回溯(最近一次调用最后一次):文件“C:\Program Files (x86)\谷歌\云 SDK\google-cloud-sdk 位于 ..\lib\googlecloudsdk pi_li

python windows google-cloud-platform google-app-engine gcloud
© www.soinside.com 2019 - 2024. All rights reserved.