langflow 从铁路蓝图部署并以失败状态渲染完成,

dtcbnfnu  于 2个月前  发布在  其他
关注(0)|答案(5)|浏览(45)

Bug 描述

在渲染或铁路服务上无法进行部署。
部署结束时出现错误:网络健康检查 - 健康检查失败。
请调查。

复现步骤

  1. 转到:https://github.com/langflow-ai/langflow
  2. 点击 "deploy to render"
  3. 填写蓝图名称并点击渲染上的部署按钮/
  4. 查看部署状态。

预期行为

应用程序应在渲染上部署,并可通过渲染的URL地址访问。

谁可以帮忙?

  • 无响应*

操作系统

Reder子系统

Langflow 版本

v1.0.14

Python 版本

None

截图

流程文件

  • 无响应*
qlckcl4x

qlckcl4x1#

嘿 @SapphireX! 我来帮你解决bug、问题和其他等待人类维护者的事情。让我们一起解决这个问题!
要解决在渲染或铁路服务上部署Langflow应用程序时出现的“网络健康检查 - 健康检查失败”错误,请确保在您的 render.yaml 文件中定义的健康检查端点在您的应用程序中正确实现并可访问。
在您的 render.yaml 文件中,健康检查路径设置为 /health :

services:
  - type: web
    name: langflow
    runtime: docker
    dockerfilePath: ./Dockerfile
    repo: https://github.com/langflow-ai/langflow
    branch: main
    healthCheckPath: /health
    autoDeploy: false
    envVars:
      - key: LANGFLOW_DATABASE_URL
        value: sqlite:////home/user/.cache/langflow/langflow.db
    disk:
      name: langflow-data
      mountPath: /home/user/.cache/langflow

请确保您的Langflow应用程序在运行正常时具有位于 /health 的端点,该端点返回成功的HTTP状态码(例如,200 OK)。Langflow应用程序使用FastAPI Web框架,并在 /health 预定义了健康检查端点:

from fastapi import FastAPI

app = FastAPI()

@app.get("/health")
def health():
    return {"status": "ok"}

请确保您的应用程序正在运行并监听正确的端口(默认为7860),并且 /health 端点已正确实现并可访问。这应该解决了部署过程中的健康检查失败错误。

  • 要继续与 1(https://github.com/langflow-ai/langflow/blob/dev/render.yaml)2(https://github.com/logspace-ai/langflow/blob/dev/src/backend/base/langflow/main.py)3(https://github.com/logspace-ai/langflow/blob/dev/src/backend/langflow/main.py) 交谈,请提及 @dosu。*
gojuced7

gojuced72#

@SapphireX can you share the logs?
Which docker image is getting pulled in with latest ? (please check in the logs)
What are the machine resources ? I'd recommend to run with 1G of memory

c8ib6hqw

c8ib6hqw3#

当然。这里是日志:

以及带有txt文件的扩展版本。
logs.txt
关于您的其他问题,我遵循了langflow仓库中的说明进行操作。由于我是从蓝图构建的,所以无法在机器上设置内存。

siotufzp

siotufzp4#

好的,问题出在内存上(512MB而不是1GB)。更换为更快的机器后,部署成功。

ddrv8njm

ddrv8njm5#

是否有更新的render.yaml可以用作蓝图?

相关问题