开发者社区 > 云原生 > Serverless > 正文

函数计算FC的sd这个函数的监听端口不能改吗?是不是只能监听7860端口?改了有报错。

函数计算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)."}

展开
收起
三分钟热度的鱼 2023-12-13 19:24:06 35 0
2 条回答
写回答
取消 提交回答
  • 面对过去,不要迷离;面对未来,不必彷徨;活在今天,你只要把自己完全展示给别人看。

    函数计算FC的sd函数监听端口默认是7860,如果您需要修改监听端口,可以在启动sd-agent时通过命令行参数进行设置。例如,将监听端口设置为8000,可以使用以下命令:

    start sd-agent --port 8000
    

    请注意,修改监听端口可能会导致与其他服务或应用程序的冲突,因此请确保选择的端口没有被其他服务占用。

    2023-12-15 15:08:45
    赞同 展开评论 打赏
  • 您这里找的是 8000 端口,但是程序没有启动在 8000 端口,系统检查是启动超时了
    建议不要修改类似的配置哈


    函数程序允许任何端口启动,至于确保启动的端口和配置的函数端口一致即可。函数对外仅提供 http 服务(80/443 端口)此回答整理自钉群“【答疑群】函数计算 AIGC 场景技术交流”

    2023-12-13 19:41:52
    赞同 展开评论 打赏

快速交付实现商业价值。

相关产品

  • 函数计算
  • 相关电子书

    更多
    低代码开发师(初级)实战教程 立即下载
    冬季实战营第三期:MySQL数据库进阶实战 立即下载
    阿里巴巴DevOps 最佳实践手册 立即下载