labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.47k stars 4.69k forks source link

本地部署FastGPT,无法连接docker上的pg #1564

Closed EP-TigerAce closed 4 months ago

EP-TigerAce commented 5 months ago

例行检查

你的版本

问题描述, 日志截图 首先在docker上按照文档成功部署了FastGPT,一切正常。后来根据领导要求,想要换成本地的,于是按照本地部署文档操作,启动后无法连接上pg image 有关pg的功能也就无法使用 image 但日志中,pg没有报错异常 image

复现步骤 按照文档进行部署,仅修改了config.json以使用本地模型 image

预期结果 部署在docker上时,一切都可以正常使用,部署到本地后就出问题了。 相关截图

EP-TigerAce commented 5 months ago

已尝试过将ip更换为host、localhost、127.0.0.1等,依然如此

FinleyGe commented 5 months ago

可能是本地 pg 部署的问题。从报错来看,可能是 pg 没有配置这个用户的访问,密钥加密方法等等。具体应该修改 pg_hba.conf 这个文件 请参考:http://www.postgres.cn/docs/9.4/auth-pg-hba-conf.html (中文)

c121914yu commented 4 months ago

数据库连接问题~ 自己先通过工具校验成功