函数计算FC这个问题怎么解决?{"ErrorCode":"InvalidArgument","ErrorMessage":"Mount NFS://mount_points:\u003cserver_addr:\"25467b4aa62-lmo96.ap-northeast-1.nas.aliyuncs.com:/fc-stable-diffusion-plus\" mount_dir:\"/mnt/auto\" \u003e command failed with output = Function instance exited unexpectedly(code 128, message:key has been revoked) with start command './server '..failed to create task and network: Failed to Create Container: container create\n\nCaused by:\n rpc status: code: INTERNAL message: \"add_storages [driver: \\"erofs\\" source: \\"nodev\\" fstype: \\"erofs\\" options: \\"bootstrap_path=/run/kata-containers/shared/containers/rafs/c-65a8fe9e-075f881c-cd1a706ae1e4/bootstrap/image.boot\\" options: \\"blob_dir_path=/run/kata-containers/shared/containers/rafs/c-65a8fe9e-075f881c-cd1a706ae1e4/blob_cache_dir\\" options: \\"user_xattr\\" mount_point: \\"/run/builtin_wlayer/c-65a8fe9e-075f881c-cd1a706ae1e4/lower\\", driver: \\"overlay\\" driver_options: \\"rootfs_over_builtin\\" source: \\"c-65a8fe9e-075f881c-cd1a706ae1e4-rootfs\\" fstype: \\"overlay\\" options: \\"lowerdir=/run/builtin_wlayer/c-65a8fe9e-075f881c-cd1a706ae1e4/lower\\" options: \\"upperdir=/run/builtin_wlayer/c-65a8fe9e-075f881c-cd1a706ae1e4/upper\\" options: \\"workdir=/run/builtin_wlayer/c-65a8fe9e-075f881c-cd1a706ae1e4/work\\" options: \\"userxattr\\" options: \\"volatile\\" mount_point: \\"/run/kata-containers/shared/containers/passthrough/c-65a8fe9e-075f881c-cd1a706ae1e4/rootfs\\", driver: \\"overlay\\" driver_options: \\"dir_over_builtin\\" source: \\"overlay\\" fstype: \\"overlay\\" options: \\"lowerdir=/run/kata-containers/shared/containers/rafs/c-65a8fe9e-6f1fcf19-rafs:/run/kata-containers/shared/containers/rafs/c-65a8fe9e-f7c1ec01-rafs\\" options: \\"upperdir=/run/builtin_wlayer/c-65a8fe9e/fc_lang_layer/upper/\\" options: \\"workdir=/run/builtin_wlayer/c-65a8fe9e/fc_lang_layer/work/\\" options: \\"volatile\\" mount_point: \\"/run/builtin_wlayer/c-65a8fe9e/fc_lang_layer/oci_mount/\\", driver: \\"overlay\\" driver_options: \\"dir_over_builtin\\" source: \\"c-65a8fe9e-075f881c-cd1a706ae1e4_code\\" fstype: \\"overlay\\" options: \\"lowerdir=/run/kata-containers/shared/containers/rafs/c-65a8fe9e-32967d4c-rafs\\" options: \\"upperdir=/run/builtin_wlayer/c-65a8fe9e-075f881c-cd1a706ae1e4/fc_wlayer/upper//code\\" options: \\"workdir=/run/builtin_wlayer/c-65a8fe9e-075f881c-cd1a706ae1e4/fc_wlayer/work//code\\" options: \\"volatile\\" mount_point: \\"/run/builtin_wlayer/c-65a8fe9e-075f881c-cd1a706ae1e4/fc_wlayer/oci_mount//code\\", driver: \\"overlay\\" driver_options: \\"dir_over_builtin\\" source: \\"c-65a8fe9e-075f881c-cd1a706ae1e4_opt\\" fstype: \\"overlay\\" options: \\"lowerdir=/run/builtin_wlayer/c-65a8fe9e/fc_lang_layer/oci_mount/\\" options: \\"upperdir=/run/builtin_wlayer/c-65a8fe9e-075f881c-cd1a706ae1e4/fc_wlayer/upper//opt\\" options: \\"workdir=/run/builtin_wlayer/c-65a8fe9e-075f881c-cd1a706ae1e4/fc_wlayer/work//opt\\" options: \\"volatile\\" mount_point: \\"/run/builtin_wlayer/c-65a8fe9e-075f881c-cd1a706ae1e4/fc_wlayer/oci_mount//opt\\", driver: \\"nfs\\" source: \\"172.16.92.122:/fc-stable-diffusion-plus\\" fstype: \\"nfs\\" options: \\"vers=3\\" options: \\"nolock\\" options: \\"proto=tcp\\" options: \\"rsize=1048576\\" options: \\"wsize=1048576\\" options: \\"hard\\" options: \\"timeo=30\\" options: \\"retrans=2\\" options: \\"noresvport\\" options: \\"addr=172.16.92.122\\" mount_point: \\"/tmp/storage/containers/rund-nfs-bbb1d51f-4994-48af-9467-2eb180053f7b-fc-stable-diffusion-plus\\"] failed: ensure nfs src exists 172.16.92.122:/fc-stable-diffusion-plus\n\nCaused by:\n 0: Failed to mount NAS on guest. source is: \\"172.16.92.122:/\\"\n 1: failed to mount nfs 172.16.92.122:/\n 2: failed to mount nfs\n 3: ECONNRESET: Connection reset by peer\": unknown, please make sure that the nas mount point address is correct and is accessible from the service VPC"}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
根据您提供的错误信息,函数计算(FC)在挂载NAS文件系统时出现了问题。以下是详细的分析和解决方案:
错误信息如下:
{
"ErrorCode": "InvalidArgument",
"ErrorMessage": "Mount NFS://mount_points:<server_addr:\"25467b4aa62-lmo96.ap-northeast-1.nas.aliyuncs.com:/fc-stable-diffusion-plus\" mount_dir:\"/mnt/auto\" > command failed with output = Function instance exited unexpectedly(code 128, message:key has been revoked)..."
}
从错误信息中可以看出,函数实例在尝试挂载NAS文件系统时失败,具体表现为: 1. 挂载命令失败:Failed to mount NAS on guest。 2. 连接被重置:ECONNRESET: Connection reset by peer。 3. NAS挂载点不可访问:提示需要确保NAS挂载点地址正确,并且可以从服务的VPC访问。
根据知识库资料,此类问题可能由以下原因导致: 1. NAS挂载点配置错误: - 挂载点地址(如25467b4aa62-lmo96.ap-northeast-1.nas.aliyuncs.com:/fc-stable-diffusion-plus)不正确。 - 挂载点未正确绑定到函数计算实例所在的VPC。 2. 网络连通性问题: - 函数计算实例无法通过VPC访问NAS挂载点。 - 可能是由于安全组规则或路由表配置不当导致。 3. 权限问题: - NAS挂载点的访问权限未正确配置,导致函数计算实例无法访问。 4. 账户欠费: - 如果当前阿里云账户存在欠费情况,NAS挂载可能会失败。
针对上述可能的原因,您可以按照以下步骤逐一排查并解决问题:
ping <NAS挂载点IP>
如果无法ping通,请检查网络配置。
通过以上步骤,您应该能够解决函数计算FC挂载NAS失败的问题。如果问题仍然存在,请提供更详细的日志信息以便进一步分析。您可以复制页面截图提供更多信息,我可以进一步帮您分析问题原因。