函数计算打开ui报错,怎么解决?
{"RequestId":"1-65f115a9-159bc39e-ac3917bdb2e8","Code":"InvalidArgument","Message":"Mount NFS://mount_points:\u003cserver_addr:\"0cc2349a3e-efu28.cn-hangzhou.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 '/docker/entrypoint.sh '. Error: failed to create task and network: Failed to Create Container: container create\n\nCaused by:\n 0: run with reconnect\n 1: rpc status: code: INTERNAL message: \"add_storages [driver: \\"overlay\\" driver_options: \\"rootfs_over_builtin\\" source: \\"c-65f115a9-15416274-0b44332854d6-rootfs\\" fstype: \\"overlay\\" options: \\"lowerdir=/run/kata-containers/shared/containers/passthrough/c-65f115a9-15416274-0b44332854d6/rootfs_lower\\" options: \\"upperdir=/run/builtin_wlayer/c-65f115a9-15416274-0b44332854d6/upper\\" options: \\"workdir=/run/builtin_wlayer/c-65f115a9-15416274-0b44332854d6/work\\" options: \\"userxattr\\" options: \\"index=off\\" options: \\"volatile\\" mount_point: \\"/run/kata-containers/shared/containers/passthrough/c-65f115a9-15416274-0b44332854d6/rootfs\\", driver: \\"nfs\\" source: \\"172.16.58.54:/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.58.54\\" mount_point: \\"/tmp/storage/containers/rund-nfs-02efe8cc-1a37-4e5d-b3fe-0780bb8658ef-fc-stable-diffusion-plus\\"] failed: ensure nfs src exists 172.16.58.54:/fc-stable-diffusion-plus\n\nCaused by:\n 0: Failed to mount NAS on guest. source is: \\"172.16.58.54:/\\"\n 1: failed to mount nfs 172.16.58.54:/\n 2: failed to mount nfs\n 3: ETIMEDOUT: Connection timed out\": unknown\", please make sure that the nas mount point address is correct and is accessible from the service VPC"}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
根据您提供的报错信息,函数计算在打开UI时出现错误,主要涉及NFS挂载失败的问题。以下是针对该问题的详细分析和解决方法:
从报错信息中可以提取以下关键点: - 错误代码:InvalidArgument
- 错误消息:Mount NFS://mount_points failed
,具体表现为: - key has been revoked
:可能与NAS挂载点的权限或密钥相关。 - Connection timed out
:表明函数计算实例无法访问指定的NAS挂载点。 - Failed to mount NAS on guest
:进一步确认了NAS挂载失败。
这些信息表明,问题的核心在于函数计算实例无法正确挂载NAS存储。
please make sure that the nas mount point address is correct
,说明挂载点地址可能配置错误。<server_addr>:/<export_path>
,例如0cc2349a3e-efu28.cn-hangzhou.nas.aliyuncs.com:/fc-stable-diffusion-plus
。is accessible from the service VPC
,说明函数计算实例所在的VPC无法访问NAS挂载点。172.16.58.54
)。key has been revoked
,可能与NAS挂载点的访问密钥或权限配置有关。ETIMEDOUT: Connection timed out
,可能是由于网络延迟或NAS服务不可用导致。mount -t nfs -o vers=3,nolock,proto=tcp,rsize=1048576,wsize=1048576,hard,timeo=30,retrans=2,noresvport <server_addr>:/<export_path> /mnt/auto
os.Exit(1)
或类似方式退出进程,这会导致函数计算侧无法获取退出时的堆栈信息。通过以上步骤,您可以逐步排查并解决函数计算打开UI时的报错问题。如果问题仍未解决,请提供更详细的日志信息以便进一步分析。您可以复制页面截图提供更多信息,我可以进一步帮您分析问题原因。