QAnything [BUG] 日志未见任何异常,但页面一直处于加载状态,无法创建知识库,

6mzjoqzu  于 5个月前  发布在  其他
关注(0)|答案(6)|浏览(166)

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

  • 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

  • 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior

bash run.sh 后,服务启动正常

登录页面:
http://localhost:5052/qanything#/home
问题:

  1. 页面一直loading动画

  1. 创建知识库报500错误

期望行为 | Expected Behavior

页面正常,同时可以添加知识库

运行环境 | Environment

- OS: Windows 10 专业
- NVIDIA Driver: docker
- CUDA: docker
- Docker Compose:标准docker
- NVIDIA GPU Memory: 24GB (P6000)

QAnything日志 | QAnything logs

UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content
rerank_port: 10001
embed_port: 10001
[2024-01-21 14:17:30 +0800] [858] [INFO] Sanic Extensions:
[2024-01-21 14:17:30 +0800] [858] [INFO] > injection [0 dependencies; 0 constants]
[2024-01-21 14:17:30 +0800] [858] [INFO] > openapi [http://0.0.0.0:8777/docs]
[2024-01-21 14:17:30 +0800] [858] [INFO] > http
[2024-01-21 14:17:30 +0800] [858] [INFO] > templating [jinja2==3.1.3]
UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content
rerank_port: 10001
embed_port: 10001
[2024-01-21 14:17:30 +0800] [855] [INFO] Sanic Extensions:
[2024-01-21 14:17:30 +0800] [855] [INFO] > injection [0 dependencies; 0 constants]
[2024-01-21 14:17:30 +0800] [855] [INFO] > openapi [http://0.0.0.0:8777/docs]
[2024-01-21 14:17:30 +0800] [855] [INFO] > http
[2024-01-21 14:17:30 +0800] [855] [INFO] > templating [jinja2==3.1.3]
init local_doc_qa in local
UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content
rerank_port: 10001
embed_port: 10001
[2024-01-21 14:17:31 +0800] [856] [INFO] Sanic Extensions:
[2024-01-21 14:17:31 +

pexxcrt2

pexxcrt21#

将localhost添加到user_config文件中并重新启动服务。它可以正常工作。

aemubtdh

aemubtdh2#

将localhost添加到user_config文件并重新启动服务。它可以工作。还有其他更具体的说明吗?我在user.config文件中看到了"localhost"这一行,并且已经重启了容器,但它从未起作用过。

krcsximq

krcsximq3#

add localhost to user_config file and restart service. it works
Any more specific instructions? I saw the line "localhost" in my user.config file already and restarted the container. It never works.
你要描述下你的现象,是否和我一样?

cclgggtu

cclgggtu4#

将当前主机的IP添加到QAnything/user.config中

# cat user.config 
172.20.0.35

# bash run.sh
dfuffjeb

dfuffjeb5#

将当前主机的IP添加到QAnything/user.config中

# cat user.config 
172.20.0.35

# bash run.sh

已经检查了user文件,但是重新启动之后仍然面临相同的报错。请提供解答。

6fe3ivhb

6fe3ivhb6#

遇到同样的问题,请检查.env.production文件中的VITE_APP_API_HOST配置是否正确。原因是在输入服务器公网IP地址时误按了删除键,导致front_end/dist文件夹被删除,之后重新输入了服务器公网IP地址。

相关问题