EFSMountError cloud runtime_error ai_generated true

无法挂载EFS文件系统:资源暂时不可用

Failed to mount EFS filesystem: resource temporarily unavailable

ID: cloud/gcp-cloud-run-efs-mount-missing

其他格式: JSON · Markdown 中文 · English
78%修复率
85%置信度
1证据数
2024-03-15首次发现

版本兼容性

版本状态引入弃用备注
Cloud Run (managed) gcloud 450.0.0 active
AWS EFS (via VPC connector) active

根因分析

Cloud Run服务无法挂载EFS文件系统,因为VPC连接器配置错误或EFS挂载目标位于不同子网且缺少正确路由。

English

Cloud Run service cannot mount an EFS file system because the VPC connector is misconfigured or the EFS mount target is in a different subnet without proper routing.

generic

官方文档

https://cloud.google.com/run/docs/configuring/vpc-connectors

解决方案

  1. Verify the VPC connector is in the same VPC and subnet as the EFS mount target. Use `gcloud compute networks vpc-access connectors describe CONNECTOR_NAME` to check network configuration. Then ensure the EFS security group allows inbound NFS (port 2049) from the VPC connector's CIDR.
  2. Add a VPC connector with a static IP range that overlaps the EFS mount target subnet. Example: `gcloud compute networks vpc-access connectors create my-connector --region us-central1 --network default --range 10.8.0.0/28`

无效尝试

常见但无效的做法:

  1. Increase Cloud Run memory limit 60% 失败

    Memory limit does not affect NFS mount availability; the error is network-related.

  2. Recreate the EFS file system 80% 失败

    The file system itself is healthy; the issue is in the network path between Cloud Run and EFS.