函数计算FC的sd这个函数的监听端口不能改吗?是不是只能监听7860端口?改了有报错。{"ErrorCode":"FunctionNotStarted","ErrorMessage":"Function instance health check failed on port 8000 in 120 seconds.\nLogs:IMAGE_TAG [[realman-v12]] [[realman-v12]]\r\nMount /mnt/auto/sd/root to /root\r\nMount /mnt/auto/sd/localizations to /stable-diffusion-webui/localizations\r\nMount /mnt/auto/sd/textual_inversion_templates to /stable-diffusion-webui/textual_inversion_templates\r\nMount /mnt/auto/sd/configs to /stable-diffusion-webui/configs\r\nMount /mnt/auto/sd/extensions-builtin to /stable-diffusion-webui/extensions-builtin\r\nMount /mnt/auto/sd/repositories/CodeFormer/weights/facelib to /stable-diffusion-webui/repositories/CodeFormer/weights/facelib\r\nMount /mnt/auto/sd/outputs to /stable-diffusion-webui/outputs\r\nMount /mnt/auto/sd/embeddings to /stable-diffusion-webui/embeddings\r\nMount /mnt/auto/sd/config.json to /stable-diffusion-webui/config.json\r\nMount /mnt/auto/sd/scripts to /stable-diffusion-webui/scripts\r\nMount /mnt/auto/sd/models to /stable-diffusion-webui/models\r\nMount /mnt/auto/sd/styles.csv to /stable-diffusion-webui/styles.csv\r\nMount /mnt/auto/sd/ui-config.json to /stable-diffusion-webui/ui-config.json\r\nMount /mnt/auto/sd/extensions to /stable-diffusion-webui/extensions\r\nargs: --xformers --enable-insecure-extension-access --skip-version-check --no-download-sd-model \r\nstart sd-agent\r\nstart to read stable diffusion output\r\nstart to check stable diffusion process health\r\n2023-12-07 13:46:43,457 - ControlNet - \u001b[0;32mINFO\u001b[0m - ControlNet v1.1.410\r\r\nControlNet preprocessor location: /mnt/auto/sd/extensions/sd-webui-controlnet/annotator/downloads\r\r\n2023-12-07 13:46:43,857 - ControlNet - \u001b[0;32mINFO\u001b[0m - ControlNet v1.1.410\r\r\ntablestore_forward_endpoint: http://admin.fc-stable-diffusion-plus.1598530844259063.cn-hangzhou.fc.devsapp.net/api/ots/forward_extension_data , enable_extensions:\r\n None\r\r\nCheckpoint 墨幽人造人_v1010.safetensors [6a226dd292] not found; loading fallback chilloutmix_NiPrunedFp16Fix.safetensors [59ffe2243a]\r\n\r\r\nLoading weights [59ffe2243a] from /stable-diffusion-webui/models/Stable-diffusion/chilloutmix_NiPrunedFp16Fix.safetensors\r\r\nRunning on local URL: http://
0.0.0.0:7861\r\r\n\r\r\nTo create a public link, set share=True
in launch()
.\r\n\r\r\n🤯 LobeTheme: Initializing...\r\n\r\r\nStartup time: 31.2s (import torch: 14.6s, import gradio: 0.7s, setup paths: 2.2s, initialize shared: 8.7s, other imports: 0.9s, setup codeformer: 0.2s, load scripts: 2.2s, create ui: 0.8s, gradio launch: 0.6s).\r\r\nstable diffusion port start in 31304 ms\r\nCreating model from config: /stable-diffusion-webui/configs/v1-inference.yaml\r\r\nApplying attention optimization: xformers... \r\ndone.\r\r\nModel loaded in 6.0s (load weights from disk: 4.0s, create model: 0.6s, apply weights to model: 0.6s, calculate empty prompt: 0.7s)."}
函数计算FC的sd函数监听端口默认是7860,如果您需要修改监听端口,可以在启动sd-agent时通过命令行参数进行设置。例如,将监听端口设置为8000,可以使用以下命令:
start sd-agent --port 8000
请注意,修改监听端口可能会导致与其他服务或应用程序的冲突,因此请确保选择的端口没有被其他服务占用。
您这里找的是 8000 端口,但是程序没有启动在 8000 端口,系统检查是启动超时了
建议不要修改类似的配置哈
函数程序允许任何端口启动,至于确保启动的端口和配置的函数端口一致即可。函数对外仅提供 http 服务(80/443 端口)此回答整理自钉群“【答疑群】函数计算 AIGC 场景技术交流”
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。